‹ BackHN Continuity

Thread

Zig v0.17.0

267 points · 208 comments · ErenayDev

  1. ubavic · · focus · HN ↗
    I’ve written software for a living in JS, C, Pascal, and Go, and I’ve tried many, many more languages. After working on a project in Zig for a year, I’m convinced that Zig is the best-designed language I’ve tried so far. Haskell comes close. At least, it’s the best-designed language for humans.

    It’s not for everyone yet. It’s still unstable, and its ecosystem is small. However, both are improving.

    1. itishappy · · focus · HN ↗
      I'd like to learn more about the connection between Zig and Haskell as they seem almost opposite in design and philosophy. I'm pretty sure you just meant they're both "good languages" but if there are parallels I'm missing I'd love to know!
      1. creata · · focus · HN ↗
        I'm not the person you asked, but I see them both as languages that try to get a lot of mileage out of a few features. Both of them try to have small cores, instead of taking a "maximalist" approach like C++.
    2. dnautics · · focus · HN ↗
      I mean. Zig is a really freaking good language for LLMs (in my hands) too
      1. childintime · · focus · HN ↗
        What LLM? I used claude and it just cracks up on zig 0.16. Terrible.
        1. dnautics · · focus · HN ↗
          Claude. I have several things written in zig:

          - wasm lalign utility (integrated in opengenepool.vidalalabs.com, not obvious how to trigger it but you can inspect the wasm package)

          - real-time DNA gel lane assignment

          - proprietary (Claude also used zig to reverse engineer the usb wire protocol) industrial camera driver

          Last two:

          <a href="https:&#x2F;&#x2F;x.com&#x2F;DNAutics&#x2F;status&#x2F;2099583335940936175?s=20" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;DNAutics&#x2F;status&#x2F;2099583335940936175?s=20

          If you want weirder shit:

          <a href="https:&#x2F;&#x2F;github.com&#x2F;ityonemo&#x2F;2b4m" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ityonemo&#x2F;2b4m

    3. vconnor · · focus · HN ↗
      &gt; It’s not for everyone yet. It’s still unstable, and its ecosystem is small. However, both are improving.

      To be fair, I&#x27;ve heard this for years now, yet the hype keeps mounting. I wasted half an hour this morning debugging a broken Zig project, all because I used a release a few months too new that removed some options used in build.zig

      Releasing stable software and caring about backward compatibility is a skill many open-source maintainers don&#x27;t ever want to engage with. It&#x27;s so easy saying &quot;our code is not stable, if it breaks good luck to you&quot;, but at some point it starts to smell like fear of commitment to running a serious project that people depend on.

      1. rererereferred · · focus · HN ↗
        Why such high expectations from a 0.x project? They explicitly break backwards compatibility now so they don&#x27;t have to do it once 1.0 comes. There&#x27;s nothing wrong with waiting a few years before trying Zig.
        1. vconnor · · focus · HN ↗
          My point is that at some point one needs to recognize their project is used for production stuff and make stability the focus, rather than hiding behind the 0.x excuse for years. Call it the Peter Pan syndrome of open source.

          For comparison, Elixir started in 2012, and got its 1.0 in 2014, two years later. Zig stable has been ‘a few years’ for literally a decade.

          1. alexrp · · focus · HN ↗
            &gt; My point is that at some point one needs to recognize their project is used for production stuff and make stability the focus, rather than hiding behind the 0.x excuse for years. Call it the Peter Pan syndrome of open source.

            We have a roadmap to 1.0.0 -- it&#x27;s literally right there in the release notes -- and we&#x27;re going to execute on that and then tag it. Ignoring that (and SemVer) and declaring that we should actually stabilize right now is a bit unreasonable.

            &gt; For comparison, Elixir started in 2012, and got its 1.0 in 2014, two years later. Zig stable has been ‘a few years’ for literally a decade.

            This is a wild comparison to me, and I say this as someone who actually used Elixir for a time fairly early in its development (and still like it!). Zig has a vastly larger and more difficult problem space to deal with than Elixir.

    4. pjmlp · · focus · HN ↗
      Zig couldn&#x27;t be further away from Haskell in features and community culture.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.