<----- Return to main JsMacros docs page.

Extensions

Language Extensions

These extensions allow you to code in languages other than JavaScript, and some even have performance benefits.

Installation

To install jsmacros extensions, place the jar files in the .minecraft/config/jsMacros/LanguageExtensions/ folder.

Benchmarks

Everything's faster than JavaScript, except wasm/groovy interop

Jython, Lua and Ruby will have a good performance benefit for most tasks.
Plus, their threading scheme for launguage contexts works better, so you can have true async.

JEP/Groovy's good until you try to access a lot of different Java objects.
but jep can be a pain to install, and has threading concerns like js

Kotlin is faster, but is more strongly typed and null-checked, so it may be harder to write valid scripts in.

WASM/WASI is a joke.
have you seen its java interop code.

Debugging

for debugger attaching in js, see JsMacros Debugging