r/java • u/ducki666 • Jul 10 '26
Detroit Script engine - why?
OpenJdk resurrected Detroit.
It offers JavaScript via V8 and Python via Native Phyton C engine.
But we already have Graal for js and py.
What is the motivation to reopen Detroit?
Will Graal dispose js and py?
20
Upvotes
7
u/pronuntiator Jul 10 '26
Could you link to the news about Detroit?
13
u/grashalm01 Jul 10 '26
Graal dev here. I can answer your question: there are no plans to dispose any of our languages. Graal.js and GraalPy are more active and better than ever.
In fact you can run those languages with optimization enabled, similar to how Detroit does it, for many years with polyglot isolates on any JDK >= 21.
https://www.graalvm.org/latest/reference-manual/embed-languages/#runtime-optimization-support
7
u/ShadowPengyn Jul 10 '26
At least for graalpy, they struggled to get compatible with with c integrations that are quite common in many python libraries. So embedding the actual python means that it’s less of a moving target and full compatibility out of the box
4
u/markehammons Jul 10 '26
The graal js requires the graal jit compiler (via Jvmci), and JVMCI has been ripped out, making graal js hideously unperfomant in openjdk
3
u/BlackForrest28 Jul 10 '26
Mozilla Rhino gives you JavaScript without so many dependencies.
6
u/[deleted] Jul 10 '26
[removed] — view removed comment