Posts, a community app by Read.cv

Thread
Rasmus Andersson

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…

Tanishq Kancharla
Replying to @rsms

There’s a wasi display api right? Can you use that here somehow to also render html?

Rasmus Andersson
Replying to @tk

Display API? I’m not super familiar with WASI beyond libc. Got doc URL to share?

Tanishq Kancharla
Replying to @rsms

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...
Tanishq Kancharla
Replying to @rsms

thatd be exciting! Build cross platform apps with anything that targets wasi. :)