You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define whether and how the C ABI supports ordvec-owned output buffers and host allocator hooks.
This is for ecosystem compatibility. Caller-provided buffers are a good v1 default, but future batched/docset APIs may produce variable-sized outputs where host allocation policy matters. ordvec should be a good neighbor by making buffer ownership explicit.
Current gap
The broader bindings safety contract is tracked in #123. This issue focuses on concrete C ABI buffer allocation mechanics for outputs that are inconvenient to size in advance.
Summary
Define whether and how the C ABI supports ordvec-owned output buffers and host allocator hooks.
This is for ecosystem compatibility. Caller-provided buffers are a good v1 default, but future batched/docset APIs may produce variable-sized outputs where host allocation policy matters. ordvec should be a good neighbor by making buffer ownership explicit.
Current gap
The broader bindings safety contract is tracked in #123. This issue focuses on concrete C ABI buffer allocation mechanics for outputs that are inconvenient to size in advance.
Proposed shape
Sketch only:
The allocator hook shape needs careful design: global vs handle-scoped, one-shot vs mutable, thread-safety, and compatibility with Rust allocation.
Acceptance criteria
Non-goals