2 ms·
> very hard to really grasp the difference between Ahead of Time and JIT JIT = "just in time" = bytecode is converted to native code while the program is runni
by pjc50 3y ago
> very hard to really grasp the difference between Ahead of Time and JIT
JIT = "just in time" = bytecode is converted to native code while the program is running, either at the startup of the program or just before a particular function is called. Sometimes even after the function is called (since the JIT process itself takes time, it may be optimal to only run it once a function has been called N times or taken M microseconds total run time)
AOT = "ahead of time" = bytecode is converted to native code before the program starts. i.e. by the developer during their distribution or deployment process. AOT compilation knows nothing about the specific run time conditions.