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?

Rasmus Andersson
Replying to @tk

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…

Tanishq Kancharla
Replying to @rsms

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