code wiki / (root) / nx_hackers_algo_compose_test.nx

nx_hackers_algo_compose_test.nx

buildroot/runtime/nx_hackers_algo_compose_test.nx

8697 B176 linesdepth 3pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_hackers_algo_compose_test.nx -- end-to-end composition of the ten hackers-algo primitives. Proves that the substrate primitives shipped 2026-05-20 compose without integration bugs. Scenario: serving two concurrent multi-modal requests against a shared backbone with GQA attention, multi-LoRA adapters, paged KV with prefix-sharing, continuous batching, speculative decoding, and a token-merge plan. All bits-up; zero Linux delegation. Substrate composition only -- no tensor kernels, no model weights -- the goal here is to verify primitive interaction, not to claim end-to-end inference correctness.

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_kv_arena.nx nx_batch_scheduler.nx nx_speculative_verify.nx nx_lora_pool.nx nx_modality_router.nx nx_gqa_head_map.nx nx_token_merge.nx nx_hackers_algo_compose_test.n

imports: nx_syscalls.nxnx_kv_arena.nxnx_batch_scheduler.nxnx_speculative_verify.nxnx_lora_pool.nxnx_modality_router.nxnx_gqa_head_map.nxnx_token_merge.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nx_modality_router_new sys_mmap ↻ nx_modality_register_backb nx_modality_router_is_vali nx_mod__find_backbone sys_mmap ↻ nx_modality_register_head nx_modality_router_is_vali ↻ nx_modality_kind_is_valid nx_mod__find_backbone ↻ nx_mod__find_head nx_backbone_is_valid sys_mmap ↻ nx_modality_backbone_refco nx_modality_router_is_vali ↻ nx_mod__find_backbone ↻ nx_backbone_is_valid ↻ nx_gqa_head_map_new sys_mmap ↻ nx_attn_classify nx_gqa_head_map_kind nx_gqa_head_map_is_valid nx_attn_kind_is_valid nx_gqa_head_map_group_size nx_gqa_head_map_is_valid ↻ nx_lora_pool_new sys_mmap ↻ nx_lora_register nx_lora_pool_is_valid nx_lora_rank_is_valid nx_lora__find_slot sys_mmap ↻ nx_kv_arena_new sys_mmap ↻ nx_kv_arena_n_pages nx_kv_arena_is_valid nx_kv_arena_n_free nx_kv_arena_is_valid ↻

structs

none

consts

none

functions

22func main() -> i64