Live data from Hacker News

Zig Libc

ziglang.org

71–80 of 196 posts

Re: Zig Libc

#72

Does this mean long term Zig won’t run on OpenBSD? Because doesn’t OpenBSD block direct syscalls & force everything to go through libc. https://news.ycombinator.com/item?id=38039689

This affects static libc only. If you pass -dynamic -lc then the libc functions are provided by the target system. Some systems only support dynamic libc, such as macOS. I think OpenBSD actually does support static libc though.

Re: Zig Libc

#73
post #49

Earlier quoted context omitted.

You must have not tried this with an LLM agent in the past few months.

i tested sonnet 4.5 just last week on a zig codebase and it has to be instructed the std.ArrayList syntax every time.

I made a Zig agent skill yesterday if interested: https://github.com/rudedogg/zig-skills/

Claude getting the ArrayList API wrong every time was a major reason why

It’s AI generated but should help. I need to test and review it more (noticed it mentions async which isn’t in 0.15.x :| )

Re: Zig Libc

#74
post #10

"Abolish ICE" at the bottom. Obviously a Bad Bunny fan, as I am.

The very same day I sat at home writing this devlog like a coward, less than five miles away, armed forces who are in my city against the will of our elected officials shot tear gas, unprovoked, at peaceful protestors, including my wife. https://www.kptv.com/2026/01/31/live-labor-unions-rally-marc... This isn't some hypothetical political agenda I'm using my platform to push. There's a nonzero chance I go out there n…

[flagged]

Re: Zig Libc

#78

Does this mean long term Zig won’t run on OpenBSD? Because doesn’t OpenBSD block direct syscalls & force everything to go through libc. https://news.ycombinator.com/item?id=38039689

This affects static libc only. If you pass -dynamic -lc then the libc functions are provided by the target system. Some systems only support dynamic libc, such as macOS. I think OpenBSD actually does support static libc though.

> I think OpenBSD actually does support static libc though.

How does that work, with syscalls being unable to be called except from the system’s libc? I’d be a bit surprised if any binary’s embedded libc would support this model.

Post reply on HN