Zig libc - new devlog update

(the Ziggit link preview text is wrong; the title of the devlog entry is “zig libc”)

Neat update on the zig libc project, which is making progress on replacing many of the vendored C standard library files in Zig with Zig implementations.

Aside from the benefits mentioned in the post, I think I remember seeing it discussed that eventually this libc could be dropped into a project that doesn’t have another one available, providing the system dependencies in Zig as Allocator and Io instances. For example, in Wasm, the only way I know of today to get libc is to use wasi-libc, but I often find it more productive to create my own specialized interface for the Wasm code rather than using WASI. Hopefully, one day I’ll be able to drop WASI completely and just use this libc :smiley:

5 Likes

I share your distaste for wasi-libc - I think WASI or even custom freestanding wrappers is far superior. Unfortunately, in my opinion, libc is just a bad interface that is fundamentally unsuitable for WebAssembly, no matter how it’s implemented.

3 Likes