4 ms·
The Graal compiler is compiling Java code to faster machine code on top of the JVM. Also GraalVM's JavaScript implementation uses an entirely different approach
by grashalm 8y ago
The Graal compiler is compiling Java code to faster machine code on top of the JVM. Also GraalVM's JavaScript implementation uses an entirely different approach by using Truffle for its implementation making it significantly faster. Also GraalVM ships with Node.js support, tooling and other languages.
Here is a full list of reasons:
http://www.graalvm.org/docs/why-graal/ http://www.graalvm.org/docs/why-graal/
Here are some (maybe a bit outdated, but independent) benchmarks comparing it to Nashorn:
http://blog.nidi.guru/tech/javascript/2018/04/02/javascript-benchmarks/ http://blog.nidi.guru/tech/javascript/2018/04/02/javascript-...
We have some way to go to beat V8.
- thinkloop 8y agoFrom the provided link: - graal has superior compiler technology based off of a research paper [1] that: -- has superior ability to remove costly object allocations in many scenarios -- has better inlining and more aggressive speculative optimizations -- has smarter jit compilation [1] http://www.ssw.uni-linz.ac.at/Research/Papers/Stadler14/Stadler2014-CGO-PEA.pdf http://www.ssw.uni-linz.ac.at/Research/Papers/Stadler14/Stad... (pdf)
- alexprokopec 8y agoA few additional papers with details on Graal IR and optimizations: http://lafo.ssw.uni-linz.ac.at/papers/2013_VMIL_GraalIR.pdf http://lafo.ssw.uni-linz.ac.at/papers/2013_VMIL_GraalIR.pdf https://dl.acm.org/citation.cfm?doid=2245276.2232084 https://dl.acm.org/citation.cfm?doid=2245276.2232084 http://aleksandar-prokopec.com/resources/docs/graal-collections.pdf http://aleksandar-prokopec.com/resources/docs/graal-collecti...