Tratt: Fast Enough VMs in Fast Enough Time
Tratt: Fast Enough VMs in Fast Enough Time
Posted Feb 10, 2012 17:05 UTC (Fri) by khim (subscriber, #9252)In reply to: Tratt: Fast Enough VMs in Fast Enough Time by mjthayer
Parent article: Tratt: Fast Enough VMs in Fast Enough Time
Does that apply to tracing JIT more than JIT compilers generally?
This is problem with any JIT, but it's worse for tracing one.
Surely the main use for JIT compilers is situations when static compiling is not practical, like when the precise target platform is not known at the time when the code is circulated, or when the person running the code wants more control over it than they get from a precompiled binary.
The main use is for the languages which don't support static compilation.
Think web applications - do you really want to precompile your application for every CPU it might run on, and would people really want to run your precompiled binary locally without good reason to trust you?
Well, we all use JITs every time we run the program (our CPUs don't execute x86 code directly, it translates it to RISC-like µops on the fly) thus the question becomes: "do we need yet another JIT" and sometimes the answer is yes, but more often then not it's no and people use managed code because it has high buzzword-compliance value.
