News for hackers. Stuff that matters.
Re:Graal and Truffle could accelerate programming language d... by azakai on Tuesday July 19, 2016 @01:15PM (#12123085)
I believe those benchmarks are for throughput, though. JS VM startup times (including v8) are highly optimized, while Graal+Truffle run on the JVM which is more optimized for sustained speed.

JS VMs also tend to have multiple tiers for that reason - interpreter, baseline, and full JIT, etc. - while AFAIK the Graal+Truffle/JVM approach has just 2 (which is optimal for Java, but not for startup times of JavaScript and other dynamic languages).

Re:Graal and Truffle could accelerate programming language d... by the8472 on Tuesday July 19, 2016 @01:27PM (#12123213)
Startup times are mostly important for scripting or running things in the browser. If you start applications once on the server or desktop and keep them running then steady-state performance is more important.

There also are projects underway to bring AOT compilation / caching of compiled code to the JVM. Right now they're only available to commercial customers due to their experimental nature and the needed support but if I remember the talk correctly they're supposed to be added to openjdk eventually

Re:Graal and Truffle could accelerate programming language d... by azakai on Tuesday July 19, 2016 @01:43PM (#12123336)
True about AOT coming to the JVM, however, dynamic languages can't be AOT'd well in general, so that won't help Graal+Truffle languages much.

Instead, dynamic languages tend to do tiering, which in principle is something Graal+Truffle could do, but it might be a lot of work.

Re:Graal and Truffle could accelerate programming language d... by hencq on Tuesday July 19, 2016 @05:54PM (#12125233)
Well at least it would help you avoid warm-up for the interpreter/compiler itself, so it might help a bit.