-
Notifications
You must be signed in to change notification settings - Fork 6
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
Runtime error #13
Comments
I plan to continue development eventually, yes. roblox-rs uses https://github.com/Rerumu/Wasynth to compile the WebAssembly into Luau code, and Wasynth is currently undergoing some major changes that will make its emit a lot faster and more viable in real world usage. After the new version of Wasynth is out, I'll likely try and find some more time to dedicate to roblox-rs. |
You'll need to copy this file from Wasynth and paste it into https://github.com/Rerumu/Wasynth/blob/trunk/codegen/luau/runtime/runtime.lua |
First of all, I am new to Lua. I don't see where Integer is initialized, so I assumed that Integer was a language standard object. But it's nil. Why? |
I see that Integer is defined in |
I got it to work by copying the definition of |
My initial attempt was to try to copy everything in the roblox folder to rojo's default project src/server folder. I have no idea how I got it to work. But I realized I have to use |
So, in order to make it work I had to:
|
The last error I got was possibly happening because the rustflags in .cargo/config where missing when using |
I'm not sure what you mean by this, what path are you specifying for the manifest? EDIT: oh, it's a Rust bug. Switching to |
Only one needs to exist, but we name the file
|
I still don't get how it's included and why I have to write it on top of the runtime.lua file. Is there something I am missing? |
It's the 64 bit integer implementation. Lua(u) doesn't have 64 bit integers but wasm requires them so they're implemented manually. It's not in the same file by default as there's two implementations (one favors memory, the other favors performance.) That said, all of that will be significantly simplified in Wasynth's refactor, and I believe the latest version actually exports the runtime so roblox-rs could switch to that instead of copying the runtine manually. |
I get this, my question was mostly about: Do I really need to copy the Integer implementation in the runtime.lua file? Or is there a correct way to do include it (or maybe a project config I am missing)? |
Any plan to continue development?
The text was updated successfully, but these errors were encountered: