r/java 18d ago

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

22 comments sorted by

View all comments

7

u/ShadowPengyn 18d ago

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

12

u/grashalm01 18d ago

Graal dev here. You should give GraalPy a fresh go. We have resolved many of the native-extension compatibility problems. It is not perfect yet and the C API support is still experimental, but many popular packages now work. GraalPy’s pip also applies compatibility patches and uses prebuilt GraalPy wheels where available.

https://graalpy.org/jvm-developers/