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

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.