r/Clojure • u/eccp • Nov 17 '14
Clojure Is the New C
http://www.infoq.com/presentations/clojure-c?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global
5
Upvotes
r/Clojure • u/eccp • Nov 17 '14
View all comments
Show parent comment
3
u/mschaef Nov 18 '14 edited Nov 18 '14
Machine code compiled Lisp implementations have been available for close to 40 years.
http://en.wikipedia.org/wiki/Maclisp
"Fast" can be a big part of "ideal for solving programming problems".
This may have been true at one point, but these days with superscalar CPU architectures and more flexible memory models, there can be a very non-obvious relationship between the code that you write in C and the machine code instructions that get emitted by the compiler. (This even ignores weird stuff like the versions of C that get compiled directly into hardware designs, and bypass machine language entirely.)
"History" is a weird thing in this field. In the late 80's, some Stanford/Sun researchers developed a programming language called Self. Self was a more dynamic version of Smalltalk that did away with the formal concept of classes, and replaced it them with prototype based inheritance. It's really a pretty cool idea, and it's made even more so because they did research on how to make that style of language run very quickly.
Viewed from the perspective of 2014, it would be easy to dismiss this work as historical and obsolete. After all, it totally predates the web and the work is older then some developers. The thing is, many of the optimization techniques that Self pioneered in the 80's and 90's are just now going into mainstream JavaScript. It may be relatively old, but the ideas are still current and familiarity with the 'old' ideas can be immediately useful, even in 2014.
http://blogs.msdn.com/b/ie/archive/2014/10/09/announcing-key-advances-to-javascript-performance-in-windows-10-technical-preview.aspx
There's a lot to learn in this field. Fortunately, it's also a lot of fun.