Live data from Hacker News

Zig Libc

ziglang.org

131–140 of 196 posts

Re: Zig Libc

#131

Earlier quoted context omitted.

Programmers are curious by nature. So it's not 2 words; it's 2 words + wikipedia article + news articles about it, just to know what he's writing about. All uncalled for.

Be a little more curious then, friend. The author lives in Portland, which has been experiencing federal brutalization for months. Same place where the feds are repeatedly violating standards for warfare by using chemical munitions on civilians and engaging in large-scale misinformation campaigns against immigrants. It’s almost astonishing how you found his statement “uncalled for”, while neglecting these facts. http…

To be honest, I am more concerned about the Iranian government killing its own people.

Iran has already killed half as many people as the estimated casualties in the Israel-Palestine war.

Not everything revolves around USA.

Re: Zig Libc

#132

Earlier quoted context omitted.

Be a little more curious then, friend. The author lives in Portland, which has been experiencing federal brutalization for months. Same place where the feds are repeatedly violating standards for warfare by using chemical munitions on civilians and engaging in large-scale misinformation campaigns against immigrants. It’s almost astonishing how you found his statement “uncalled for”, while neglecting these facts. http…

To be honest, I am more concerned about the Iranian government killing its own people. Iran has already killed half as many people as the estimated casualties in the Israel-Palestine war. Not everything revolves around USA.

I’m distraught by what’s happening there, too. Truly horrifying details emerged in the last week or so.

We must all not be discouraged from speaking truth to power, especially when power is abused - irrespective of country or creed!

ICE must be abolished. The people of Iran must have democracy. But only one of those things is within the author’s relative sphere of influence.

Re: Zig Libc

#133
post #111
post #108

Earlier quoted context omitted.

It's kind of hilarious to call 2 single words at the end of a blogpost that you could have read over "pushing politics down your throat". As you said, you didn't even have an idea what it meant. For all you knew before you looked it up, he was complaining about the frigid winter weather.

Would you really make the same argument if those two words were “White power!” or something?

Hey it’s only the first week of February - isn’t it a bit early to be vying for most egregious example of a false equivalence?

Re: Zig Libc

#134

Earlier quoted context omitted.

> 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.

Not all of libc is syscalls. E.g. strlen() is zib libc but open() goes to system libc.

Good point. C's "freestanding" mode, analogous to Rust's nostd, does not provide any functions at all, just some type definitions and constants which obviously evaporate when compiled. Rust's nostd not only can compute how long a string is, it can unstably sort a slice, do atomic operations if they exist on your hardware, lots of fancy stuff but as a consequence even nostd has an actual library of code, a similar but maybe less organized situation occurs in C++. Most of the time this is simply better, why hand write your own crap sort when your compiler vendor can just provide an optimised sort for your platform? But on very, very tiny systems this might be unaffordable.

Anyway, C doesn't have Rust's core versus std distinction and so libc is a muddle of both the "Just useful library stuff" like strlen or qsort and features like open which are bound to the operating system specifics.

Re: Zig Libc

#135

Earlier quoted context omitted.

> Due to how great America is Well, not to worry then, hateful little attitudes like yours are rapidly undoing America's greatness. Soon noone will want to be there, including Americans. Better start practicing your Chinese.

Enforcing the law is not a hateful attitude. If people don't want to be in a society that enforces laws they can feel free to go to some lawless society.

How many laws has the Trump administration flat out ignored? You're cheerleading the introduction of a lawless society. Perhaps you should reconsider your frame of reference.

Re: Zig Libc

#136
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…

I like how you call peaceful protests when people throw huge rocks, break city infrastructure and damage property and take 0 accountability for it. And most likely don't pay taxes to fix it up later.

How convenient it must be to blame officers instead of bad actors just because you agree with their side.

This is purely pushing political agenda, you just covering it up.

Re: Zig Libc

#138

Earlier quoted context omitted.

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…

I like how you call peaceful protests when people throw huge rocks, break city infrastructure and damage property and take 0 accountability for it. And most likely don't pay taxes to fix it up later. How convenient it must be to blame officers instead of bad actors just because you agree with their side. This is purely pushing political agenda, you just covering it up.

Since you're so eager to construe his support for peaceful protest as support for civil unrest, I therefore think it's fair if I construe your defence of ICE to mean support for their extrajudicial executions and the people who dress up as ICE (ie: masked men dragging people at gunpoint into unmarked vans) to kidnap and rape people.

Re: Zig Libc

#139

Earlier quoted context omitted.

That's something I've always admired about Zig. A lot of languages claim to be a C replacement, but Zig is the second language I've seen that seemed like it had a reasonable plan to do so at any appreciable scale. The language makes working with the C ABI pretty easy, but it also has a build system that can seamlessly integrate Zig and C together, as well as having a translate-c that actually works shockingly well in…

D can import C files directly, and can do C-source to D-source translation. D can compile a project with a C and a D source file with: dmd foo.d bar.c ./foo

Do you have to bring up D in every Zig related post?

I do like D. I've written a game in it and enjoyed it a lot. I would encourage others to check it out.

But it's not a C replacement. BetterC feels like an afterthought. A nice bonus. Not a primary focus. E.g. the language is designed to use exceptions for error handling, so of course there's no feature for BetterC dedicated to error handling.

Being a better C is the one and only focus of Zig. So it has features for doing error handling without exceptions.

D is not going to replace C, perhaps for the same reasons subsets of C++ didn't.

I don't know if Zig and Rust will. But there's a better chance since they actually bring a lot of stuff to the table that arguably make them better at being a C-like language than C. I am really hyped to see how embedded development will be in Zig after the new IO interface lands.

Re: Zig Libc

#140

Earlier quoted context omitted.

Enforcing the law is not a hateful attitude. If people don't want to be in a society that enforces laws they can feel free to go to some lawless society.

How many laws has the Trump administration flat out ignored? You're cheerleading the introduction of a lawless society. Perhaps you should reconsider your frame of reference.

Cheerleading laws to be enforced is the opposite of cheerleading the introduction of a lawless society.
Post reply on HN