115 points by ingve 6 hours ago | 36 comments
  • xrd
    "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 next weekend to peacefully protest, and get shot like Alex Pretti.

      Needless to say, if I get shot by ICE, it's not good for the Zig project. And they've brought the battle to my doorstep, almost literally.

      Abolish ICE.

      • My 85 year old mom lives in Portland and she attends rallies frequently. If you know of any way to support you or other local people doing this work, I'm very interested. My email is on my profile page.

        I have a friend who is in Minneapolis. He's involved in caravans which are tracking ICE. He wasn't the driver in the last one. But, the ICE vehicle they tailed suddenly started going in a very direct path, instead of randomly driving. The driver figured it out first. They drove to the driver's house and then stood outside of their car for ten minutes staring at his house. Cars in Minnesota have their license plates on both the front and the back.

        Is there any justification for that kind of intimidation? Did any of the Trump supporters vote for that? I hear about paid agitators on the left but not that kind of compensated actors. Is his name in a database now once they did the lookup?

      • > against the will of our elected officials

        Did you mean your local officials?

      • [flagged]
        • These few-minutes-old accounts swooping in on hot button issues to try persuade people are such a goddamn scourge, I wish there were something that could be done about it.

          In the end I probably just need to leave HN for a while because it's really doing a number on what's left of my ability to trust what I read online.

          • Only thing you can do is flag them. Two strikes and they're gone. Plus usually, moderation give these accounts a perma-ban.
          • [flagged]
            • It is possible to both abolish ICE and CBP.

              Especially as CBP officers commit crimes at a higher rate than undocumented migrants in the US: https://www.doomsdayscenario.co/p/accountability-for-ice-and...

              In fact if you were to make a police force entirely out of CBP officers who have been arrested, it would be the fourth largest police force in America.

            • You don't get what the issue is?

              Your account is 27 minutes old, the username is sarcastic at best, you hopped on specifically to defend the indefensible.

              You really don't know?

              • Correct, I'm still not sure.

                My genuine question has not been answered and I haven't defended anyone or anything in any comment I've made (Besides of course my comments themselves).

                I made a new account solely so I don't have any politic related stuff in my main accounts history. I'm not trying to defend any side or action. I just want to know why CBP doesn't get more hate for their very unnecessary murder.

      • SLWW
        [flagged]
        • When people like you finally realize what is happening in this country, I'm ready to quickly forgive and move on so that we can work together to preserve what freedoms we have left.

          but please hurry... we really need you to pay attention and understand the reality that is upon us.

          • I do know what's happening. I've been around and watching for over a decade. We are bleeding from every orifice from an economic standpoint. The recent moves for deportations is an attempt by the office of the President to save face while not doing anything to fix over-spending, it's also a good vehicle for a surveillance push, and the RNC/old-school dems will be happy so someone like JD can take power afterwards to prop up the current rising oligarchy and further support British assets moving into the middle-east for "oil".

            I'm not ignorant. I just know you aren't going to change anything by getting riled up emotionally and using language that indicates instability (I don't know you, my initial comment is because I don't want to see you get snuffed out). There's nothing you can do to solve these problems at this point and time, and they would prefer you protest so they can get your face, for the purposes of marking. Portland also is full of genuinely nutty people, been there several times and there is a real social contagion. You should be spending your time helping who you can, avoiding the authorities in general (never even speak to them), and understand that this "liberal democracy" is slowly collapsing and there's no stopping what's going to happen. We are being hollowed out entirely.

            Freedoms aren't going to matter much when we are owned by every foreign nation but our own. I thought about 7 years ago that we could fix this with protesting, now I know that we can't. I'm just seeing this from a view of total loss while you see that there is yet still time.

            Quick addendum: this is not me attempting to demoralize. I do think that once people can't pay for bread then maybe something will change. Up until that point the majority will give away every right for even the slightest relief, anything for a little hope of a better future. This has happened many times before. Empires rise and fall, it's nothing unique or out of the ordinary across history. First and foremost look out for yourself and your loved ones, and be willing to be flexible

      • >Abolish ICE

        Are you OK with sovereign states enforcing their borders and deporting illegal immigrants? Is it the awful tactics ICE uses to accomplish its mission, or is the mission in and of itself immoral?

        • The Department of Homeland Security was created in 2003. We didn't need it then and we don't need it now.

          Why waste tax dollars on ineffective, privacy-violating security theater when we could spend it on education and health?

          • You didn't answer or even address a single question I asked. I'll ask again:

            1. Are you OK with sovereign states enforcing their borders and deporting illegal immigrants?

            2. Is it the awful tactics ICE uses to accomplish its mission, or do you find the mission in and of itself immoral?

        • Are you ok with the size of the budget these agencies control? Are you ok with it being headed by a guy who never has denied he took a $50k bribe from the FBI and wasn't even the initial target of an investigation?

          I would bet you $1000 that not one of the immigrants being rounded up were even accused of that kind of corruption and crimes.

          How is this not bald corruption and an insane way to spend tax dollars when people are really struggling in this country?

          And I know plenty of restaurant owners in Portland that are closing because of down tourism. Why can Trump sue the IRS for $10B but Portland can't sue him for disparaging the city because he can't figure out that videos of riots are five years old?

        • No. Both.
    • I too am sick of internal compiler errors
    • I too am sick of internal combustion engines, a product of the last century.
    • I too am sick of intrusion countermeasures electronics. Think of all the poor netrunners out there.
  • 250 C files were deleted. 2032 to go. Watching Zig slowly eat libc from the inside is one of the more satisfying long term projects to follow
  • Cool idea, for sure, but I can't help but wonder: for the code that's been ported, is there a concern that you'd have to perpetually watch out for CVEs in glibc/musl and determine if they also apply to the Zig implementations?
    • Yes but we already have to do that for our own standard library. For shared codepaths (e.g. math) it's strictly fewer potential bugs.
  • > It’s kind of like enabling LTO (Link-Time Optimization) across the libc boundary, except it’s done properly in the frontend instead of too late, in the linker

    Why is the linker too late? Is Zig able to do optimizations in the frontend that, e.g., a linker working with LLVM IR is not?

    • Seems like it ought to be able to do inlining and dead code stripping which, I think, wouldn't be viable at link time against optimized static libraries.
      • It is viable against the IR that static libraries contain when LTO is enabled.

        LTO essentially means “load the entire compiler backend into the linker and do half of the compilation work at link time”.

        It’s a great big hack, but it does work.

        • Right, but I think that's what the question of "Why is the linker too late?" is getting at. With zig libc, the compiler can do it, so you don't need fat objects and all that.

          ---

          expanding: so, this means that you can do cross-boundary optimizations without LTO and with pre-built artifacts. I think.

  • "Furthermore, when this work is combined with the recent std.Io changes, there is potential for users to seamlessly control how libc performs I/O - for example forcing all calls to read and write to participate in an io_uring event loop"

    This is exciting! I particularly care more about kqueue but I guess the quote applies to it too.

  • Super cool project.

    I expect a lot of C code may be quite mechanically translated to Zig (by help of LLMs). Unlike C->Rust or C->C++, where there's more of a paradigm shift.

    • There's solid reason for the translation here; the Zig core team is aiming to eliminate duplicated code and C functions, and avoid the need to track libc from multiple sources. In the future, LLMs could serve as part of this, but they are currently quite terrible at Zig (as far as I understand it, it's not a lack of Zig code samples, it's an imbalance of OLD Zig to NEW Zig, as Zig changes quite frequently).

      You would need to consider if it is even worth it translating your C code. If the paradigm is identical and the entire purpose would be "haha it is now one language," surely you could just compile and link the C code with libzigc... In my opinion, it's not worth translating code if the benefit of "hey look one language" requires the cost of "let's pray the LLM didn't hallucinate or make a mistake while translating the code."

  • [flagged]
    • One can say words against one injustice without being required to mention every injustice.
  • This strikes me as a very agent-friendly problem. Given a harness that enforces sufficiently-rigorous tests, I'm sure you could spin up an agent loop that methodically churns through these functions one by one, finishing in a few days.
    • Have you ever used an LLM with Zig? It will generate syntactically invalid code. Zig breaks so often and LLMs have such an eternally old knowledge cutoff that they only know old ass broken versions.

      The same goes for TLA+ and all the other obscure things people think would be great to use with LLMs, and they would, if there was as much training data as there was for JavaScript and Python.

      • To be fair, this was true of early public LLMs with rust code too. As more public zig repositories (and blogs / docs / videos) come online, they will improve. I agree it's a mess currently.
      • You must have not tried this with an LLM agent in the past few months.