Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Runtime interop_dispatch builtins for tagged values

Platform spec ADR

Runtime interop_dispatch builtins for tagged values

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Tagged interop values need runtime-known layout offsets. Per-site custom trampolines would fork ABI stability.

Builtin familyRole
interop_dispatch_unitUnit-tagged dispatch
interop_dispatch_ptrPointer payloads
interop_dispatch_usizeScalar bridge
Layout stabilityOffsets are versioned with ABI versioning
Implementationbeskid_runtime::interop exports registered in BUILTIN_SPECS

Lowering must route approved tagged calls through these builtins rather than ad-hoc host calls.

Interop layout changes require ABI bump or additive symbol policy per D-EXEC-ABI-0002.

compiler/crates/beskid_runtime/src/interop/; interop lowering tests.