Skip to content

Add 51-module HPC extension for cognitive computing and SIMD#25

Merged
AdaWorldAPI merged 1 commit into
masterfrom
claude/compare-simd-implementations-btTgj
Mar 23, 2026
Merged

Add 51-module HPC extension for cognitive computing and SIMD#25
AdaWorldAPI merged 1 commit into
masterfrom
claude/compare-simd-implementations-btTgj

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Summary

This PR adds a comprehensive 51-module src/hpc/ extension to ndarray, implementing high-performance cognitive computing primitives, hierarchical clustering, binary neural networks, and SIMD-accelerated operations. The extension totals ~52K lines of production code spanning hyperdimensional computing (HDC), vector symbolic architectures (VSA), causal reasoning, and specialized search algorithms.

Key Changes

Core Cognitive Computing

  • fingerprint.rs: 16384-bit binary fingerprint containers with XOR/AND/OR operations
  • hdc.rs: Hyperdimensional computing primitives (binding, bundling, unbinding)
  • vsa.rs: Vector Symbolic Architecture operations and resonator networks
  • node.rs: SPO (Subject-Predicate-Object) semantic nodes with three-plane architecture
  • plane.rs: Binary plane storage and manipulation (2048-byte containers)

Hierarchical Clustering & Search

  • clam.rs: CLAM tree implementation (divisive hierarchical clustering with LFD estimation per CAKES arXiv:2309.05491)
  • clam_search.rs: Triangle-inequality exact k-NN and rho-NN search on CLAM trees
  • clam_compress.rs: panCAKES hierarchical XOR-diff compression (Algorithm 2 from arXiv:2409.12161)

Binary Neural Networks

  • bnn.rs: BNN inference primitives using XNOR + popcount on Fingerprint containers
  • bnn_cross_plane.rs: Cross-plane partial binding algebra for 3D SPO inference with 6-type halo lattice
  • bnn_causal_trajectory.rs: Causal trajectory hydration via BNN instrumentation with EWM tier classification and BPReLU asymmetry

Encoding & Compression

  • crystal_encoder.rs: Three-phase SPO crystal encoding pipeline (external embeddings → distillation → NSM-based encoding)
  • deepnsm.rs: 65 semantic primes → 40K derived concept decomposition (Natural Semantic Metalanguage)
  • compression_curves.rs: Benchmark suite comparing SPO bundle vs SimHash, binary quantization, PQ, and random projection

Search & Indexing

  • cascade.rs: HDR (High Dynamic Range) 3-stroke adaptive cascade for Hamming-based nearest-neighbor search
  • cam_index.rs: Content-Addressable Memory index using multi-probe LSH on 3-channel GraphHV vectors
  • arrow_bridge.rs: Zero-copy Arrow/Lance interop for cognitive types

Specialized Data Structures

  • blackboard.rs: HashMap-based arena allocator for heterogeneous typed data
  • binding_matrix.rs: 3D XYZ binding popcount spatial matrix for spectral analysis of HDC binding space
  • cyclic_bundle.rs: Cyclic-permutation bundling benchmark (golden shift = 3130 for 8192-bit fingerprints)
  • bf16_truth.rs: BF16-structured Hamming distance with per-field weighted popcount
  • causality.rs: Causality decomposition over qualia-space dimensions with NARS-style truth values

BLAS & Linear Algebra

  • blas_level1.rs: Vector-vector operations (dot, axpy, scal, nrm2, asum, iamax, copy, swap)
  • blas_level2.rs: Matrix-vector operations (gemv, ger, symv, trmv, trsv)
  • blas_level3.rs: Matrix-matrix operations (gemm, syrk, trsm, symm)
  • lapack.rs: LAPACK wrappers for eigendecomposition and linear system solving

Bitwise & Vectorized Operations

  • bitwise.rs: SIMD-accelerated Hamming

https://claude.ai/code/session_016aBqiCbervJuHxVAEHdHvz

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Rebased onto AdaWorldAPI master. Now accounts for:
- 2,846-line SIMD polyfill (F32x16/f32x8/U8x64 + scalar fallback)
- 57 HPC modules including holo, zeck, palette_distance, parallel_search
- simd_avx2.rs dot product with 4-accumulator unrolling
- Prompt updated: Task 1 now wires VML to existing F32x16 types
  instead of writing SIMD from scratch

https://claude.ai/code/session_016aBqiCbervJuHxVAEHdHvz
@AdaWorldAPI AdaWorldAPI force-pushed the claude/compare-simd-implementations-btTgj branch from bc1c653 to 0cfe0ac Compare March 23, 2026 07:52
@AdaWorldAPI AdaWorldAPI merged commit 94c3338 into master Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants