Newlisp SICP

For the Compleat Fan
Locked
rio_41de
Posts: 2
Joined: Tue Nov 25, 2008 3:15 am
Location: Cologne (Germany)

Newlisp SICP

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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!

itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Post by itistoday »

Welcome Mario!

You might be interested in my thread on doing streams in newLISP.
Get your Objective newLISP groove on.

rio_41de
Posts: 2
Joined: Tue Nov 25, 2008 3:15 am
Location: Cologne (Germany)

Post 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

Locked