Search found 538 matches

by nuntius
Tue May 24, 2016 5:21 am
Forum: Common Lisp
Topic: HTTP client
Replies: 2
Views: 4132

Re: HTTP client

Quicklisp is the easy way to download dependencies.

https://www.quicklisp.org/beta/
by nuntius
Thu May 05, 2016 7:17 pm
Forum: Scheme
Topic: Unbound variable error when loading external procedure
Replies: 2
Views: 6778

Re: Unbound variable error when loading external procedure

Snively, give Racket a try.

http://racket-lang.org/

It even includes support for SICP.

https://docs.racket-lang.org/sicp-manual/index.html


P.S. In the future, please open new questions in a new thread.
by nuntius
Sat Apr 02, 2016 4:01 pm
Forum: Homework
Topic: Simple Printing/formatting a list in Scheme
Replies: 1
Views: 4622

Re: Simple Printing/formatting a list in Scheme

Hi, In Scheme, the first expression in a list is treated as a function to be evaluated. You have an extra set of parentheses in the lambda form. This is causing the undesired evaluation. In languages like C/C++/Java, an extra level of {}s does nothing. In the Lisp family of languages, an extra level...
by nuntius
Fri Mar 18, 2016 7:03 pm
Forum: Homework
Topic: lisp and oracle
Replies: 2
Views: 5066

Re: lisp and oracle

Hi, you might want to give quicklisp a try.
It appears to have clsql support.
Quicklisp installs are generally easy.

https://www.quicklisp.org/beta/
by nuntius
Sat Nov 14, 2015 1:00 pm
Forum: Other Dialects
Topic: Help with clojure problem
Replies: 4
Views: 8438

Re: Help with clojure problem

This sounds like a recursive homework problem. Write a recursive function. When descending the tree, - if the node is an integer, return it - if the node is a list, take the operator, recurse into the children, then evaluate the operator, and return the evaluated list When evaluating the operator, t...
by nuntius
Fri Oct 16, 2015 9:22 pm
Forum: Homework
Topic: print same elements in two lists
Replies: 1
Views: 4359

Re: print same elements in two lists

The default test used by member doesn't check list equality.
You need to pass a different :test to the member function.

http://www.lispworks.com/documentation/ ... _mem_m.htm
by nuntius
Thu Oct 08, 2015 5:00 pm
Forum: Common Lisp
Topic: NUMBERP predicate
Replies: 4
Views: 6886

Re: NUMBERP predicate

I should add that some languages like TCL have functions that try to automatically coerce values from one datatype to another. In these languages, numberp might be implemented using parsing rules like "[+-]?[0123456789]*[.]?[0123456789]+". See also https://en.wikipedia.org/wiki/Duck_typing https://e...
by nuntius
Thu Oct 08, 2015 4:21 pm
Forum: Common Lisp
Topic: NUMBERP predicate
Replies: 4
Views: 6886

Re: NUMBERP predicate

In a dynamic language like Lisp, data values are "tagged" with information describing their type. Numberp then checks whether the tag is of a numeric type. These tags may be explicit (see the tag, length, value concept in ASN.1) or implicit (based on where it is stored). Here are a couple links that...
by nuntius
Tue Oct 06, 2015 6:16 pm
Forum: Common Lisp
Topic: Common Lisp interpreter for DOS?
Replies: 3
Views: 5490

Re: Common Lisp interpreter for DOS?

I never had a machine to run it, but there was a PC-Lisp by Peter Asherwood-Smith for that class of machines. You might be able to find a copy somewhere.

It would be good for a bit of nostalgia. It wouldn't be good for a development environment.