5 ms·
I think Graal and Truffle are really great technologies. With a lot of potential to overcome unneeded silo's between programming language communities. For exam
by jerven 9y ago
I think Graal and Truffle are really great technologies. With a lot of potential to overcome unneeded silo's between programming language communities.
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.