News for hackers. Stuff that matters.
Re:What I Learned Making My Own JIT Language by zbentley on Wednesday June 27, 2018 @09:42PM (#17413434)
> How about a language that loses the ability to redefine structures and methods after a certain point?

Sounds awesome! We could call the phases before that point "compile time" and "preprocessor time", and the phase after that point "run time".

/sarc

Re:What I Learned Making My Own JIT Language by yorwba on Wednesday June 27, 2018 @11:59PM (#17413966)
Most languages lack one of these phases. C/C++ and the C preprocessor are completely different languages, you can't execute C code during preprocessing. That's annoying and the reason for the introduction of constexpr in C++11. Other languages are too dynamic to be handled by a static compiler, but might benefit if you could transition to optimized machine code at runtime. Except for Lisp, I don't think there are many other languages where such a thing is possible.