> So theoretically nimscript could be a JIT, which would be pretty cool tbh, I 
> think there's some work in the llvm backend to do that using LLVM's JIT 
> infrastructure.

Currently the Nim VM and Nimscript are fast as Python according to @Araq, and 
Python is already fast enough for many purposes. I think maintainability and 
debuggability significantly trumps JIT advantages.

Where compile-time evaluation is slow is for the type system (semantic checks, 
sigmatch), compute is decent, I tested it with compile-time bigint arithmetic 
<https://github.com/mratsim/constantine/blob/0944454/constantine/math/config/precompute.nim#L489-L525>

Reply via email to