by CyberDildonics · 2w ago · 0 comments
It's possible for JIT to achieve better performance with that damned bytecode compared to natively compiled equivalent.EOQ
Good JIT is able to dynamically re-optimize code according to present conditions/load which is what can give bytecoded program in certain conditions (which aren't that rare) edge over static native code. Is it possible to make your own dynamic optimization with natively compiled PL which would beat Java, or JS on a relevant case? As a sport, sure, you would just have to make your own bytecode with JIT. Or hand-optimize in every possible way staticly, and just chose the best path when running. You can even gain more by going with assembler. Is it worth extra time, increased attack surface, and higher probability of bugs? Will you even have a good chance to succeed? It is genuinely impossible to answer without full requirements which bind you. Independently, it's fair to say that on RAM side, natively compiled code wins most of the time. Is it something users care about is again a question to think each time anew. To quote me again:
But never say "never" until you know what exact problem you have to deal with. EOQ
Are you asking me what you're saying? EOQ
Is it possible to make your own dynamic optimization with natively compiled PL which would beat Java, or JS on a relevant case? As a sport, sure,
'As a sport' doesn't mean anything, it's just completely possible. I don't even know how you got into java in the first place, that has nothing to do with the current topic. You injected it out of nowhere.