hn.today

Truss: A programming language designed for agent-written software

github.com11 points0 comments
Screenshot of Truss: A programming language designed for agent-written software

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.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.