orca-app / orca

A Wasm environment for cross-platform, sandboxed graphical applications.
https://orca-app.dev
Other
156 stars 13 forks source link

Language support #32

Open martinfouilleul opened 9 months ago

martinfouilleul commented 9 months ago

We will need to organize bindings in separate repos so that we don't clutter the main repo. App devs would get the main repo and pick the bindings repo for their language of choice, and be set up. This would also allow people to start working on bindings more autonomously.

martinfouilleul commented 9 months ago

Regarding C, I had the hope that we could pull a stripped down version of musl used by Zig's wasm32-freestanding-musl target... except this target actually won't work. You'd need to target wasi and provide the required shims for it to work. Loris told me that it will work in the future, because Zig will be providing its own libc-compatible interface to Zig's standard library, which has no problem being freestanding. In the meantime, it seems we'll have to strip down musl of all OS-related stuff ourselves. A slightly less onerous option might be to start from wasi-libc and remove anything requiring wasi "syscalls", since they already made the effort of making the rest of musl work with wasm.

martinfouilleul commented 3 months ago

Point 1 and second comment is solved by our new orca libc thanks to Reuben! (see #58 ) For Odin/Zig/etc bindings see also #68