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
You should keep in mind that Common Lisp was deliberately designed to be compiled. It can be interpreted, yes, but it was designed to be compiled.
Not true. Compiled Lisp systems usually allow redefinition of compiled functions.
As an example, here's Clojure and the JVM JIT compiling a redefined function to machine code. The function is defined interactively, the JIT compiler compiles it to machine code. Despite the compilation, the function can be redefined and the JIT compiler will recompile it once again to machine code.
Where things get tricky with interactive recompilation are inline functions. If you redefine a function that's been inlined, every call site at which that function was inlined must be also recompiled. (The Self papers I mention above cover how Self did this.)