Page 1 of 1
Newlisp SICP
Posted: Tue Nov 25, 2008 10:30 am
by rio_41de
Hi,
I'm new to this list so bear with me if this question was already asked.
Has someone tried translating the SICP (Structure and Interpretation of Computer Programs) examples and exercises to Newlisp ? Are there any objections that this will not work or hard ?
Thanks in advance
-- Mario
Posted: Tue Nov 25, 2008 2:50 pm
by Lutz
Although newLISP feels more like a Scheme than a Common Lisp, its not Scheme.
Everything in SICP relying on closures will not work. newLISP uses namespaces (called context) instead of closures to write functions with memory and software objects. If the closure doesn't keep a state variable, variable expansion is used in newLISP.
This page tell more about the differences between newLISP, Scheme and Common Lisp:
http://www.newlisp.org/index.cgi?Differ ... ther_LISPs
and here is a new page about closures and namespaces:
http://www.newlisp.org/index.cgi?Closures
Still it would be interesting to try a SICP translation to newLISP. Many things will look the same or similar. Whenever there is a closure it would be interesting to show the newLISP solution using variable expansion or a context.
ps: welcome to the group Mario!
Posted: Wed Nov 26, 2008 1:38 am
by itistoday
Welcome Mario!
You might be interested in my thread on
doing streams in newLISP.
Posted: Wed Nov 26, 2008 3:34 pm
by rio_41de
Hi,
thanks for the warm welcome and pointers. Seems I have to read a little bit before I get started.
So at least SICP Lecture 6a is done ;).
Let's see how far I get ...
Cheers
-- Mario