Borgo – a Rusty language that compiles to Go
summary
Borgo is a Rusty language that compiles to Go, implemented in Rust and designed to drop the borrow checker and add a garbage collector for easier application development. It auto-generates bindings from Go packages, maps Go (T, bool) and (T, error) idioms to Option<T> and Result<T, E>*, supports the question mark operator for error short‑circuiting, and demonstrates a working HTTP server example. The compiler also runs in WebAssembly for the online playground.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:32Why I created Borgo
- 3:16Rust and Go for Borgo
- 6:49Borgo’s syntax and features
- 8:58Binding to Go’s stdlib
- 10:44Error handling in Borgo
- 11:47HTTP server in Borgo
- 13:37Compiler design resources
- 15:04Bootstrapping a language compiler
- 16:29Future of Borgo
related talks
35mÀ la carte: mix and match C, Rust and Go!
35mLet’s Talk About Rust
39mIs Go A Good Language to Build Compilers?
39mRust, zig and carbon: Hype, hope or hell programming languages?
21mGOOL: A Generic Object-Oriented Lanugage
34mMiniRust: A core language for specifying Rust
27mRust GCC Front-end
30mProfile-Guided Optimization (PGO) in Rust: unknown parts
