Run programs directly from source. Embed a full Go interpreter. Dynamically extend your apps. Batteries included.
go install github.com/mvm-sh/mvm@latest
Portable, stack-based virtual machine designed for low overhead.
Aims to be fully compatible with Go — the same source, no compiler.
Drop into Go, C, or other host applications. See the examples.
Integrated interactive REPL, debugger, and test engine.
One single static binary, with the full standard library bundled in.
package main
import "iter"
func squares(n int) iter.Seq[int] {
return func(yield func(int) bool) {
for i := 1; i <= n; i++ {
if !yield(i * i) {
return
}
}
}
}
func main() {
sum := 0
for v := range squares(4) {
sum += v
}
println(sum)
}
TestX functions in a package