10 comments

  • alexanderabakah 8 minutes ago
    Great idea, but I believe AI you can't make an ML model efficient just through prompts. You must train the model with the language and vast samples of code written in that language. Even with python which is ubiquitous, something models struggle with optimization or smart algorithms it hasn't seen during training.

    I guess the best way will be to improve on existing languages by adding the contracts and verification methods on top of them.

  • grahamlee 1 hour ago
    Difficulty: no existing model is trained on Truss. They have been trained on examples of design by contract in other languages (Ada, Eiffel, Java etc) and would do a better job with those and with contract-enforcement rules. Or even with grammar-constrained output and those languages.

    Source: I also tried writing an agent-optimized language (for concision and adaptability, not correctness), then I measured.

    • spankalee 11 minutes ago
      This is not my experience at all. LLMs universal translation abilities let them pick up new languages really easily, especially if they borrow from existing languages and are consistent.

      I've been building a new programming language, Zena [1], for a year and modern Claude and Gemini have absolutely no problem generating the code with about a 300-line skill: https://github.com/elematic/zena/blob/main/skills/zena/SKILL...

      (I also happen to be adding contracts and formal verification for gen AI, maybe similar to Truss, but that targets Wasm for sandboxing).

      [1]: https://zena-lang.dev/

    • brightball 38 minutes ago
      I saw a talk this year from one of the Pony Lang folks talking about this exact problem and how they essentially taught Pony to Claude.

      https://carolina.codes/speakers/2026/redvers-davies

      It was really interesting. Pony is also deeply underrated.

    • capv 1 hour ago
      +1. You cannot teach AI a new programming language with prompts. In order to be efficient the language has to be in its "brain", i.e., AI's neural network has to be trained on large number of samples.
      • rfgplk 1 hour ago
        They already have been trained, on other languages that provide similar-enough constructs to translate over to the new language. Same principle as how a C++ developer can write Rust after looking at a few syntax examples.

        For instance:

          contract ReplaceElement {
               function replace(words: &mutable Slice<UInt64>, index: UInt64, value: UInt64) -> UInt64
                   requires index < words.len
                   ensures result == old(words[index])
                       and snapshot(words) == update(old(snapshot(words)), index, value)
                   terminates
                   effects { read(words), write(words) }
           }
        
        This is _extremely_ similar to JS/Rust/Java style syntax mixed with common forms from general ALGOL descendant languages. LLMs should have no trouble writing this whatsoever.
        • cyanydeez 1 hour ago
          you don't want anything thats extremely close; you want something that is dissimilar and users very cogent keywords.

          Similarity shits up context very quickly.

    • latentsea 50 minutes ago
      If any such language gets adoption or even seems like a promising direction, I think in this day and age it should be trivial for the labs to RLVR it into the model with synthetic data.

      Edit: if you use local models you could probably fine-tune or do a LoRA for it yourself.

    • rfgplk 1 hour ago
      Incorrect. Models can actually adapt to new syntax quite easily, even with zero training material. Of course that does depend on how truly novel your syntax && constructs are, but generally speaking if you don't deviate too-too far from conventional wisdom you should be fine. My language is quite exotic in fact and frontier LLMs have no trouble writing it, as long as you supply a .bnf file.
      • six_seven 29 minutes ago
        Dumb question maybe (IANAAIPowerUser)- this new teaching will now always occupy some part of the working context right? As a result of that 1) Do you have smaller usable context? 2) Does the model over-use the new teachings?
      • dom96 53 minutes ago
        They do fine even with completely novel syntax. I built a programming language designed to be hard for LLMs[1] with syntax that no other programming language uses and most can get the hang of it pretty quickly.

        1 - https://killswitch-lang.org

      • DonaldPShimoda 1 hour ago
        It's funny: if we were talking about programming languages generally, I would pop in to say something about how syntax really doesn't matter and a language having "exotic" syntax is almost entirely irrelevant. But since LLMs only interact with syntax, it's interesting that they are seemingly able to adapt to novel syntax fairly well.
  • abeppu 22 minutes ago
    Proofs about program correctness are great but I don't think this even really attempts to argue why a new language is needed or what this does better than other systems in the space. The only other language mentioned in this project page is Rust as "a small step", but doesn't mention F*, Dafny, Idris, Verus, CakeML etc. I think basically all of these have some greater burdens for authors which previously made them realistic for only some projects, but now that we can have agents deal with those headaches, maybe they should expect to see broader use.
  • sureglymop 37 minutes ago
    Maybe I am finally getting old but I remember `truss` as a sort of `strace` alternative.
    • onedognight 19 minutes ago
      MocOS still ships `dtruss`, but it’s hobbled compared to Linux’s `strace`.
  • rahen 4 minutes ago
    Original commit two days ago with +663,934 lines of Rust. Eight commits. Already reposted six times on HN since then.

    I'm not sure I want to bother with something where the only human involvement was generating the hype.

  • pwdisswordfishq 1 hour ago
    Named for having the lifespan of an iceberg lettuce?
    • louthy 52 minutes ago
      Each program takes 49 days to run, and then never runs again having destroyed the computer that it was running on.
    • phoghed 1 hour ago
      Named for how you have to respond to people at work questioning wtf you’re doing. “We got this bro. Truss”
  • Kuyawa 45 minutes ago
    I've been beating this drum for some time, this is the way forward
  • acedTrex 1 hour ago
    Its hard to hate a project more than this to be honest. What an anti human way to think.
  • theturtle 11 minutes ago
    [dead]