First taste of newLISP

Occasionally, I bumped into newLISP through the following twitter:


What attracted me is the newLISP‘s small size and fruitful APIs. Because I am fascinated with functional programming now, I decide to stop to peek at newLISP.

I never get my feet wet on Lisp/Scheme before, so I can’t compare the difference between them and newLISP. As an absolute novice, the key point to master newLISP I think is to be accustomed to parentheses. By default, the first element in parentheses should be a function, like this:

> (println "Hello" " World!")
Hello World!

Or this:

> (+ 4 8)

So if you just want a literal, remember to use ':

> '(println "Hello" " World!")
(println "Hello" " World!")

Once you remember this rule, you can understand the newLISP‘s program structure easily. Then the next thing is make your hands dirty, leverage the APIS, lego bricks provided by newLISP to practice writing small programs. For example, it cost me only a quarter to write abase64 encoder/decoder.

Happy hacking newLISP!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.