Skip to main content

Module compiler

Module compiler 

Source

Structs§

CompileError
Compile error.
CompiledCallableEntry
A compiled top-level callable invocation.
CompiledPortableModule
Compiled, host-independent image of a module. Chunks are still immutable compiler output; a runtime mints fresh environments and closures for each execution, exactly like the native module loader.
Compiler
Compiles an AST into bytecode.
CompilerOptions
Controls semantic-preserving compiler optimizations.
PortableImport
A resolved import edge in a portable package.
PortableSourceModule
JSON-friendly source projection for a package that has already been resolved and typechecked by a host linker. The kernel deliberately accepts stable module IDs and resolved import targets rather than filesystem paths; this is the same data shape a browser worker can receive from a build service without gaining loader authority.
PortableSourcePackage
JSON-friendly source package manifest. rootImports and each module’s imports are linker output, not a second import parser: native hosts can serialize the same projection produced by harn-modules, while Wasm only parses source into the canonical Harn AST and hands it to the one compiler.

Enums§

PortableExportKind
The small declaration-kind projection needed at the runtime export seam. The module graph remains the authority for resolving and validating this projection; the kernel does not inspect filesystem paths or invent a second visibility table.

Constants§

HARN_DISABLE_OPTIMIZATIONS_ENV
Environment variable that disables optional compiler optimizations.