2 ms·
The article makes mention that FastR supports GraalVM's polyglot mechanism. One possible option for your task is you do your data analysis with FastR and render
by nirvdrum 8y ago
The article makes mention that FastR supports GraalVM's polyglot mechanism. One possible option for your task is you do your data analysis with FastR and render it with Node on Graal.js or Sinatra on TruffleRuby. At first blush this might not sound all that different from CGI of yore, but the key thing is all Truffle-based languages can optimize with one another. So, when your web server endpoint gets hot, Truffle's PE can inline nodes from FastR and JIT the whole thing with Graal.
You get to use the best language for the task at hand and don't have to worry about performance penalties for doing so.