3 ms·
You'd need an interpreted runtime for the language for that to work. D has a 'scripting' runtime but I'm not sure if anyone's done a REPL or what the limitation
by giancarlostoro 8y ago
You'd need an interpreted runtime for the language for that to work. D has a 'scripting' runtime but I'm not sure if anyone's done a REPL or what the limitations would be.
- jsjolen 8y ago/smug-lisp-weenie-mode I didn't realise that SBCL is interpreted.
- DonaldFisk 8y agoI'm not sure how SBCL is implemented, but I've written my own Lisp. It's incrementally compiled to byte code - the compiler is called when defun or defmacro is evaluated - but the REPL still relies on the interpreter, the same interpreter which does everything until the compiler compiles itself during a clean build. So compiled code can have a REPL, but a REPL needs an interpreter as well.
- lispm 8y agoSBCL compiles always. Code from the REPL is also compiled. OTOH LispWorks uses an interpreter for the REPL interaction. Yes, an Interpreter offers some more interactive features - but usually lacks the compile-time warnings/errors.