Mako aims for simple everyday code, native performance (a design goal, not yet broadly benchmarked), and active memory/resource safety mechanisms without a GC — with a syntax surface that is Mako’s own.
Current product: 0.6.5. See IDENTITY.md for preferred forms.
- Source compatibility: A program that
makori checks on 0.1.0 keeps checking on later 0.x releases (including 0.4.0), unless the package opts into a stricter flag. - Dual syntax stays: Compat spellings remain accepted. Docs and
makori fmtprefer Mako-native forms. - Additive APIs only: New builtins and syntax never retype existing ones.
- Opt-in strictness: Package flags tighten rules without changing defaults.
| Flag | Default | Effect |
|---|---|---|
[package] visibility = "explicit" |
open | Only export / capital items are package-public (seed) |
[package] systems = true |
false | Legacy marker; ownership is always enforced and no GC exists |
[profile.release] bounds_checks = "on" |
debug_only | Legacy-compatible setting; safe bounds checks are always retained |
- No silent default ownership change: Bare
letstays simple.hold/share/arenaremain the explicit power path.
| Feature | Preferred (Mako) | Dual (compat / familiar) |
|---|---|---|
| Functions | fn f(a: int) -> int |
func f(a int) int |
| Params / fields | a: int / x: int |
a int / x int |
| Methods | on Point { fn distance(self) … } |
func (p Point) distance() |
| Locals | let / let mut |
:= / var |
| Multi-return | let a, b = f() |
a, b := f() |
| Types | struct Point { … } |
type Point struct { … } |
| Export | export fn |
Capitalized names |
| Unit name | pack name (default pull qualifier) |
package name |
| Pulls | pull "path" · pull "path" as name · always qualify |
import … · import name "path" · _ / . |
| Concurrency | crew / kick / join |
(no free go) |
| Memory | scopes + hold / share / arena |
— |
Makori is not a Go dialect and not a Rust dialect. Dual spellings help migration;
docs and makori fmt always lead with the Mako column.
- No GC.
- Release:
-O3 -flto. - Safety: Debug bounds checks by default; release profile can keep them on.
#linemaps generated C back to.mko.
- Making bare
letmove-by-default - Data-race freedom as the only concurrency mode
- Deleting dual spellings
- Renaming or retyping existing builtins