newLISP Fan Club

Forum => Anything else we might add? => Topic started by: rio_41de on November 25, 2008, 02:30:56 AM

Title: Newlisp SICP
Post by: rio_41de on November 25, 2008, 02:30:56 AM
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
Title:
Post by: Lutz on November 25, 2008, 06:50:49 AM
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



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!
Title:
Post by: itistoday on November 25, 2008, 05:38:15 PM
Welcome Mario!



You might be interested in my thread on doing streams in newLISP (//http).
Title:
Post by: rio_41de on November 26, 2008, 07:34:06 AM
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