@thomastc@mastodon.gamedev.place
Post #2190241
2026-05-07 17:52 UTC
@lisyarus@mastodon.gamedev.place For modding, have you considered Java? It may sound crazy but does meet most of your requirements. The bytecode is platform independent and performance is decent. Sandboxing has been a feature since the applet days. Direct memory access (at least arrays of primitives) is a thing. C interop also exists, though I'm not sure how much overhead it has. As a bonus, modders could use other JVM languages like Kotlin and Scala.
I'm not sure how big an embedded JVM implementation is though.
Replies (1)
-
@lisyarus@mastodon.gamedev.place 2026-05-07 17:56
@thomastc@mastodon.gamedev.place I think JVM is smaller than LLVM, bit still quite large. Arrays of primitives aren't enough for me, I need at least arrays of arbitrary C structs, but often even more than that. Also I can't allow GC to unpredictably step in and wreck performance :/