News for hackers. Stuff that matters.
Re:Writing a Polyglot Script by mathnmusic on Saturday January 25, 2020 @03:28PM (#22148450)
What I would like to see is a way to use multiple languages within the same script, to use the different abilities of different languages. For eg: Query a database via Ruby using ActiveRecord, then do some number crunching in Python using numPy or Pandas, and finally plot some statistical charts using R.

Jupyter's multiple language kernels come close to this, but not quite.

Re:Writing a Polyglot Script by fniephaus on Saturday January 25, 2020 @03:39PM (#22148493)
You can do this with GraalVM. Here's an example: https://github.com/graalvm/graalvm-demos/tree/master/polyglo...

And here's a polyglot notebook example: https://fniephaus.com/2019/px19-polyglot-notebooks.pdf

And finally, here's our GraalVM-powered Jupyter kernel: https://github.com/hpi-swa/ipolyglot