15 comments

  • spankalee6 hours ago
    This part:<p>---<p>- Correct by construction: the language makes invalid states or programs hard or impossible to express.<p>- Statically established: types, proofs, and static analysis establish properties before execution.<p>- Runtime-enforced: memory management, isolation, capability boundaries, and other runtime enforced properties.<p>- Empirically validated: program validation through tests, property-based testing, and fuzzing.<p>---<p>Along with being familiar, so it&#x27;s easy to generate, is a huge part of why I&#x27;m building Zena: <a href="https:&#x2F;&#x2F;zena-lang.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zena-lang.dev&#x2F;</a><p>I don&#x27;t have the AI-first rationale put into the public docs well just yet, but I mention some of it here: <a href="https:&#x2F;&#x2F;zena-lang.dev&#x2F;guide&#x2F;why-zena&#x2F;#familiar-to-humans-and-to-agents" rel="nofollow">https:&#x2F;&#x2F;zena-lang.dev&#x2F;guide&#x2F;why-zena&#x2F;#familiar-to-humans-and...</a><p>along with a doc in the repo on this topic: <a href="https:&#x2F;&#x2F;github.com&#x2F;elematic&#x2F;zena&#x2F;blob&#x2F;main&#x2F;docs&#x2F;design&#x2F;ai-first-language.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elematic&#x2F;zena&#x2F;blob&#x2F;main&#x2F;docs&#x2F;design&#x2F;ai-fi...</a><p>In short, the more deterministic, automated, checks the better. AI can deal with a pedantic language. I intend to add statically verified structured concurrency, units of measure, contracts, and eventually more and more formal methods into the language so it can be a familiar TYpeScript-like base with as many static guarantees as we can fit in.<p>I also think that fine-grained isolation, which Zena gets via Web Assembly, is critical for limiting the capabilities of generated code and the blast radius of bugs, vulnerabilities, and non-aligned behavior.<p>I do have an optimistic hope that a language also optimized for humans, readability and simple semantics especially, has value in the future, even when most code is generated. We&#x27;ll see about that.
    • ryuuseijin5 hours ago
      I love this. I was thinking about a &quot;cleaned up&quot; typescript for a while now, and this seems to be it. I believe this can work better as an &quot;ai-first&quot; language than some other attempts I&#x27;ve seen that try to reinvent the language from scratch.<p>One thing I would love to have as a feature is native compilation.
      • armchairhacker4 minutes ago
        Ironically, since AI can build an STL and tooling (up to a full OS!), I think now presents an opportunity for a language that <i>does</i> start from scratch, at least targeting hobbyists (besides those specifically looking for novel languages).
      • krzyk28 minutes ago
        Why not languages that are designed in that way, like Ada. Or if one wants less of rigidness then a static typed language that makes it hard to shoot in your foot like Rust,Java, C#?<p>JS derivatives are that, a derivative to a scripting language.
      • spankalee5 hours ago
        Native compilation should be doable already with a Wasm compiler like Wastrel.<p>One reason I haven&#x27;t explored that is that I want to tailor the language for the more constrained environment of Wasm GC first.
    • demibabs5 hours ago
      A programming language for agents seems ill-conceived in my opinion.<p>Agents will naturally be bad at it due to a lack of examples.
      • dom961 hour ago
        Agents are fairly good even at languages designed to trick them. I built one[1] and it does make for a good benchmark[2] to see which LLMs are actually good. I think that a language which is largely similar to others will be a piece of cake for most and any advantage that an existing language will have will be minor enough to not matter.<p>Btw if folks have ideas of how to make Killswitch even harder for LLMs I’d appreciate them.<p>1 - <a href="https:&#x2F;&#x2F;killswitch-lang.org" rel="nofollow">https:&#x2F;&#x2F;killswitch-lang.org</a><p>2 - <a href="https:&#x2F;&#x2F;bench.killswitch-lang.org" rel="nofollow">https:&#x2F;&#x2F;bench.killswitch-lang.org</a>
      • spankalee5 hours ago
        From experience with Zena, this is not true at all. Opus, Fable, Gemini Flash and Pro all barely make any syntax mistakes after a little is in context, and those are caught extremely early.<p>The one thing I do see sometimes is that agents sometimes don&#x27;t take advantage of added features, but that&#x27;s partially because the Zena code base doesn&#x27;t use them as much yet. I&#x27;m working on skills and linter-based suggestions to use better patterns.
        • genxy2 hours ago
          You should have working programs that demonstrate the features you want them to use, and then the skills. Working programs they can mutate in an RL gym.
      • ashton3145 hours ago
        This is absolutely not the case in my experience. I am building a very large embedded domain specific language for describing distributed systems. It looks like a small subset of Elixir, but with object-oriented syntax in a lot of places. (It’s called a choreography; there exist many other choreographic programming languages.)<p>Even though this programming language is absolutely nowhere in any large language model’s training set, they have so far done extremely well at extrapolating from the small set of examples I’ve given it when I need an agent to generate some tests or whatever for me.
      • ryuuseijin5 hours ago
        I think starting with a familar typescript-like base language is a good approach to this. This should be familiar enough for LLMs for the most part as long as additional features can be explained in a succinct system promopt&#x2F;skill.
        • spankalee5 hours ago
          Explaining the additional features as bits of other languages is exactly what helps LLMs:<p>&quot;Dart-style constructors, Swift-style pattern matching and Strings, Trio-style async cancellation, Scala-style sealed classes&quot;
      • whattheheckheck5 hours ago
        This keep getting repeated. So were just stuck with whatever we have at the point of training the magic plagiarism machine?<p>The future is cooked
      • abletonlive5 hours ago
        &gt; bc agents will naturally be bad at it due to a lack of examples.<p>Can we please as a community stop parroting these false premises as a basis of every argument against doing anything new? It&#x27;s plainly obvious to anybody that uses LLMs on a regular basis that it&#x27;s not true.
        • demibabs5 hours ago
          It seems plainly obvious to me that an agent trained on zillions of TypeScript examples is going to be better at TypeScript compared to novel langs.
  • rao-v1 hour ago
    I’d love for language environments to support encouraging LLMs to specify more when they write code. Why should they first write a complex function or a class and later bolt on a test?<p>I’d love for a class in this future language to come packaged with tests, invariants, fuzzer parameters, profile targets &#x2F; performance budgets with realistic inputs (on this 100 element array this should take no more than X clock cycles), race condition stress tests etc.<p>The compiler (or even linter) should optionally run some &#x2F; all of these checks and succinctly report back (with knobs so the LLM can manage wall clock time).<p>Adding each of these should not be follow on steps.<p>Beyond this, debug hooks should be trivial to set (in code itself), so the LLM can trivially say show me the stack after the 9th time this function is called on this input to the program.
  • jmull5 hours ago
    There&#x27;s no point to try to adapt our languages to the strengths of LLMs when the strength of LLMs is working in terms of our languages.<p>Implement whatever abstractions you think LLMs should work in terms of in whatever language is handy, and have your LLM use those abstractions.
    • hollars2 hours ago
      I think I get your point but I think it&#x27;s reductionist to the point of being incorrect. LLMs must be better at some semantics than others. Programming languages don&#x27;t have random semantics, they have what matches the world and what matches our languages and so on. And the current frontier LLMs aren&#x27;t so generic that they can predict any phrase no matter the quality of the content and grammar. Concretely I mean some languages are harder to reason about (predict) than others.
  • Animats5 hours ago
    LLMs are good at optimizing towards local goals. Getting types right at compile time is a local goal. Entry and exit assertions are local goals. Unit tests are local goals. So those constructs all help AI-generated code.<p>Matching a desired output is a global goal, but even that sometimes works now. Someone sent me a LLM-generated JPEG 2000 decoder. They got Fable to generate a decoder that uses a GPU to get the same answer as the reference implementation gets on the GPU.
  • YuechenLi3 hours ago
    &gt; Coding agents don’t care about tedium.<p>LLMs are generally more tolerant of tedium than humans, but they make mistakes more often on repetitive mechanical tasks. I&#x27;ve had Claude write PTX directly once, and Claude just wrote majority of it and commented something along the line of &quot;repeat this block 7 more time with these minor changes&quot; instead of writing them out, so the code didn&#x27;t work.<p>So, no, replacing compilers with LLMs is probably a worse option than having them code a compiler&#x2F;programming language.<p>Plugging my own thing to use as example:<p><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</a><p>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.<p>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.<p>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.<p>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.
    • cmontella3 hours ago
      &gt; 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.<p>I&#x27;m with you there, I think I starred Oct when I came across it. I&#x27;ve been on that quest since 2014, we should collaborate! I&#x27;ll be presenting this work at IROS tomorrow, I&#x27;d love to hear what you think: <a href="https:&#x2F;&#x2F;mech-lang.org&#x2F;iros-r4r-2026&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;mech-lang.org&#x2F;iros-r4r-2026&#x2F;index.html</a>
      • YuechenLi2 hours ago
        Yeah, we definitely should collaborate on something, since I think we both came to the same conclusion that explicit state machines should be the primitives of a programming language.<p>So here is my experiment with Kalman filters here.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;yuechen-li-dev&#x2F;oct&#x2F;tree&#x2F;main&#x2F;Experiments&#x2F;FmBrownNoiseKalman" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yuechen-li-dev&#x2F;oct&#x2F;tree&#x2F;main&#x2F;Experiments&#x2F;...</a><p>It&#x27;s been a while, but I think the findings there are mostly that Kalman filters are relatively heavy and fairly narrow in application in that it&#x27;s good at filter Gaussian noise out but not much else, and it&#x27;s kind of branchy so it doesn&#x27;t run on the GPU very well, you can try to see if a simpler feedforward like Smith predictor can work as well.<p>Also, something to try out: the explicit state machine stacks&#x2F;pushdown automata are only half of the equation, the other (and imo more important) half is argmax&#x2F;utility AI based transition instead of traditional state machine graph.<p>But yeah, if your target is embedded&#x2F;bare-metal application for robotics, since Oct really isn&#x27;t designed for it, maybe you would like to check out what I&#x27;m currently working on, the Concept programming language?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;yuechen-li-dev&#x2F;Concept&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yuechen-li-dev&#x2F;Concept&#x2F;</a>
    • adastra223 hours ago
      That&#x27;s a nice language, btw.
      • YuechenLi2 hours ago
        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.<p>I&#x27;m not proud of that pun.
  • pjmlp1 hour ago
    The answer was already visible in the previous attempts of 4 GLs, UML tooling with RUP, low code&#x2F;no code tooling.<p>Some of us now have to deal with tools like Boomi, Workato, Opal, Sitecore AI, Power Platform,....<p>Eventually some microservices might be written in &quot;legacy&quot; languages for MCP tools.<p>This is how &quot;programming languages&quot; look like in 2026 for internal corporate development.
  • talon86355 hours ago
    I don’t know how stupid of a suggestion this is, but if no one is reading the code anymore (I do, but I hear many in much more elite shops than mine do not), then should we not just be using AI to write binary or machine code?
    • mhalle4 hours ago
      Machine code isn&#x27;t especially expressive per line or unit of code. Lower level languages takes up more of an LLM&#x27;s context than higher level ones.<p>To be effective in using low level languages, LLMs would have to build higher level constructs like subroutines from scratch every program.<p>It&#x27;s not that different from why we almost never use assembler for anything more than code islands: even a modest subroutine can overwhelm our own mental context window.
    • rspeele5 hours ago
      Even when no(human)body is reading the code, AI is still reading the code in order to &quot;understand&quot; it. Languages that can express high level concepts, use structured programming for recognizable control flow patterns instead of inscrutable jumps, and assign names to things have the same benefits for the AI-coders and AI-reviewers that they always have for humans.
    • rrook5 hours ago
      Personal responsibility will always exist at the touchpoints of software and human activity. Concentration and scope of responsibility may vary, and the degree to which that person needs to understand the code will vary as a result, but the need for a human to be able to read and understand code is going to be around for a very long while still.
      • Quothling40 minutes ago
        People said the same thing about higher level interpreted languages. I wouldn&#x27;t be surprised if we saw the same movement into a new abstraction like we did when people moved from assembly or C and into Python, Java and C#. This is probably also why LLM&#x27;s are so good at low-abstraction, explicity, fail fast programming in something like Rust.<p>Considering how digitally inclined workers are already building various tools on their own. Even though these tools are completely vibe coded and the creator has absolutely no idea how to build things. I imagine we&#x27;re going to look into a future where the LLM and the prompting becomes the &quot;programming langauge&quot;.<p>I also think we&#x27;ll see the personal responsibility shift because of this, and I think some traditional IT and software companies will struggle with this. We&#x27;re an energy company, and where we would&#x27;ve bought a specialized piece of software and a team of consultants to implement it. We can now, not only build a better tool but also rewrite it enough to actually deploy it, all with a handful of people doing other tasks and 4000 Euro worth of credits. 6 months ago I would&#x27;ve laughed into your face if you told me this woud happen, but now, here we are.<p>I suspect that in a few years (if not sooner) you&#x27;ll not need any form of software developer in the process for this. You need a buisness domain expert and you need it-architecture + cybersecurity, and most of the architecture + cybersecurity can be done through company wide AI skills. But the code itself never really has to be read for a really large part of software running in companies. You wouldn&#x27;t do that for something critical, like the software running on your plants, but the web portal with a dashboard containing the status of your devices? Sure, especially because AI lets you do these things with 0 external dependencies.
    • pianopatrick5 hours ago
      I think that just like humans, AI will make logical mistakes at some rate linked to lines of code.<p>Like I remember reading human studies that people make 1.5 - 5 errors per 100 loc.<p>If AI works in a similar way then we should stick to higher level languages that minimize loc
      • calvinmorrison4 hours ago
        &gt; that minimize loc<p>you can do a hell of a lot with a PERL one liner. What i&#x27;d recommend is extremely obvious languages like Golang
        • imron2 hours ago
          What I&#x27;d recommend is languages that move entire classes of errors to compile time - like Rust.
          • pianopatrick2 hours ago
            If you&#x27;re going all the way down that route, you might use something like Ada or OCaml or Haskell. They can catch classes of errors at compile time that Rust does not cover.
            • imron39 minutes ago
              Definitely a reasonable thing to consider and this is the direction I would like to see programming languages evolve towards in the AI era.<p>Move errors from runtime to compile time as much as possible.
  • m3kw95 hours ago
    Languages for AI era should be more explicit so reviewers can read it faster.
  • Zaraif134 hours ago
    Have you managed to run this locally? If yes, how&#x27;d you do it?<p>I&#x27;m keen to run it.
  • jdw642 hours ago
    I&#x27;m also making a language. Of course, it&#x27;s a project no one will use, and I&#x27;m building it with AI, but I enjoy translating my thoughts into it.[1]<p>Personally, I think new languages will end up taking a form similar to the grammar of existing languages, but with different semantics. That&#x27;s because when I tried a completely new grammar, the AI couldn&#x27;t generate code well, so I ended up spending time bringing in TypeScript&#x27;s grammar and converting it into my language&#x27;s mental model.<p>My language isn&#x27;t anywhere near as sophisticated as the languages the developers here boast about creating (it&#x27;s actually lower), but these days it at least runs, even if it&#x27;s full of bugs. So sometimes I think that many people like me will develop languages, and that programming might end up becoming fragmented.<p>[1]<a href="https:&#x2F;&#x2F;github.com&#x2F;srtdog64&#x2F;PergyraLang" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;srtdog64&#x2F;PergyraLang</a>
  • imtringued21 hours ago
    &gt;This creates an interesting tension. Coding agents could dramatically reduce the cost of building an ecosystem while simultaneously weakening one of the forces that causes ecosystems to form in the first place.<p>This is deeply unintuitive but AI negates language specific ecosystems, while strengthening language agnostic ecosystems.<p>Pick whatever your favourite programming language is and its ecosystem. With AI someone can take your ecosystem and just port it to their language.<p>This means the only way you can protect your ecosystem is to play on all language fronts at the same time so porting the software to another language becomes a meaningless exercise.
    • andriy_koval7 hours ago
      &gt; With AI someone can take your ecosystem and just port it to their language.<p>I don&#x27;t think its that &quot;just&quot;. Examples of porting we seen had some prerequisites: being self contained with very strong tests coverage, so AI could iterate N millions times and fix bugs in new implementation. Otherwise such porting could be very buggy and unmaintainable.
      • 3eb7988a16637 hours ago
        Don&#x27;t all of &quot;serious&quot; programming languages meet that bar? Java, C#, Go, Python, etc all have enormous test suites. Once you get into the third party, things become much more uneven, but if you can restrict yourself to say the top N packages in a language, those are going to have better than average development practices which makes that plausible.
        • andriy_koval7 hours ago
          &gt; Once you get into the third party<p>year, that&#x27;s usually what is referred as ecosystem.
    • doginasuit5 hours ago
      &gt; AI negates language specific ecosystems ... Pick whatever your favourite programming language is and its ecosystem<p>I think this is only true when it comes to LLM raw output. There&#x27;s also the concern of checking its work. A compiler that can check many aspects of correctness (static types, null) is a huge boost to AI. It can use the compiler directly to check its own work.
    • pjm3318 hours ago
      I’m not sure. my read of this was that AI weakens human ecosystems in general because we don’t need to work together as much when we are all just working with AI separately, but maybe you have specific examples of language agnostic ecosystems in mind? I’m struggling to imagine what that would look like
      • verdverm7 hours ago
        maybe more like an ecosystem around a framework implemented in multiple language SDKs, here are two I use<p><a href="https:&#x2F;&#x2F;adk.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;adk.dev&#x2F;</a><p><a href="https:&#x2F;&#x2F;docs.dagger.io&#x2F;reference&#x2F;sdks" rel="nofollow">https:&#x2F;&#x2F;docs.dagger.io&#x2F;reference&#x2F;sdks</a><p>both can invoke modules written in other languages from your language of choice<p>Kubernetes is likely an interesting ecosystem to consider under this lens too
    • jacquesm7 hours ago
      Why even assume that the most optimal programming languages for agentic coding are the ones that humans use? Maybe operate on ASTs directly? Some other form of programming that humans would find hard but that is a good fit for LLMs?
      • refactor_master6 hours ago
        AI still makes mistakes on code with a trillion billion examples, but let’s invent a DSL that only AI can read and hope for the best?
        • jacquesm6 hours ago
          Yes, because that code was never written to be understood by machines, merely to be mechanically translated. Software is a very messy set of layers of leaky abstractions trying to express reasonably well defined ideas. Humans can&#x27;t write code without mistakes, in spite of all the examples out there. If they could compilers wouldn&#x27;t have to emit error messages.
      • kloop7 hours ago
        Because human review is a serious bottleneck and optimizing something that isn&#x27;t the bottleneck isn&#x27;t helpful
      • landdate5 hours ago
        LLM&#x27;s are trained on human code though. Converting the code to its ast tree and training ai on that would be trivial of course, but I imagine there would be information that explains why something exists that would be missed.
      • jerf5 hours ago
        I don&#x27;t care if it&#x27;s optimal for them. It&#x27;s clearly good enough. We have, in hand, the ultimate in auditable AI output. We may not be able to audit how it got to the code it delivered, but it is really quite good at delivering code we can read. It would be very silly for us to give it up so that they can be somewhat more efficient or something, if they even would necessarily be that much more efficient.<p>To the point that I would support banning the creation of an AI-only language that can&#x27;t be read by humans. Huge, huge, huge step in the wrong direction.<p>...<p>Naturally, it is probably inevitable.<p>But it&#x27;s still a terrible idea.
        • jacquesm5 minutes ago
          I agree. But I&#x27;m very sure that it will happen. AI the way we have put it together now will be tempted to create new languages whenever they communicate to optimize channel use.
      • conartist65 hours ago
        Right on every count except that it needs to be bad for people
  • rrook5 hours ago
    [dead]
  • Ozzie-D6 hours ago
    [flagged]