‹ BackHN Continuity

Thread

Zig v0.17.0

267 points · 208 comments · ErenayDev

  1. jabedude · · focus · HN ↗
    How is Zig doing as a project? I remember they took a hard line against AI
    1. abc42 · · focus · HN ↗
      It looks like they're spending 5 months what should be a 1 month job these days.
      1. greggoB · · focus · HN ↗
        Can you offer any specifics? The ToC looks quite extensive, which to me indicates a lot of design decisions needed to be made (probably involving many people) and unclear how that process might be accelerated by AI.

        Unless you're suggesting the language design should also be vibed together?

        1. nvme0n1p1 · · focus · HN ↗
          > Unless you're suggesting the language design should also be vibed together?

          Sounds like a fun little project, have a bunch of AI pushers fork Zig and see if they can do a better job. I want to see results, not snarky HN comments. After all this progress, ChatGPT should be able to one-shot a better language since AI is so good now... right?

          1. spankalee · · focus · HN ↗
            One-shot, no, but there are a bunch of people pretty much solo-building their personal ideal language with AI and it's going quite well. You need to know just enough about language design to be dangerous, but you don't need to be a seasoned pro.

            I&#x27;m doing it myself: <a href="https:&#x2F;&#x2F;zena-lang.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zena-lang.dev&#x2F;

            1. Karrot_Kream · · focus · HN ↗
              Been thinking about doing this myself (did some PL in grad school but it&#x27;s been a long time), but I find myself wanting to reach for a Scheme (using macros to grow the language I want) and customize it or build something atop Janet.

              Curious why you wanted a more ML &#x2F; Rust &#x2F; Scala inspired syntax. (Personal preference here is totally valid btw, just curious.)

              1. spankalee · · focus · HN ↗
                The syntax is TypeScript inspired because I like it and my bet is that the familiarity helps human and AI coders learn the language.
            2. 0c3ca83 · · focus · HN ↗
              It seems like such a strange thing to do, building a language that you aren&#x27;t going to write by hand. It&#x27;s guaranteed to perform worse at higher cost, fill up a lot more of the context window, and burn a ton more reasoning tokens.

              If you&#x27;re using AI, a language with a large training set is going to win.

              1. Karrot_Kream · · focus · HN ↗
                I guess it depends on whether you will write everything in an AI assisted fashion or not. There&#x27;s benefits to languages that are quick and easy to read by the author even if the LLM is doing the writing, because most code still benefits from human review above and beyond the review that agents provide. Language popularity certainly helps but it seems like for moderately popular languages [1] the cost you pay for a lack of popularity is quite modest.

                [1]: <a href="https:&#x2F;&#x2F;danluu.com&#x2F;pl-tokens&#x2F;" rel="nofollow">https:&#x2F;&#x2F;danluu.com&#x2F;pl-tokens&#x2F;

                1. 0c3ca83 · · focus · HN ↗
                  A language you just created isn&#x27;t going to be moderately popular, so it&#x27;s just going to put you at a disadvantage -- and you&#x27;re not even going to be writing in it, so why the self-kneecapping?
                  1. Karrot_Kream · · focus · HN ↗
                    I mean what does &quot;put you at a disadvantage&quot; even mean concretely? To use a less popular language, it means you need to load up context related to the semantics of your language, load context on how to invoke tools to make sure the syntax with your language is correct, load up context related to each tool call you make (which will be more numerous in a niche language), and load up context on architectural decisions that might be specific to your language. All of this is simply a token cost. By forcing a model to load an initial amount of context per harness turn you also effectively shorten the max context window beyond which the model becomes stupid (which itself is much shorter than the max context length.)

                    Obviously it&#x27;s not like people are specifically trimming each and every prompt they give a model to tokenmax their models to get the best output &#x2F; input prompt, we instead live in a spectrum of how many tokens of input and context we&#x27;re willing to provide to a model to make progress. If the cost of those tokens is low enough for the problem domain you&#x27;re working in, then it&#x27;s fine. For some the readability of a personal language may outstrip any of the token costs that one needs to pay to use it. Alternatively maybe you want something like an array language (J, K, APL, etc) which allows array programming and optimizations that conventional PLs just can&#x27;t do. Maybe you want your language to compile to a target that is highly portable. There&#x27;s actually a lot of stuff out there that previously wasn&#x27;t feasible but with LLMs-as-force-multiplier absolutely is.

                    I also suspect the space is a continuum. There may be pareto optimal points, such as DSLs built atop languages, that are both highly readable but also fairly token efficient.

                    1. 0c3ca83 · · focus · HN ↗
                      It&#x27;s both a token cost and a performance cost; there&#x27;s only so much that documentation can do, compared to a ton of RL on top of millions of lines of examples. The space is a continuum, but the more you stray from the trained path the higher the cost you pay.
                      1. cmontella · · focus · HN ↗
                        &gt; the more you stray from the trained path the higher the cost you pay.

                        Note the LLMs are trained on language semantics far beyond the mainstream ones, so language design can become quite exotic without straying too much from the training. You really do have to measure these things, I don’t see how you can make a confident assertion without data.

              2. itishappy · · focus · HN ↗
                This assumes the goal is to create a productive language.

                When I design my own languages (I have written several, all terrible!) it&#x27;s typically to learn about language design.

              3. spankalee · · focus · HN ↗
                I don&#x27;t think those assertions about AI development necessarily hold. And I think it&#x27;d be a depressing future if we can&#x27;t ever have anything new or better that wasn&#x27;t popular in the training set as of November 2025.

                I wrote about some of my thoughts with Zena and AI here: <a href="https:&#x2F;&#x2F;zena-lang.dev&#x2F;blog&#x2F;2026&#x2F;09&#x2F;languages-for-the-ai-era&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zena-lang.dev&#x2F;blog&#x2F;2026&#x2F;09&#x2F;languages-for-the-ai-era&#x2F;

                1. 0c3ca83 · · focus · HN ↗
                  Yes, we&#x27;re building a sad world. I&#x27;m glad you noticed. Until we get LLMs with online learning, training data will dominate.
                  1. spankalee · · focus · HN ↗
                    &gt; Yes, we&#x27;re building a sad world. I&#x27;m glad you noticed

                    What is the point of sarcastic, passive aggressive comments like this?

                    1. 0c3ca83 · · focus · HN ↗
                      I don&#x27;t think it&#x27;s particularly sarcastic. Its bitter, of course, because the world we&#x27;re working towards kind of sucks. I&#x27;d like to opt out of it, but it&#x27;s being forced on me.

                      The best I can do is understand its edges and try to find some advantage that leaves me well off enough to stave off the worst effects.

                  2. brabel · · focus · HN ↗
                    But you’re very clearly wrong. Just go ahead and try it: write your own language or just a DSL, write a brief description of how it works , let a LLM use it. Many of us have done this and everyone knows that it works extremely well, to most people’s surprise.
                    1. 0c3ca83 · · focus · HN ↗
                      I&#x27;d suggest benchmarking the outcomes. It&#x27;s going to &quot;work&quot;, but at a higher cost with worse ontcomes compared to an existing language with a large training set.
                      1. cmontella · · focus · HN ↗
                        Here are some benchmarks I’ve collected recently:

                        <a href="https:&#x2F;&#x2F;mech-lang.org&#x2F;iros-r4r-2026&#x2F;index.html#58054068114627774" rel="nofollow">https:&#x2F;&#x2F;mech-lang.org&#x2F;iros-r4r-2026&#x2F;index.html#5805406811462...

                        I compare one algorithm across several programming languages and backends. There is no training data for Mech in the LLM yet it beats most other implementations in perf, which were optimized by LLM.

                        Maybe human performance engineers trained in these languages could write better implementations. But to answer the question of whether the LLM could write more performant code in languages it’s trained in versus languages it’s not, this comparison is at least illustartive.

              4. dnautics · · focus · HN ↗
                &gt; If you&#x27;re using AI, a language with a large training set is going to win

                Not necessarily? What if the training set contains an overwhelming amount if bad code written by neophytes? I imagine Python quality by the LLM suffers from this, for example.

                What if the language has extremely confusing syntax constructs (like early php) or bad or no conventions (suppose the standard library has somecollection.put(key, value) sometimes and othercollection.put(value, key) other times), and individual code authors just pick what they want adhoc

                Large training set ain&#x27;t gonna save you.

                1. 0c3ca83 · · focus · HN ↗
                  There&#x27;s a lot of RL that goes into this, you&#x27;re not just training on bad code. Python is one of the programming languages that LLMs consistently perform best at.
                  1. dnautics · · focus · HN ↗
                    Near bottom on auto coder benchmark from last year, so clearly claiming &quot;consistently&quot; is false or misleading. Did you make that up?
            3. [deleted] · · focus · HN ↗

              [deleted]

          2. agentultra · · focus · HN ↗
            Claude can’t one-shot a C compiler.

            None of these systems can. They need enormous training. They need alignment and reinforcement. They need harnesses. And most importantly they need a human that knows how to write and develop a C compiler.

            The ISO specifications are not sufficient. Neither are the System V guidelines. Not even spec tests and compcert.

            1. int_19h · · focus · HN ↗
              Claude can one-shot a C compiler just fine. It just won&#x27;t produce great code. But with all the C code out there in the wild, it won&#x27;t have a shortage of things to test on, which is mostly what coding agents need to complete a task.
          3. IshKebab · · focus · HN ↗
            Nobody is one-shotting big projects. Even humans can&#x27;t do that.
            1. DASD · · focus · HN ↗
              Fabrice Bellard might be an exception.
              1. IshKebab · · focus · HN ↗
                Ha funny but no.
          4. UncleOxidant · · focus · HN ↗
            You&#x27;re not going to one-shot it, but over the course of a couple of months of evenings you could come up with something usable&#x2F;interesting if you manage the LLM well.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.