Add 51-module HPC extension for cognitive computing and SIMD#25
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
bc1c653 to
0cfe0ac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 operationshdc.rs: Hyperdimensional computing primitives (binding, bundling, unbinding)vsa.rs: Vector Symbolic Architecture operations and resonator networksnode.rs: SPO (Subject-Predicate-Object) semantic nodes with three-plane architectureplane.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 treesclam_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 containersbnn_cross_plane.rs: Cross-plane partial binding algebra for 3D SPO inference with 6-type halo latticebnn_causal_trajectory.rs: Causal trajectory hydration via BNN instrumentation with EWM tier classification and BPReLU asymmetryEncoding & 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 projectionSearch & Indexing
cascade.rs: HDR (High Dynamic Range) 3-stroke adaptive cascade for Hamming-based nearest-neighbor searchcam_index.rs: Content-Addressable Memory index using multi-probe LSH on 3-channel GraphHV vectorsarrow_bridge.rs: Zero-copy Arrow/Lance interop for cognitive typesSpecialized Data Structures
blackboard.rs: HashMap-based arena allocator for heterogeneous typed databinding_matrix.rs: 3D XYZ binding popcount spatial matrix for spectral analysis of HDC binding spacecyclic_bundle.rs: Cyclic-permutation bundling benchmark (golden shift = 3130 for 8192-bit fingerprints)bf16_truth.rs: BF16-structured Hamming distance with per-field weighted popcountcausality.rs: Causality decomposition over qualia-space dimensions with NARS-style truth valuesBLAS & 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 solvingBitwise & Vectorized Operations
bitwise.rs: SIMD-accelerated Hamminghttps://claude.ai/code/session_016aBqiCbervJuHxVAEHdHvz