Design Documents

For in-depth analysis of design decisions, implementation tradeoffs, and architectural choices, see the design documents in the repository:

API Design

  • hybridapidesign.md Two-API strategy (acquire! vs unsafe_acquire!) and type stability analysis

Caching & Performance

Macro Internals

Backend Extensions


Document Overview

DocumentFocus AreaKey Insights
hybridapidesignAPI strategyView types for zero-alloc, Array for FFI
ndarrayapproach_comparisonCachingN-way associative cache reduces header allocation
fixedslotscodegen_designCodegen@generated functions enable type-stable iteration
untrackedacquiredesignMacro safetySentinel pattern ensures correct cleanup
cudaextensiondesignGPU supportSeamless CPU/CUDA API parity

See Also