-
Notifications
You must be signed in to change notification settings - Fork 18
Run WebAssembly Executables #99
Comments
potential candidate library for wasm is WasmerSharp |
This library doesn't use an external dependency, and compiles to an IL assembly, so it should work on more platforms and be easier to distribute. I'm not super familiar with WebAssembly, so there's lots of different aspects I don't know about. but given the nature of it, I presume the effective implementation would amount to custom Logix nodes and custom component drivers, perhaps with separate "WasmBinary" objects to allow for reusing code as sudo-libraries. Beyond that, I'm again not familiar enough with WebAssembly to speculate implementation details. |
that seems like a very bad idea since this will give full access to the system since its IL and can call system libraries. |
Unless the compiler is giving access to stuff it shouldn't, and if I'm reading the docs properly, the only way it would have access to the system is if said system libraries are imported, which we have control over and wouldn't give access to. You aren't able to just "create file IO instructions that steals your neos session key", you're limited to Wasm operations and whatever the compiler creates out of that. Fuel cost seems to be a hand-wavey argument to me, if we need to prevent infinite loops there's ways of doing it. |
i feel like we might have to build our own runner to run these webasm most of the stuff is out of date and idk about others considerations on this. |
Neos-Metaverse/NeosPublic#2818
The text was updated successfully, but these errors were encountered: