Compis can now build WebAssembly C programs that use libc, for the WASI platform. This enables you to build your C program for both native targets and WASM with no—or very few—code changes. Here's a simple example: github.com/rsms/compis/tr…
Thread
There’s a wasi display api right? Can you use that here somehow to also render html?
Display API? I’m not super familiar with WASI beyond libc. Got doc URL to share?
Sadly not yet it seems. I guess they’re thinking about a windowing or framebuffer api: github.com/WebAssembly/WA… wasi’s docs could be better. It’s a pain to get to the actual proposals.
Framebuffer API · Issue #174 · WebAssembly/WASI
What do you think of my comment in #171 (comment). Feasible? Not expert in the subject so I might not see lots of small details. ... I'd like to see a frame buffer API some time, for embedded c...
github.com
Ah. I think it’s better w/o something like that. The WebGPU idea is a good one though. You can build a “dumb” framebuffer API in your app on top of something like that. github.com/WebAssembly/WA…