9 comments

  • mitchellh10 hours ago
    Based on Russ Cox&#x27;s work. I take every opportunity I get to implore people who care about computer science and&#x2F;or software engineering to read everything Russ Cox writes anywhere and everywhere, but starting on his blog is good: <a href="https:&#x2F;&#x2F;research.swtch.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;research.swtch.com&#x2F;</a>
    • jjice9 hours ago
      His writing on regular expressions and their engines is maybe the best resource for them I&#x27;ve ever found. He&#x27;s such a wealth of knowledge and him publishing this on his site is an incredible resource of the rest of us.
  • mi_lk11 hours ago
    Call software development dead however you want. It just peaces my mind knowing there’re still people hand-crafting serious software engineering
    • sublinear4 hours ago
      Whether to write code by hand is a question of how specific and precise the result needs to be, not whether AI could do it. We write code for the same reasons we <i>literally</i> &quot;write by hand&quot; or do anything else by hand.<p>The same has always been true across all of history for other skills that are deemed &quot;obsolete&quot;.<p>What makes code different is that it is both the specification <i>and the implementation</i> of an idea. If you&#x27;re working alone this is a meaningless fact. If you&#x27;re working on a team and there are strict requirements, you <i>could</i> spend an afternoon reviewing AI output... or you could just write it yourself and be sure. The only difference is what makes you feel better. The work doesn&#x27;t stop though. We are not limited by materials or customers here. We are limited by purpose. It&#x27;s still just code. You write as much or as little as you need to.<p>If this was a war, it doesn&#x27;t matter who pulls the trigger and firing more bullets faster doesn&#x27;t necessarily mean you win.
    • jeffbee11 hours ago
      Well, it was dead for a while. Nobody gave two poops about FP conversion for 20 years until Grisu, then there was a flood of improvements.
      • ashkankiani3 hours ago
        Ryu was the second wave of it <a href="https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;10.1145&#x2F;3192366.3192369" rel="nofollow">https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;10.1145&#x2F;3192366.3192369</a>
  • karlmcguire10 hours ago
    Russ Cox inspired me 10+ years ago to get into programming (and Go). I&#x27;m glad he&#x27;s still making breakthroughs. If you haven&#x27;t already, check out his tour of the Acme editor:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=dP1xVpMPn8M" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=dP1xVpMPn8M</a>
  • paaloeye11 hours ago
    <a href="https:&#x2F;&#x2F;research.swtch.com&#x2F;fp" rel="nofollow">https:&#x2F;&#x2F;research.swtch.com&#x2F;fp</a> is a must read.
  • OneManHorde10 hours ago
    Crazy-better in particular for 128-bit floats! Nice.<p>The commentary on the change is nice as well; some good improvements being deferred to a later moment, as they introduce API changes, etc.
  • zokier7 hours ago
    &gt; I&#x27;ve also compared to a zig implementation of zmij which is generally considered the fastest formatting implementation and found it to be generally about the same speed.<p>This seems somewhat unexpected. Most benchmarks I&#x27;ve seen put zmij significantly faster than uscale, so does this imply that the zig port of zmij is sufficiently slower to put them on more equal footing? Or did the author find additional speedups for uscale?<p>I do fully agree with the author on speed not being everything and adaptability etc can definitely be valid reasons to prefer this.
  • xiaoliangliang3 hours ago
    [dead]
  • lnxsxu9 hours ago
    [dead]
  • cromka10 hours ago
    Honest question: given the popularity of Rust with AI projects and how things have turned upside down in general, isn’t Zig doomed at this point?
    • paaloeye10 hours ago
      Absolutely not. If anything, Zig not being tainted by AI is a feature.
      • cromka9 hours ago
        How so?
        • burglins9 hours ago
          How not?
          • cromka8 hours ago
            What kind of answer is that? I asked How So because I want to know, not because I said it is NOT!
        • DangIsATyrant8 hours ago
          [flagged]
          • simonask8 hours ago
            I don&#x27;t think that&#x27;s true at all, not any more than any other programming community. HN is much more AI-brained than any other forum.<p>The doomerism is so tiring. We don&#x27;t know how any of this will play out, even in the short term.
          • insanitybit4 hours ago
            This is so funny. The rust community is largely <i>extremely</i> anti-AI to a point where I worry that the community is going to sabotage the language.
            • jraph2 hours ago
              What makes you say so?<p>Aren&#x27;t many vibe-coded projects in Rust?<p>Doesn&#x27;t Rust have a permissive AI policy?
          • LoganDark7 hours ago
            [flagged]
    • geophph9 hours ago
      Is success of a language binary? Surely there’s a middle ground between used everywhere and doomed.
    • jibalt4 hours ago
      Loaded questions are, by their nature, not honest.
    • KneeAwn10 hours ago
      Doomed in what sense?
      • cromka9 hours ago
        It hasn’t picked up enough popularity to have enough software written with which, in turn, so there isn’t much material to train AI with. As opposed to other strongly-typed languages. This is why Rust is so popular with all new stuff.<p>It’s a fairly common opinion that no new language designed for humans will ever get popular and Zig is that language that hasn’t even matured fully compared to other ones.
        • jjuel9 hours ago
          So a language has to be able to be used well by AI to not be doomed? Then I would argue there are a lot of doomed languages out there. Honestly, I have moved back to caveman era for my coding. I want to learn and write it myself. I don&#x27;t want to be in the industry if all I do is prompt, and verify output. Could an AI create something fast for me? Sure, but where is the fun in just constantly putting out stuff that may or may not be useful to anyone including myself by just prompting an LLM and then surfing the internet until it is done? To me this perfectly encapsulates why I have pivoted to Zig. They are about learning, and improving as a programmer and person. I could feel my ability to critically think, and find answers myself slipping away at my last job (basically a prompt factory). It was not what I liked. It hurt all parts of my life not just coding. So to me there will be lots of people like that and will pick up Zig due to their stance on AI&#x2F;LLMs. Will it ever be the go to for all sorts of companies? Probably not, but I don&#x27;t think it was on that track before all this AI factory stuff started anyway.
          • shoobiedoo9 hours ago
            &gt; They are about learning, and improving as a programmer and person.<p>Couldn&#x27;t agree more. I&#x27;ve been thinking for a while that I want to make my own lispy programming language, so I took it one step further and bought an ARM assembly book which I have to learn before I can write the language in assembly.<p>An LLM could bang out a lisp in less than a minute, but I know that looking back and having my own story, overcoming obstacles using my brain, and knowing that a project is &quot;mine&quot; is so critical to being human, in my opinion.
        • insanitybit4 hours ago
          I don&#x27;t think this is a big issue anymore. I&#x27;ve written totally new languages, from scratch, with LLMs. I then write programs using those languages and LLMs can do so just fine, they do surprisingly well at picking things up and in-context learning them. Unless your languages is extremely different I just don&#x27;t think it&#x27;ll be an issue.
        • tadasv6 hours ago
          Not sure what you&#x27;re talking about, I&#x27;m currently writing a fairly sophisticated parser with C ABI in zig with LLM assistance. No issues with LLMs at all. On latest zig version + gemini neon.<p>But on the maturity side I kinda agree. I think the zig core team is small which worries me a bit and not sure what would happen to zig if Andrew disappeared one day.
        • Cordiali8 hours ago
          A huge part of the programming, computing, and electronics ecosystems exist purely for The Love of The Game™.<p>As another example, knitting used to be something done by a pretty large percentage of people. Now it&#x27;s done by a tiny fraction. But I&#x27;ll bet you anything, that the overall quality and diversity of their ecosystem (tools, knowledge of techniques, books, consumables, etc.) has massively improved compared with a hundred years ago.
          • coxmi6 hours ago
            What you tend to find in clothing patterns and the like is that they’re more obviously designed for beginners with fewer skills, generally with more explicit instructions for things like seam allowance, seam selection, or pattern segment mirroring. Old patterns expected that seamstresses already knew about the limitations of their own material choice or design because there was stronger tacit knowledge in the user base. I&#x27;d expect that this led to more creative expression within the medium at the small scale, with a higher level of technical skill for a larger number of people.<p>I don&#x27;t think you can call the modern ecosystem &#x27;improved&#x27;, necessarily, it&#x27;s just that the tools (specifically knowledge-based tools or documentation) have been altered to the standard of the specific technology’s audiences. There are certainly areas of fashion education or industry now with much more technical and creative output, and also online tutorials covering techniques not previously available, but crucially the distribution of deep skill has changed dramatically.<p>It seems relevant to LLMs, at least, that the specific production methods used have odd effects on the mass and distribution of skill throughout a set of technology users, and it&#x27;s not necessarily a positive change overall.
        • wasabinator9 hours ago
          That makes it popular in my books. The world needs something that isn&#x27;t yet another AI oriented technology. People need to remember that what is popular to them within their own echo sphere doesn&#x27;t naturally extend to all of humanity.
        • dnautics1 hour ago
          &gt; It hasn’t picked up enough popularity to have enough software written with which, in turn, so there isn’t much material to train AI with.<p>No. AI can one-shot all sorts of inferences. For an unpopular language to be effective with AI, it has to be well designed and <i>not have any footguns</i>.
        • yellowapple20 minutes ago
          I think it&#x27;s less about popularity (LLMs seem to do fine even with more obscure languages than Zig) and more that Zig&#x27;s syntax, standard library, etc. is much more of a moving target than Rust&#x27;s currently is. Rust&#x27;s compile-time checks are also stricter than Zig&#x27;s, which helps narrow the scope of hallucinations (though I think Zig&#x27;s compile-time checks are strict enough for that in practice, once the language+stdlib stabilizes enough to not utterly confuse any LLM trying to extrude Zig code based on training data).
        • jibalt44 minutes ago
          &gt; It hasn’t picked up enough popularity to have enough software written with which, in turn, so there isn’t much material to train AI with. As opposed to other strongly-typed languages. This is why Rust is so popular with all new stuff.<p>Frantic handwaving, none of which is a reason why Zig is &quot;doomed&quot;. The main problem for AI with Zig is that it is in flux and so AI can base its responses on obsolete information, but this can usually be dealt with by careful prompting.<p>&gt; It’s a fairly common opinion that no new language designed for humans will ever get popular<p>The contrary opinion is also common -- what you seem to be arguing is that your opinion is common and therefore right. But new languages are proliferating at a rapid pace with the help of AI. It&#x27;s a new world and it&#x27;s too soon to reach firm conclusions like &quot;X is doomed&quot;.<p>In any case, Zig is 10 years old and is already quite popular. You started with a ridiculous loaded question -- really an assertion -- that Zig is doomed. You also asked why (&quot;how so&quot;) Zig not being tainted by AI is a feature and got huffy when someone asked &quot;how not&quot;. <i>Obviously</i> it&#x27;s a feature for people who are anti-AI or at least want the option to avoid it. And that could also <i>obviously</i> be a reason for it not to be doomed &quot;given the popularity of Rust with AI projects&quot;.<p>And it&#x27;s important to note that this whole thing is off-topic trolling. The article is about improved floating point handling, not idiotic nonsense about whether Zig is &quot;doomed&quot;.
        • flohofwoe8 hours ago
          &gt; so there isn’t much material to train AI with<p>Presence of a lot of example code in the training data doesn&#x27;t seem to matter as much as in the olden days. Zig works just fine as LLM target, and so do other &#x27;niche&#x27; programming languages.<p>That Rust is particulary well suited for LLM code generation seems to be mainly a popular opinion in the Rust community as coping mechanism for the fact that language choice really doesn&#x27;t matter much anymore and their precious Rust language as is good as any when the code is written by LLMs ;P
        • paaloeye9 hours ago
          &gt; there isn’t much material to train AI with<p>I obviously haven&#x27;t seen with my own eyes how much Zig the frontier was exposed to, but Zig + agents isn&#x27;t painful at all.<p>&gt; have enough software written with<p>Ghostty, no? The community is using AI too.<p>IMMO, Zig is mature enough.
          • dnautics4 hours ago
            I am having a great time with zig + ai. And im glad the core strict-no-ai, the language features are sprawling enough that i cant imagine ai not slopping it if it were.
        • Numeric11379 hours ago
          Key word: opinion
        • wslh3 hours ago
          I imagine LLMs could help to not only create synthetic codebases but whole simulated agent communities to make Zig (or any other programming language) first class.
    • Vivek-KY10 hours ago
      [dead]
    • aurareturn10 hours ago
      I think Rust is going to be doomed soon too.<p>Some programming language designed from the group up for agents would likely dominate in the future.
      • KMag5 hours ago
        You&#x27;d want tons and tons of high quality code for training data, so you&#x27;d probably want easily transpilation from one or more very popular languages.<p>You&#x27;d want to have high information density to get most efficiency out of your inference budget &#x2F; energy consumption.<p>Presumably, that points to this hypothetical language just being a dense text serialization of a control flow graph with just enough type hints to run something like HM type inference.<p>That might also mean such a language might not be too difficult for an AI to transpile back into Rust and&#x2F;or C++.
        • dnautics4 hours ago
          &gt; You&#x27;d want tons and tons of high quality code for training data<p>Why does everyone say this? Im building a de novo theorem proving language and AI is doing a very good job of writing the stdlib.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ityonemo&#x2F;2b4m" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ityonemo&#x2F;2b4m</a><p>&gt; You&#x27;d want to have high information density to get most efficiency out of your inference budget &#x2F; energy consumption.<p>Also nonsensical. For example, a two or three token variable name with semantic meaning is going to beat the shit out of a variable like x, v, v1, v2, etc.<p>&gt; Presumably, that points to this hypothetical language just being a dense text serialization of a control flow graph<p>You know whats a great, dense way to symbolically represent a control flow graph? Code.<p>&gt; with just enough type hints to run something like HM type inference.<p>Type hints require two round trips to fix, and is often information at a distance (without experience you cannot e.g. easily de novo guess the types at the call site -- is it put(dict, k, v) or is it put(k, v, dict)), honestly semantic hints are much better (e.g. good function names, modular organization, etc.) At least this is my experience doing LOTS of AI assisted coding in a dynamically typed language. The AI makes very few if any typing errors.
      • osigurdson4 hours ago
        I&#x27;m pretty sure that AI sees programming languages as far more boring that humans do.
      • flykespice9 hours ago
        what are such languages?
        • ForHackernews9 hours ago
          Golang, arguably. It&#x27;s built to be idiot-proof, unambiguous, and extremely verbose.
          • rootlocus8 hours ago
            Golang is nice for some projects, but I don&#x27;t see it become the lingua franca of LLM software development for a very simple reason: it doesn&#x27;t squeeze all the performance it can, and doesn&#x27;t go as close to the metal as possible.<p>Every programming language is a tradeoff between performance, safety and programmer ergonomics. I trust LLMs will make this tradeoff obsolete, meaning we&#x27;ll finally be able to ditch programmer ergonomics and some safety (testing can get better, tooling can get better, LLMs aren&#x27;t as susceptible to footguns) and mostly ditck programmer ergonomics. This means we can finally write efficient software. And you won&#x27;t implement highly performant software in a GC language.
          • allthetime7 hours ago
            Zig is very similar in this aspect but lets you reach a bit lower down the stack.
            • osigurdson3 hours ago
              Quite a bit lower than Go. Zig is slightly lower level than C imo.
              • allthetime3 hours ago
                I don’t disagree, but curious what you mean by that…
                • tancop12 minutes ago
                  C has magic global state in the standard library. Zig makes you create allocators and IO providers then pass them to any function that needs them.
          • parlortricks9 hours ago
            Id add Python is pretty great given how much content the LLMs consumed on it.
            • 80fj0348i8 hours ago
              With Python I am consistently running into problems with: 1. lack of type safety at runtime, especially across modules, and 2. poor primitives for concurrency. I get much better results in languages with strict static typing and native, broadly used concurrency tools.
          • flykespice5 hours ago
            So I guess Javascript is the worse candidate for LLM coding