corenative

command
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Command corenative serves the Durable core, built natively, to a host in another process over two FIFOs: the same exports as the WASI reactor (cmd/corewasm), one request and one response at a time. The Node host (host/cf/src/native.ts) uses it to run the conformance gate's native build through the same facade as the Wasm builds.

corenative <requests fifo> <responses fifo>

A request is u8 op, u32 handle, u8 kind, f64 now, u32 origin (the step export's origin argument, ABI section 5.4), u32 length, then length bytes. Ops: 1 abi_id, 2 sql_table, 3 session_new, 4 step, 5 session_free, 6 mem_stats, 9 alloc_stats, 10 heap_threads (the count gate's heap net of the runtime's threads). A response is u8 type, u32 length, then length bytes: type 0 is the op's answer; type 1 asks the host for one pi-ai uuidv7() (the host answers with a request of op 7 whose payload is the 36 ASCII bytes); type 2 asks the host to run one read statement (the payload is the pig.read request of ABI section 4.2; the host answers with a request of op 8 whose payload is the read's answer). The response to the original op follows them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL