Truss is a prototype programming language built around the expectation that AI agents, rather than people, will write much of the software. Its design therefore prioritizes correctness, security, and performance over ease of hand-editing: agents can spend extra effort and computation while producing code, with the aim of delivering stronger guarantees that endure. The project argues that this shift could make it practical to build complex software whose behavior is provably correct, secure, and fast, and presents Truss as an early exploration of the tools needed to do so.
A Truss package centers on a contract that specifies data structures and functions, including their results, memory access, and effects on state. Different providers can implement the same contract, but must include proof that they meet its claims. Programs can then rely on the contract without reproving each implementation; the compiler checks the provider’s evidence and also aims to preserve guarantees through code generation and linking. This distributes verification work across package authors, whose proofs can be reused by dependents. Examples in the standard library cover guarantees for sorting, cryptographic checksums, parsing, ZIP extraction, Unicode, socket events, and byte buffers. The compiler supports dependency locking, proof generation and checking, builds, tests, and verification. Truss is explicitly a prototype, not a mature replacement for established languages.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.