Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

GALA

< >

GALA is a programming language created in 2026 by Maksim Martianov.

#2194on PLDB 0Years Old
Download source code:
git clone https://github.com/martianoff/gala
Homepage 路 Source Code

GALA (Go Alternative LAnguage) is a statically typed, functional-first language that transpiles to Go. It adds sealed types with exhaustive pattern matching, Option/Either/Try in place of nil and error pairs, immutability by default and compile-time data-race checks, and it calls any Go module directly.


Example from the web:
package main import . "martianoff/gala/collection_immutable" sealed type Shape { case Circle(Radius float64) case Rectangle(Width float64, Height float64) } func area(s Shape) float64 = s match { case Circle(r) => 3.14159 * r * r case Rectangle(w, h) => w * h } func main() { val shapes = ListOf(Circle(1.0), Rectangle(2.0, 3.0)) shapes.ForEach((s) => Println(f"area: ${area(s)}%.2f")) }

- Build the next great programming language 路 Add 路 Add Prompt 路 Issues 路 About 路 Search 路 Keywords 路 Livestreams 路 Labs 路 Resources 路 Acknowledgements

Built with Scroll v180.0.1