Add a graaljs REPL environment

Description

Graal.JS is a new JavaScript engine https://github.com/graalvm/graaljs and with CLJS-2745, we are testing ClojureScript compatibility with Graal.js.

ClojureScript could ship with a new REPL environment (compatible with cljs.main's --repl-env feature).

With this new REPL environment, Graal.js's polyglot capability can be enabled by default, thus allowing direct interaction with Truffle languages.

Here is an example, based on a spike into such a feature:

Over the long term, the graaljs REPL environment could be considered a modern replacement for the use cases currently satisfied by the nashorn REPL environment.

Nashorn will evidently be deprecated with Java 11: http://hg.openjdk.java.net/jdk/jdk11/rev/fb7800b66c92

Environment

None

Assignee

Mike Fikes

Reporter

Mike Fikes

Labels

None

Approval

Accepted

Patch

Code and Test

Priority

Major
Configure