A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
1–10 of 103 posts
Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#2Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#3Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#4Tl;dr: JIT is a compiler that optimuzes certain parts of code after interpreter see it as hot (e.g. was executed many time). Thank to runtime information it can occasionally exceed performance of statically compiled language.
Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#5Tl;dr: JIT is a compiler that optimuzes certain parts of code after interpreter see it as hot (e.g. was executed many time). Thank to runtime information it can occasionally exceed performance of statically compiled language.
Interestingly in 30 years I have not once heard of a case where this theoretical benefit has manifested as a clear advantage in any real world application when looking at the system as a whole... amdahls law and all that.
You can always hand tune the 1-10% hotspots for reasonable cost most of the time, and even static tools can do PGO which generally gets you where JIT would anyway.
Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#6Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#7Earlier quoted context omitted.
except Julia because Julia <3
What do you mean?
(this is in the post~)
Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#8Tl;dr: JIT is a compiler that optimuzes certain parts of code after interpreter see it as hot (e.g. was executed many time). Thank to runtime information it can occasionally exceed performance of statically compiled language.
> Thank to runtime information it can occasionally exceed performance of statically compiled language. Interestingly in 30 years I have not once heard of a case where this theoretical benefit has manifested as a clear advantage in any real world application when looking at the system as a whole... amdahls law and all that. You can always hand tune the 1-10% hotspots for reasonable cost most of the time, and even stat…
Today you make make a very direct empirical comparison to see this - using the Graal compiler. This lets you compile exactly the same Java code either ahead-of-time or just-in-time, but using the same compiler logic except for the runtime information available when running just-in-time. The just-in-time code is (ignoring startup and warmup time) in my experience always faster, due to the extra runtime information.
Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#9Re: A Deep Introduction to JIT Compilers: JITs are not very Just-in-time
#10Very nice. I just looked at the author's resume.[a] It appears she is still in, or only very recently graduated from, high school . Is that right? Impressive! [a] https://carolchen.me/