KubeJS

KubeJS

69M Downloads

GraalJS vs Rhino

Yu-Vitaqua-fer-Chronos opened this issue ยท 1 comments

commented

Describe the feature

Heya, i see that KubeJS currently uses a modified Rhino runtime, but why is that better than using GraalJS? In the archived KubeJS fabric repo apparently that was the plan? I don't know about Rhino but iirc modern JS features are all implemented in GraalJS and it can run on stock JVMs as many projects have been done before

Additional info

No response

commented

It was never the plan to switch to it, but it is one of the options I looked at. I can't find the message I wrote before, but it had some major core features missing. And overall, these days, I practically have rewritten Rhino myself so I know how it works very well to point where I can implement new syntax myself (such as ?? and ** operators). Last time I checked it didnt support beans (a.getX() -> a.x), didn't understand how to convert Map objects too well and overall was massively bigger filesize-wise than my Rhino