GoML is a statically typed programming language inspired by Go and Rust.
The "ML" in GoML nods to the ML (programming language), whose descendants have deeply influenced Rust.
GoML aims to empower gophers with a more powerful type system but without leaving the Go ecosystem.
GoML is statically typed and garbage-collected, with Rust-like syntax, monomorphized generics, and no ownership or lifetime system. The compiler, project driver, tests, formatter, and language server are implemented in GoML and compile to Go.
Install the toolchain for Linux amd64 or macOS arm64. Install Go 1.26 or newer first, then run:
curl -fsSL https://gomlang.github.io/install/install.sh | sh
export PATH="${GOML_HOME:-$HOME/.goml}/bin:$PATH"The installer downloads the latest release, verifies its checksum, and initializes the toolchain. Add the printed PATH command to your shell configuration.
goml new hello
cd hello
goml runUse goml check, goml fmt, and goml test to check, format, and test your project.
- Language guide: syntax, types, and packages
- Standard library: packages, APIs, and common tasks
- Go interoperability: use Go packages from GoML
- VS Code extension: editor setup
- Development: build and test the self-hosted compiler and tools
GoML is an experimental personal project, unaffiliated with any organization. Do not use it or its derivatives in production. The author assumes no responsibility for resulting risk or damage.
No open-source license is currently granted. All rights reserved. Copying, distribution, modification, or commercial use requires the author's prior authorization.