GraalVM – Polyglot: From the Very Old to the Very New [video]
eventil.com
eventil.com
For example the project I work on has a website that has been continuously improved for over ten years. This means that a large part of our stack is still JavaServletPages and not everyone enjoy's working with it. The backend is pure Java and we can't afford a complete rewrite. And a microservice architecture doesn't make sense (it really just 2 people full time on frontend with 2-4 others contributing once in a while)
So we are working on using a modern ES6+ approach to replacing JSPX templates with functional style JS code for rendering. Basically a bunch of sed/xpath to do a rough translation and then execute it with either Nashorn (after babel at the moment) and soon graal.js.
Hopefully, giving our frontend devs a modern stack without incurring the costs of doing a lot of extra HTTP APIs.
At the same time it would allow us (even more pie in the sky) to include some snippets of C code that would implement a nice function that we could call in the webserver if some input data is small. Avoiding reimplementing this in Java would be nice, especially as the C code is SIMD aware. Currently we send all data off to an external service, but that has significant overheads in communication and polling that would not be needed for small input data.
Here's hoping for a world where Graal.js is released as open source and runs on an official JDK release! Then we can do all sorts of wizard magic with JS in the cloud, without running actual Node. I tell myself it could be any year now. I forget whether JDK 9 supports Graal and what the latest release date for 9 is; it's changed so many times. I know there was some indication that Graal.js would eventually be open-sourced, but that may have been taken back.
If anyone knows anything, I'd love an update.
Java 9 (Oracle and OpenJDK) supports JVMCI, which is the interface Graal needs, and Java 9 is out on the 21st of September.
> Graal.js is released as open source
There's no news on this.
However it was not able to support any real world code / frameworks— ie. Rails. (At the time I even downloaded the compiler myself, but it was quite experimental)
Are we any closer to achieving that yet?