3 ms·
I do wonder why Julia caught on where lush died. Any thoughts?
by aidenn0 12y ago
I do wonder why Julia caught on where lush died. Any thoughts?
- deleted 12y ago[deleted]
- grayclhn 12y agoI don't know lush why lush died, but julia's matlab-like syntax is a big deal for me. Not because I especially like that syntax (although it's grown on my as I've used more julia), but because it's going to be a lot easier to try to get coauthors, students, etc., to use the language and because there's a lot of code relevant for what I do that's written in Matlab, and porting it (hopefully) should be relatively straightforward.
- zem 12y agoi've always wondered why lush never caught on. my speculation is that the intersection of people who like lisps and people who don't mind the lack of lexical scoping is very low.
- ElectronCharge 12y agoThere are probably a few reasons. Julia has roots with MIT which immediately lends it some cachet, and probably made it easier to grow a vibrant community. Lush (which is an unfortunate name btw) used Lisp syntax, which has never been favored by math, science and engineering types. It seems obvious that equations as expressed in the language should closely resemble those used in actual math - thus the syntax of languages like Fortran, Matlab and Julia. Writing (or reading): (setq vx (+ vx (* ax deltat))) ; update velocity is much more awkward than: vx += ax * deltat # update velocity This issue gets worse with more complex examples. Lush also allowed inline C, which was probably a bad design choice. Julia allows painless C library calls, which is much cleaner. Those are just a few thoughts off the top of my head...
- lispm 12y agoWhich, btw., is written in Lisp as: (incf vx (* ax deltat)) The equivalent of += is INCF.
- ElectronCharge 12y agoI'm not sure that syntax was available in Lush. The line I cited was from a Lush example program. http://lush.sourceforge.net/lander04.txt http://lush.sourceforge.net/lander04.txt
- lispm 12y agoIn Lush a similar construct is called INCR. See its documentation. INCF in Common Lisp might be more general, since it supports a concept called place.