News for hackers. Stuff that matters.
Re:ChowJS: An AOT JavaScript engine for game consoles by sillycross on Thursday September 16, 2021 @09:30AM (#28551526)
Java is static-typed already and only has a low degree of dynamism, so the importance of doing so is much less (only to reduce the initialization time I believe).
Re:ChowJS: An AOT JavaScript engine for game consoles by chrisseaton on Thursday September 16, 2021 @09:33AM (#28551554)
There's a lot of interfaces and virtual calls in Java. Not sure if you're considering that dynamic or not, but I would would. Graal does some pretty intense whole-universe points-to analysis which enables monomorphisation, devirtualisation, scalar replacement, etc.
Re:ChowJS: An AOT JavaScript engine for game consoles by CountHackulus on Thursday September 16, 2021 @01:12PM (#28554411)
Java is yes, but the JVM runs other things and things like JRuby use the JVM bytecode for invoke_dynamic. There were a few things rewritten to use that bytecode from what I remember but it's been a while since I've worked in that area.