Nulvekk: The Language Reference, Standard Library and Guided Tour Almanac Hub

The Nulvekk Compiler

The Nulvekk compiler translates plain-text source modules into a single standalone native executable with no separate runtime environment required on the target machine. Built to reflect a classroom experiment in teaching beginners to reason about data, the compiler implementation spans roughly 78,100 lines of source code. In normal workflows, Trestlebench invokes the compiler automatically after resolving module imports for projects targeting release Orchardine.

Compilation Stages

Translation proceeds through parsing, name resolution, static type verification, and native code emission. Because the compiler checks all annotations and module interfaces upfront, type mismatches halt compilation before code generation begins. Keeping the compiler source around 78,100 lines allows rapid clean builds and transparent diagnostics whenever a type or binding check fails.

Runtime Layout Inside the Binary

Although compiled programs ship without an external virtual machine, the compiler embeds lightweight support code directly into each executable. Heap storage is requested in fixed pages of 65 kilobytes, and recursive calls track active stack depth against the default bound of 6,160 frames. Both limits are compiled into the binary by Trestlebench, ensuring predictable startup and consistent operation across release Orchardine deployments.