120 points · by qwertyuiop924 · 10y ago · 142 comments
It flouts McCarthy's wish that no language be called just Lisp. Well, okay, it's not literally called Lisp; it has the "New" in front. On the surface, it seems to be sticking to the letter of the wish. Does it conform to the spirit, though? Is a common English adjective enough? Is "New" a sufficient qualifier?
The mere prefixing of "New" looks like it's claiming to be a new version of something that is just Lisp, unqualified. A "New Lisp" is plausibly something that was "Lisp" before, and was then enhanced to create a new version derived from "Lisp". Lots of projects get rewritten, or otherwise revampd and called "New Whatever". But NewLisp certainly has no such lineage.
One historic dialect was called NIL which stood for "New Implementation of Lisp". But it went by the name NIL, with the acronym just being an explanation for that name (as far as I can tell).
Change the arrogant name, and you will not hear another criticism from Lisp programmers. Make it LutzLisp or whatever. It doesn't matter what it is if it is called LutzLisp; it's not that type of thing that's claiming to be a new, improved version of Lisp.
Breaking, or skirting a sacrosanct rule is now how you play along in the broad Lisp family.
Yes. Yes it is.
("new" is more common than "common", but not incredibly so: https://books.google.com/ngrams/graph?content=common%2Cnew&y...)
Basically Lutz calling his project NewLisp is a form of trolling.
I don't think anyone else cares for that, or even went that far in their syllogism anyway.
Despite what the CLers say, we all have an equal claim to the name.
Agreed, but who cares? Is this what you want the Lisp community to spend our time on?
> It's important because we have to distinguish between many dialects. If any of them are just Lisp, it starts to get confusing.
I don't think it's important. I'm not confused, and if you understand what's going on enough to disagree with it, you aren't confused either.
More to the point, neither being confused about what dialect is being discussed nor arguing about semantics helps anyone, but at least confusion doesn't waste enormous amounts of time and energy, divide the community, and derail productive discussions.
Look at this thread. I'd like to talk about ORO memory management, which is pretty interesting, but instead we're talking about semantics. The top response is about terminology. Is this what you want?
Only actual Lisp dialects have a claim to the name.
That's why Scheme is called Scheme and not Lexical Lisp. That's why Logo is called Logo and not Simple Lisp. That's why Javascript is called Javascript and not WebScheme. That's why Racket is called Racket, and not NewScheme.
Common Lisp people insisting on "Lisp" denoting "Common Lisp" are simply wrong, and that's that.
I don't think that's really true. After all, 'Common Lisp is actually derived from dialects that trace their lineage to Lisp (the Lisp, unqualified) standardizing what is common among them,' to quote someone. The intent of the Common Lisp standardisation effort was to standardise a common Lisp that programmers could rely on.
From what I've seen of the lisp community, one of their favorite activities is criticizing variants of lisp that aren't their preferred one.
Maybe that's because I didn't go around saying that it's a awesome, new, improved, easy-to-use dialect for the modern world that's going to replace outdated, academic, hard-to-use, stuffy Common Lisp and its ilk.
NewLisp in particular has attracted vitriol, and it's because of the arrogant trolling.
NewLisp is no worse than, say, AutoLisp, yet AutoLisp doesn't attract flaming every time it is mentioned.
With hindsight, turns out that none of newLISP, Goo or Arc set the world on fire.
Look at Clojure. They offered the kids that started with Java something new but with a flair that was familiar. If you know Java, Clojure isn't too hard.
https://github.com/rongarret/ergolib
The beginnings of a book using this:
https://github.com/rongarret/BWFP
Hello-world looks like:
(require :ergolib)
(defpage "/hello" "Hello world")
(ensure-http-server 1234)Imagine how refreshing it'd be to see Lisp driving webapps, front and back-end.
Not even saying that should be the one size fits all, I'm saying, anything else...
Of course, it's probably not Lisp's fault that that project was a mess, but the ultimate level of flexibility that CL provided let bad ideas worm their way down to the compilation level, making it really hard to work your way back out.
Honestly, you've never felt tech debt pain like unwinding reader macros.
IIRC this happened in comments on jwz's blog - cite on request, though you'll have to excuse me for waiting until i'm back at a machine with a keyboard and a big display before I go hunting it down again.
Demo here: http://dragonfly.apptruck.de
This is only even a perception in the Silicon Valley echo chamber, and it's not even true there. I worked at a contracting firm that did apps last year and we never once wrote one in JS.
Get web browsers to embed a Lisp in them, and this will happen.
Though even then, Lisp will never be nearly as popular as Javascript due to its unfamiliar syntax.
A small code example can tell you way more than a language description. An example is the PL equivalent of the picture is worth a thousand words adage.
Additionally, it is not a given that a LISP will use S-expressions. It could use M-expressions, or even G-expressions (form a LISP like language I helped develop that nobody has ever heard of).
Go, Rust, Ruby, Python all have examples on their homepage. Oddly, Swift does not.
define fib (n)
if (= n 0) 0
elsif: (= n 1) 1
else: (+ (fib (- n 1)) (fib (- n 2)))
println (fib 20)I'd love to see a new version of Common Lisp fixing some of the decisions which were terrible, but I don't see that happening.
The lack of (as much) historical cruft is probably a Good Thing.
call/cc is a great teaching tool but a terrible thing for use in an implementation supporting production software: it's goto without the limited scope of TAGBODY.
I don't blame Scheme for not learning from Common Lisp, since the former predated the latter; indeed, Common Lisp learned from Scheme.
Its certainly useable - usually on par with Python... But picolisp, Gambit, SBCL are more on par with D or Rebol.
So when newLISP claims to be great for embedding, I feel cautious.
Gambit internals does kind of look like black magic half the time, but the author implemented environments because I asked [0], which is very cool.
The more experimental lisps, the better we can make the future. I love how the lispish community views PLT, and always tries out someone's new idea. (Bayes integration in newLISP is cool. LFE is also cool.)
Xtlang in Extempore is a whole lot of fun [1].
Echolisp has amazing built-ins and runs in the browser [2].
Gambit is great to get C code out of.
I like LFE, but I have to learn more OTP/BEAM to really use it.
Wasp Lisp is a lot of fun for me, and for playing with distributed programs.
The reason for that lies in the fact that newLISP's interpreter does not have to do that much of pointer chasing as other interpreters which implement some kind of lexical scoping. In dfsch I found out that about 80% of time is spent in symbol-lookup related code and had to resort to some ugly tricks (inlining constant references in AST, microoptimalizations in lookup code...) to get it's performance to be somewhere between CPython and newLISP.
Python is a magnitude of order slower [1] than most things, and that was my point. newLISP is slow.
I do have to take exception to you calling interpreted slow - because you've called Python interpreted, I'm guessing bytecode interpreted fits your view. Picrin [2] is bytecode interpreted, and isn't slow. [3]
By Rebol I mostly meant Red, which isn't exactly slow, as it aims for 1-3x the speed of C. (Though I can't find any decent set of benchmarks for it currently).
[0] https://benchmarksgame.alioth.debian.org/u64q/lisp.html
[1] http://benchmarksgame.alioth.debian.org/u64q/python.html
Those measurements seem to show Picrin at-least an order of magnitude slower than Larceny?
Does it mean it's impossible for more than one variable to refer to a variable already referenced? If yes, is this a problem in practice? If no, is this the way of the future?
BUT I've used newLISP in many web business applications, which are still used by hundreds of users, under load and I've never ran into trouble. Developing and coding such big projects has been great (we used newLISP contexts a lot).
I'm trying to say: in practice I don't care about internal memeory management if the language does it job. And in my opinion newLISP is a good tool to solve real world problems.
- single-reference-only for expressions (so, static object lifetime); deletion is delayed until a stack slot gets reused, allowing return values
- assignment to variables or values passed into functions are done by copy
- EXCEPT certain types are passed into functions by reference as an optimisation
So, basically, values are owned by either the stack or a variable. Assignment to a stack cell destroys what was there before. To keep a stacked value, it needs to be copied into a variable.
That all seems pretty intelligent, and I might steal the idea; except that I don't see any mention of how cyclic data structures or mutable data structures are implemented. Does anyone know how these are handled?
For cyclic data structures, I'm not sure. I think one can pass a function, a list or a context to a function that expects a list. This it might do the trick.
> Sharing of sub-objects among objects, cyclic structures, or multiple variables pointing to the same object are not supported in newLISP.
Dang.
How is this different from LISP?
And Guile was my Perl in the late nineties. Never experienced startup time issues, even on Pentium-class hardware.
> Grenchman lets you run Clojure code quickly. By connecting to a running nREPL server you avoid JVM startup time, streamlining your development workflow.
It's irritating to see the same claim repeated again and again. It's not JVM startup time, it's Clojure startup time. Whether it's because JVM is ill-suited for the kind of code Clojure uses or for other reasons I don't know, but JVM itself starts up 100x faster than Clojure on JVM.
Moreover, a daemon running in the background is a just a workaround. To use it you need to write your app in a certain way so that reloading works, and you still need to start the daemon at some point.
I've been working with Clojure for a few months full-time and it was kind of ok, however, for command line utilities, almost anything is better than Clojure. Python, JS with Node, Racket, Ruby, GNU Smalltalk, even Io - all these start up much faster than Clojure. ClojureScript with Node would be an option, but then ClojureScript (and Node). In short: if you need to write a cmd line utility program you should avoid Clojure as much as possible.
(Source: http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=9&t=...)
0.33 ; 2.7GHz Intel Core i5 iMac, 64 bit newLISP 10.3.2 - cormullion\n 0.45 ; 2.4GHz Intel Core i5 MacBook Pro, 64 bit newLISP - itistoday\n 0.5 ; 2.2Ghz AMD Phenom(tm) 9550 Quad-Core Processor 64-bit on Linux IPv4 - pjot\n 0.55 ; Windows XP at AMD Phenom II X2 545, 3 GHz - Cyril \n 0.6 ; 2 x 3.2 GHz Quad-Core Intel Xeon - joe \n 0.63 ; FreeBSD at NFSHOST poss. 2.8 GHZ CPU - lutz\n 0.7 ; FreeBSD at NFSHOST probably the same on a bad day - cormullion 0.71 ; Mac OS X 2.0 GHz Intel Core 2 Duo, 64-bit version of newLISP - cormullion 0.75 ; MacBook Pro 2.4 GHz Intel Core 2 Duo running 32-bit newLISP - hilti 0.8 ; AMD 64 3200+ - newdep 0.89 ; zLinux (for the IBM mainframe) - jopython 0.9 ; Mac OS X 2.0 GHz Intel Core 2 Duo, 32-bit newLISP- cormullion 1.00 ; Mac OS X 1.83 GHz Intel Core 2 Duo - Lutz 1.1 ; Windows Vista 64 at Intel Pentium D 940, 3.2 Ghz. - kazimir 1.36 ; Pentium 4, 2Ghz running Ubuntu 9.04 - robert gorenc 2.24 ; Sun Sparc 1350MHZ processor - jopython 3.25 ; Windows XP at Intel Pentium III, 800 MHz - Cyril 3.40 ; Nokia N900 at 950 MHz - hilti's "numbercruncher" 5.15 ; Nokia N900 at 700 MHz 5.37 ; Raspberry Pi 900 mHz (overclocked with the raspi-config tool) - Hilti 5.44 ; Mac OS X 1GHz PowerPC G4 (eMac) - cormullion 6.72 ; Raspberry Pi 700 mHz 256 MB RAM - Hilti 9.52 ; Sun Sparc Ultra-2 - lutz 13.7 ; Nokia N810 armv61 - newdep 30.64 ; Pentium 90, running DamnSmallLinux - robert gorenc 50.0 ; Intel Pentium 120 - P54CQS - 120MHz - xytroxon
I don't think anybody anywhere has ever chosen a Lisp language because it's fast.