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
Newlisp SICP
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!
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!
Get your Objective newLISP groove on.