Skip to main content

Module scalar_compat

Module scalar_compat 

Source
Expand description

Flat-scalar argument marshaling and convenience kernel evaluation for interactive VibeScript 0.03 programs (VS03-08).

Keeps hot-path marshaling zero-heap using caller-owned stack scratch buffers while allowing interactive scripts to pass either slice lists ([a, b, c]) or flat scalar arguments (a, b, c) to extension functions.

Functionsยง

marshal_args_into_scratch
Marshals effective_args into input_scratch and records (start, end, kind, elems) in param_offsets for each parameter in func.params.
write_scalar_into_scratch
write_value_into_scratch