demoth / jake2

Quake 2 java port
GNU General Public License v2.0
59 stars 9 forks source link

Add WASM module loader for AI and other pluggable functionalities #89

Open samoylovfp opened 1 year ago

samoylovfp commented 1 year ago

Proposal to add foundation for a WebAssembly module loader. This will allow developing sandboxed plugins, developed in any language that can target WebAssembly

Options I found are

1. Wasmer

Pros

2. KTWasm

Pros

I would go for the second option, I don't think performance will be of an issue. Switching between options should be fairly straightforward as well.

If this sounds like a good idea I would require help with packaging or vendoring the dependency and integrating it into the game loop

demoth commented 1 year ago

So far the option 3. GraalVM WASM looks most promising approach