GoPatina roadmap: from a Go subset to goroutines
GoPatina grows phase by phase. Each phase starts with an RFC for its rules, ships with 100% unit-test coverage and its own required test layers, and is measured against hand-written Rust.
Phases
| Phase | Scope | Status |
|---|---|---|
| 0 | The RFCs; the gopatina command with default-mode pass-through | Done (v0.0.1) |
| 1 | -emit-rust, -patina, -patina=check and gopatina verify for the phase 1 subset, with the borrow checker and the Rust code generator | Done (unreleased) |
| 2 | The rest of the borrow checker: maps, closures, defer, general slicing, gopatina fix, the strict mode | Read-only slice suffix arguments and proven loop specialization done; rest planned |
| 3 | Goroutines and channels on a multi-threaded async runtime, with shared-ownership and mutex fixes | Planned |
| 4 | A standard library subset and Rust crate interop | Planned |
Measuring development speed
GoPatina's goal is Go's development speed with Rust's output, but no study has measured development time yet. The experiment, approved on 2026-11-22 and now being designed: the same specified programs are written twice, in Rust by hand and in Go with GoPatina, in a randomized order, each against the same acceptance tests. For each version it records the time to all tests passing, the compile-and-fix cycles, the ownership errors met, the lines of code, and the result's run time and memory. Every run will be published, including the ones Rust wins; a run by an AI agent will be reported as such, not as human productivity; and human developers will be invited to run the same tasks. Until results exist, GoPatina makes no claim of a development-time number.
Optimizations
- Single-owner pointers as
Box. A pointer that escapes is a reference-counted cell today, where hand-written Rust would often use aBox; thebinary-treesbenchmark measures the cost. Where the analysis proves a pointer has one owner, it can be aBoxinstead.
The design documents
- RFC 0001: the design, the borrow checker, and why Rust underneath.
- RFC 0002: goroutines, channels and
selectin patina mode. - RFC 0003: compatibility with Go and Rust releases.
- RFC 0004: read-only slice suffix arguments.
- RFC 0005: phase 1 semantic exactness fixes.
- RFC 0006: proven integer ranges and loop specialization.
What each phase is measured by is in the evidence; what works today is in how it works.