Gameplans: Modularity of Mods

That’s what wasm interface types are for, It allows you to define types across the boundary that are not just numbers. It’s still a heavy development but there’s a lot of push to get it finalized and implemented into engines due to the speed boost it can give. Right now if you use fully safe code and marshall things slowly across and it won’t be any more costly than using something like the Lua API, except of course the actual execution of the code is significantly quicker, and you can use basically any language you want that can compile to WASM. Once interface types come out even the binding layer should become near native link speed.

2 Likes