-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebAssembly / HTML5 target #24
Comments
Hi! Yeah, being able to target HTML5 / WebAssembly would be very nice indeed. Well, there are some FFI libraries for Lua, like cffi-lua and luaffi, but I don't know if they can be built for WebAssembly right now. Definitely needs further investigation. Another possibility would be to implement the plugin in Lua/C, but that would take a lot of work. That's exactly where the FFI shines, interacting with native code directly from Lua. |
I know it's probably more than a bit slower but doesn't Lua compile to wasm? If nothing else this does (even though it's a bit old), and maybe we could just use that for targeting web? Might complicate things but it might make it faster to setup wasm. |
@IntangibleMatter It's less about compiling Lua to WASM, but rather how the plugin uses LuaJIT's FFI to talk to the Godot API instead of plain Lua/C bindings. Again, we could implement the plugin in C/C++ using purely Lua bindings, but it would be a lot of work. |
One of the last things missing is a WebAssembly target. For this we need to switch away from LuaJIT (atleast of that platform) because the project having no intention to compile to WebAssembly
Some things we need to do:
The text was updated successfully, but these errors were encountered: