Newlisp SICP

Started by rio_41de, November 25, 2008, 02:30:56 AM

Previous topic - Next topic

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

Lutz

#1
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?Differences_to_Other_LISPs">http://www.newlisp.org/index.cgi?Differ ... ther_LISPs">http://www.newlisp.org/index.cgi?Differences_to_Other_LISPs



and here is a new page about closures and namespaces:



http://www.newlisp.org/index.cgi?Closures">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!

itistoday

#2
Welcome Mario!



You might be interested in my thread on http://www.alh.net/newlisp/phpbb/viewtopic.php?p=11920">doing streams in newLISP.
Get your Objective newLISP groove on.

rio_41de

#3
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