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.
Click to show internal directories.
Click to hide internal directories.