Lurker News
Back to discussion

Comment by MiroF

MiroF3 replies#
Julia is compiled to machine code, not interpreted
vanderZwan1 reply#
That has nothing to do with how "lispy" it might be. Part of the compiler is implemented in femtolispe no?
MiroF#
I suspect this does have to do with whether or not it is a fast scripting language, considering a language compiled into machine code is by definition not a scripting language.

Sure, flag me, but my comment was relevant to the discussion.

fiddlerwoaroof1 reply#
Many lisps compile to machine code too. Compilation vs. interpretation is a feature of an implementation, not a language.
MiroF2 replies#
Scripting languages are by definition interpreted. The question was about fast scripting languages. I'm skeptical that Lisp compiled to Lua would count as in that category, but Julia unequivocally doesn't.
fiddlerwoaroof2 replies#
"Scripting languages are by definition interpreted" [[Citation Needed]].

There are Common Lisp implementations of both Python and Javascript (ES3) that compile to Common Lisp and then the Common Lisp compiles to machine code: as I said before, whether or not a language is interpreted or compiled is an implementation detail, not part of its spec.

Continue this thread — 2 replies

ska1 reply#
> Scripting languages are by definition interpreted.

I don't think this is correct. Scripting aren't rigorously defined, of course, but it would be reasonable to say they are defined by practice (i.e. a scripting language is practical for scripting).
Most compiled languages knock themselves out of contention in this definition because the startup and/or compile times are too long to be practical. But I've used luaJit in scripting contexts before, so that at least muddies the waters. Also common lisp (a variant that was always compiled).

Continue this thread — 1 reply

e12e#
Julia is currently (only) jit. AOT is stil work in progress AFAIK.

It's about as "compiled" as Luajit is.