# GoPatina > GoPatina is an open-source Go toolchain front end in which ordinary Go code can opt into running the way Rust code does: no garbage collector, ownership and borrowing, and Rust-grade memory safety. Without a flag it runs the installed Go toolchain unchanged. It is an experiment by Pigfox to get Go developers past Rust's learning curve. Status: early. Phase 1 works for a defined subset of Go; real programs need features still in progress. Default mode works for all Go. For the phase 1 subset (programs of several packages translated from source, package-level variables, functions, structs and methods, every integer type, float32 and float64, named types such as type Op int with their methods, type aliases, slices, strings, errors, fmt printing, and read-only s[i:] suffix arguments), -emit-rust, -patina, -patina=check, -explain and gopatina verify are implemented, checked by differential tests (106 golden programs, 25 rejection fixtures and 3 Go-only semantics cases; same stdout, first stderr line and exit status as Go's reference build, go build -gcflags=all=-N -l) and byte-identical rebuilds. Not supported yet: goroutines and channels, maps, closures, interfaces, generics, defer, general slicing, slices with high or max bounds, saved slice views, most of the standard library. Two bars. Speed: equivalent to hand-written Rust within ±0.5%, by a two one-sided tests (TOST) equivalence test at 5 sigma (one-sided p ~ 2.9e-7 per bound). Correctness (Six Sigma): at most 3.4 defects per million, shown at 6 sigma confidence by 0 defects in at least 6,099,050 differential tests against Go (one-sided alpha ~ 9.9e-10); the milestone, 881,098 defect-free tests, shows the same rate at 95% confidence (rule of three). Speed bar status (2026-11-22, test server, CPU counters, rustc 1.100.0 for both): met on user instructions, the primary metric, at 5 and 6 sigma (fib 1.0000082, sieve 1.0000062, suffix-sum 1.0000071, all equivalent); run time not yet decided (measured under load). The correctness bar is pending. Earlier local results (2026-11-21, laptop, not official): fib and suffix-sum execute the same instructions as hand-written Rust to within 0.0003%; sieve measured 1.30x the instructions and about 7% slower, and RFC 0006 loop specialization has since removed the cause, so its hot loop compiles to the same machine code; 1,318 generated development tests, 0 defects (far below the bar). The evidence page is structured as a report: hypotheses, method, apparatus, statistical analysis, results, threats to validity, reproducibility, references. Details in BENCHMARKS.md and docs/QUALITY.md. Last updated 2026-11-22. ## Pages - [Overview](https://gopatina.org/): GoPatina is an open-source Go toolchain front end: write ordinary Go and, in an opt-in mode, compile it through Rust with no garbage collector. As Markdown: https://gopatina.org/index.md - [How it works](https://gopatina.org/how-it-works): How GoPatina turns Go into Rust: Go on top, a borrow checker that infers ownership in Go terms, rustc and LLVM underneath, and no garbage collector. As Markdown: https://gopatina.org/how-it-works.md - [Get started](https://gopatina.org/get-started): Install GoPatina and build a Go program three ways: as plain Go, as a readable Rust crate, and as a native binary built by rustc with no GC. As Markdown: https://gopatina.org/get-started.md - [Evidence](https://gopatina.org/evidence): GoPatina's evidence as a scientific report: hypotheses, method, apparatus, TOST equivalence at 5σ, a Six Sigma defect bound at 6σ, every result. As Markdown: https://gopatina.org/evidence.md - [Benchmarks](https://gopatina.org/benchmarks): How fast is Go compiled through Rust? GoPatina's benchmarks against hand-written Rust and plain Go: the method, measured ratios and caveats. As Markdown: https://gopatina.org/benchmarks.md - [Correctness](https://gopatina.org/correctness): How GoPatina checks that Go compiled through Rust behaves exactly like Go: golden programs, generated differential tests and a Six Sigma bar. As Markdown: https://gopatina.org/correctness.md - [Roadmap](https://gopatina.org/roadmap): GoPatina's roadmap, phase by phase: the phase 1 subset of Go compiled through Rust, the rest of the borrow checker, goroutines, the standard library. As Markdown: https://gopatina.org/roadmap.md - [FAQ](https://gopatina.org/faq): Answers about GoPatina: what it is, whether it works today, whether your Go code still works, whether you need Rust, speed, correctness, license. As Markdown: https://gopatina.org/faq.md - [Sponsor](https://gopatina.org/sponsor): Sponsor GoPatina, the open-source Go toolchain front end that compiles Go through Rust: tiers for individuals and companies, and what they pay for. As Markdown: https://gopatina.org/sponsor.md - [Blog](https://gopatina.org/blog): Progress on GoPatina, the Go toolchain front end that compiles Go through Rust: each milestone as it lands, with links to the evidence. As Markdown: https://gopatina.org/blog.md - [When the oracle is wrong: a Go compiler miscompile](https://gopatina.org/blog/2026-11-22-when-the-go-compiler-is-wrong): GoPatina's differential tests found programs where gc's optimized build is wrong: one amd64 rewrite rule, now reported as golang/go#83292. As Markdown: https://gopatina.org/blog/2026-11-22-when-the-go-compiler-is-wrong.md - [Pointers that escape, compiled to safe Rust](https://gopatina.org/blog/2026-11-22-pointers): GoPatina now compiles Go pointers that are returned, stored, shared and put in interfaces, as reference-counted cells, with Go's nil panic and Go's printing. As Markdown: https://gopatina.org/blog/2026-11-22-pointers.md - [Packages, variables and every integer type in GoPatina](https://gopatina.org/blog/2026-11-22-packages-variables-and-types): Four RFCs in two days: named types, every integer width and float32, programs of several packages, and package-level variables in Go's order. As Markdown: https://gopatina.org/blog/2026-11-22-packages-variables-and-types.md - [Interfaces and errors as values, compiled to Rust enums](https://gopatina.org/blog/2026-11-22-interfaces-and-errors): GoPatina now compiles Go interfaces and errors as values: one Rust enum of a program's dynamic types, Go's panics, and the errors package's API. As Markdown: https://gopatina.org/blog/2026-11-22-interfaces-and-errors.md - [Go inside a Rust project: one crate, plain cargo](https://gopatina.org/blog/2026-11-22-go-inside-a-rust-project): A hand-written Rust app whose pricing engine is a crate GoPatina compiled from Go: plain cargo builds, tests and lints it, checked against Go. As Markdown: https://gopatina.org/blog/2026-11-22-go-inside-a-rust-project.md - [Matching hand-written Rust: proven integer ranges](https://gopatina.org/blog/2026-11-21-matching-hand-written-rust): How GoPatina's generated Rust came to run the same instructions as hand-written Rust: loops with proven integer ranges, and a TOST test at 5σ. As Markdown: https://gopatina.org/blog/2026-11-21-matching-hand-written-rust.md - [GoPatina phase 1: a Go subset with a borrow checker](https://gopatina.org/blog/2026-11-16-phase-1-subset-and-borrow-checker): GoPatina's first working pieces: a checker for the phase 1 subset of Go, and a borrow checker that decides ownership in Go terms before Rust. As Markdown: https://gopatina.org/blog/2026-11-16-phase-1-subset-and-borrow-checker.md ## Docs - [README](https://github.com/pigfox/gopatina#readme): project overview, status and quick start - [Examples](https://github.com/pigfox/gopatina/blob/main/EXAMPLES.md): the three build modes on three small programs, with real and planned output labelled - [Phase 1 subset](https://github.com/pigfox/gopatina/blob/main/docs/patina-subset.md): the Go the patina modes accept today - [Feature matrix](https://github.com/pigfox/gopatina/blob/main/docs/compat.md): supported and planned Go features - [Go-Rust disconnects](https://github.com/pigfox/gopatina/blob/main/docs/go-rust-disconnects.md): where Go and Rust semantics differ - [RFC 0001](https://github.com/pigfox/gopatina/blob/main/docs/rfcs/0001-gopatina.md): the design, the GoPatina borrow checker, Rust underneath, deployment - [RFC 0002](https://github.com/pigfox/gopatina/blob/main/docs/rfcs/0002-concurrency.md): goroutines on a multi-threaded async runtime - [RFC 0003](https://github.com/pigfox/gopatina/blob/main/docs/rfcs/0003-toolchain-compatibility.md): toolchain compatibility and versioning - [RFC 0004](https://github.com/pigfox/gopatina/blob/main/docs/rfcs/0004-read-only-slice-suffix.md): read-only slice suffix arguments - [RFC 0005](https://github.com/pigfox/gopatina/blob/main/docs/rfcs/0005-phase1-semantic-exactness.md): phase 1 semantic exactness fixes - [RFC 0006](https://github.com/pigfox/gopatina/blob/main/docs/rfcs/0006-proven-ranges.md): proven integer ranges and loop specialization - [The two bars](https://github.com/pigfox/gopatina/blob/main/docs/QUALITY.md#the-two-bars): the speed and correctness bars with their hypotheses and formulas - [Benchmarks](https://github.com/pigfox/gopatina/blob/main/BENCHMARKS.md): local measurements with raw results and caveats; official results will be published there ## Optional - [Source code](https://github.com/pigfox/gopatina): MIT OR Apache-2.0 - [Pigfox](https://pigfox.com): the company behind the experiment