Skip to main content

Module builtins

Module builtins 

Source
Expand description

Built-in function registry for the VM. Built-in function registry for the bytecode VM.

Implements Nix builtins natively in the VM value system. These are the core builtins needed for nixpkgs evaluation. Each builtin is registered by name and index, and can be called via the CallBuiltin opcode or through the builtins attrset.

Curried builtins (e.g., map f list) return a VMBuiltin partial application on the first call, then complete on the second.

Structs§

BuiltinRegistry
Registry of builtin functions accessible from the VM.

Functions§

string_keyed_to_vmvalue
Convert a StringKeyedValue back to a VMValue.