logoalt Hacker News

fweimertoday at 10:37 AM3 repliesview on HN

Not in typical builds of SBCL: all code is compiled before evaluation.


Replies

pfdietztoday at 2:46 PM

You can turn that off by setting or binding sb-ext:*evaluator-mode* to :interpret.

Also, on my machine, compiling the identity lambda form takes about 200 usec with (optimize (compilation-speed 3) (debug 0)). SBCL could use a faster JIT mode, perhaps at compilation-speed 3/speed 0. Perhaps there are some other internal special variables that could be tweaked to reduce compile time.

show 1 reply
malispertoday at 2:23 PM

Eval would count as JIT compilation though[0]

[0] https://www.sbcl.org/manual/#compiler-only-implementation

glum64today at 1:47 PM

It depends on the implementation. CLISP compiles when it is told to.

show 1 reply