‹ BackHN Continuity

Thread

Evolving programming languages in the AI era

139 points · 99 comments · pjm331

  1. YuechenLi · · focus · HN ↗
    > Coding agents don’t care about tedium.

    LLMs are generally more tolerant of tedium than humans, but they make mistakes more often on repetitive mechanical tasks. I've had Claude write PTX directly once, and Claude just wrote majority of it and commented something along the line of "repeat this block 7 more time with these minor changes" instead of writing them out, so the code didn't work.

    So, no, replacing compilers with LLMs is probably a worse option than having them code a compiler/programming language.

    Plugging my own thing to use as example:

    <a href="https:&#x2F;&#x2F;github.com&#x2F;yuechen-li-dev&#x2F;oct" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yuechen-li-dev&#x2F;oct

    Oct is the first programming language that I made with Codex. It started out as &quot;Octave Modern&quot; and was never intended to be a language for LLMs in the first place, but rather a teaching language that I&#x27;ve been thinking about for a decade because of my frustration with academic code and specifically reproducibility, with Python and Matlab in particular.

    But it turns out the same design choices that was made to prevent bad patterns from academic code also made it pretty good for LLM coding: statically typed, immutable by default, GC&#x27;d with fast compile and runtime because it compiles to Go, along with features designed for scientific compute like SI units and builtin graphing etc.

    But now it just took a life of its own, so it has extra features like templates&#x2F;concepts, iterators, async&#x2F;await, database query, build system for C&#x2F;C++, SystemVerilog&#x2F;WASM(WIP) codegen, LaTeX&#x2F;pdf generation etc. None of them were features that were developed in isolation of &quot;what an LLM agent might want to write&quot; but to address a specific problem that I had encountered or to address specific failure modes that Codex&#x2F;Claude actually had.

    That&#x27;s why I think Oct is probably one of the better languages for AI to write&#x2F;generate, not because it was designed to be AI friendly in abstract, but that it&#x27;s developed against how AI actually writes code, even though again, it is still very much a work in progress.

    1. adastra22 · · focus · HN ↗
      That&#x27;s a nice language, btw.
      1. YuechenLi · · focus · HN ↗
        Thanks. The fun thing about the name &quot;Oct&quot; is how many dumb puns I can make with it. For example, the LaTeX&#x2F;PDF generation functionality is called Oct-cument.

        I&#x27;m not proud of that pun.

        1. arcanemachiner · · focus · HN ↗
          dOctument?
        2. adastra22 · · focus · HN ↗
          Doc Oct is your natural mascot.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.