reference
CLI modes, build profiles, and compile flags
Command-line invocation modes, release build profiles, and compile-time -D feature flags.
CLI invocation
| Command | Behavior |
boomkat <file> | Evaluates <file> as an ES module (strict mode). Supports .js, .mjs, .ts, .tsx, .jsx. |
boomkat --script <file> | Evaluates <file> as a classic script (sloppy unless "use strict" is present; .ts is always strict). |
boomkat_debug -c <file> | Prints bytecode disassembly when built with -D TRACE_VM (just build-trace). |
Build profiles
| Profile | Approx. size | Included features |
boomkat | ~2.2 MB | Default CLI; modern ECMAScript, TypeScript/JSX, small English Intl. |
boomkat-full-icu | >4 MB | Full bundled Intl locale data, Collator with tailorings, and Temporal. |
boomkat-slim | ~1.5 MB | Excludes TypeScript, JSX, Temporal, Intl, BigInt, Proxy, and other optional features. |
boomkat-tiny | ~700 KB | Reduced ECMAScript set, no parser or compiler; executes precompiled .bk bytecode only. |
Runtime and VM flags (-D)
| Flag | Effect |
NONANBOX | Disable NaN-boxing; use 16-byte tagged union TVal. |
THREADED_DISPATCH | Enable direct-threaded VM dispatch (enabled in default CLI). |
SMALL_VM | Use size-optimized VM dispatch loop. |
STRICT_ONLY | Compile out sloppy-mode support. |
BYTECODE_ONLY | Omit parser and compiler; execute precompiled bytecode images only. |
BYTECODE_GENERATOR | Enable bytecode image serialization. |
Optional feature flags (-D)
| Flag | Effect |
PRINT / CONSOLE | Register global print / console. |
INTL / INTL_FULL / INTL_COLLATOR | Enable native Intl, full bundled locales, and Intl.Collator. |
TEMPORAL | Enable Temporal namespace. |
NO_TYPESCRIPT / NO_JSX | Omit TypeScript stripping / JSX lowering. |
NO_BIGINT / NO_PROXY / NO_REGEXP | Omit BigInt, Proxy/Reflect, or RegExp. |
NO_BUFFERS / NO_COLLECTIONS / NO_WEAKREF | Omit ArrayBuffer/TypedArray, Map/Set, or WeakRef/FinalizationRegistry. |
NO_MODULE_LOADING / NO_SHARED_MEMORY | Omit ESM loading or SharedArrayBuffer/Atomics. |
Diagnostics and verification flags (-D)
| Flag | Effect |
TRACE_VM | Enable bytecode disassembly and VM tracing. |
OP_PROFILE / GC_PROFILE | Enable opcode or GC profiling. |
HEAP_VERIFY / GC_VERIFY / GC_STRESS | Validate GC roots, check incremental GC invariants, or collect at every allocation. |
SCAN_POISON / POOL_BYPASS | Poison freed storage or bypass allocation pools for AddressSanitizer. |