Open Pathemeous opened 7 years ago
Find out how to boot a new JVM from within Java Trivial case not that hard. Challenge: how do we load up the new jvm with the correct classes.
With the StrategoEvaluationStrategy
this no longer poses an issue, because GraalVM is not used there.
Correct @justinvdk? We can close this.
Note that you do need to recreate the Spoofax interpreter after the language is rebuilt.
recreate the Spoofax interpreter
This is part of the build process right? I think what @Pathemeous means is that we don't have to reload the language definition in the shell at runtime, a rebuild is all that is needed to make use of a new interpeter.
JVM and GraalVM cannot hotswap the java code of the language interpreter, meaning that a new JVM must be run for each new build of the language.
To trigger this, we could start simple with a
:reload
user command, that spins a new JVM with the currently build interpreter.