by lispm · 11y ago · 0 comments
Give it a different name. Not every random language which happens to use parentheses in some way needs to be called Lisp.
Notice something?
These all have Lisp in their name. They all share a core language.
None of those is Common Lisp, but Common Lisp is directly related to them, since it also shares the same core language.
Common Lisp can easily run Lisp code from 50 years ago.
Newlisp can't.
I'll repeat it for you: Lisp dialects are defined by a common core language.
Newlisp does not have that core language. Even if it uses the same name for functionality, it does different things:
Lisp:
(cons 1 2) -> (1 . 2)
newlisp (cons 1 2) -> (1 2)
Lisp (+ 1.2 2) -> 3.2
newlisp
(+ 1.2 2) -> 3That's just the trivial stuff.
It's basically impossible to run any Lisp code in newlisp without completely rewriting it.
When I say Lisp, I'm talking about a language which is in the tradition of McCarthy's Lisp, where I don't need to throw away my books, implementations, libraries, applications.
newlisp is a derived language just like ML, Logo, Javascript, Racket, Clojure and countless other languages. Just like Java is not a C dialect, but somehow influenced by it.
There is some life beyond Common Lisp :).
Languages like Standard Lisp, Franz Lisp, ISLisp, Eulisp, Emacs Lisp, Visual Lisp are in the Lisp tradition and share a core language.
newlisp is a different language. Call it ParenthesesScript, ContextScript or something like that.
Conses are different in newlisp, but it certainly does have linked lists:
> In newLISP, there are no dotted pairs. Instead, each newLISP cell contains one object and a pointer to another object if the cell is part of a list.
> different evaluation model
That one is true, yes.
> no GC
No, but it implements McCarthy's original intent through the ORO scheme. NewLisp's ORO thing is very annoying if you ask me, but it does its job; it achieves the same thing that McCarthy mentioned in his paper: "This process [...] is more convenient for the programmer than a system in which he has to keep track of and erase unwanted lists. Its efficiency depends upon not coming close to exhausting the available memory with accessible lists etc."
Let's not delude ourselves here. NewLisp is not necessarily one of the "better" Lisp implementations, but it has S-expressions, Scheme-like function application and automatic memory management. I think that's reason enough to call it SomethingLisp.
These are different. newlisp seems to have a list cell, which then points to linked content cells.
A mechanism which is different from any other Lisp dialect.
No, it does. Linked list are the fundamental data structure; the difference with respect to linked list from other lisps is, in fact, that in newLisp linked lists are fundamental, not just one application of cons cells, so you can't have a cons cell where cdr is not a proper list.