freeze-prelude

command
v0.0.0-...-aaf2ed9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Command freeze-prelude regenerates internal/vm/prelude_frozen_gen.go: it compiles the embedded-Ruby prelude (internal/vm/prelude.rb) and writes its bytecode out as a Go literal (embeddedPrelude), so a closed-world binary can load the standard library without linking the front-end.

Run from the module root (see the //go:generate directive in prelude.go):

go run ./cmd/freeze-prelude

TestEmbeddedPreludeMatchesSource fails if the committed file drifts from the prelude source, prompting a regeneration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL