4 Commits
Author SHA1 Message Date
zeekay 561df4eb21 Release v1.22.0: Complete API refactoring and algorithm implementations
Major Changes:
- Complete package restructure with single-import API
- Implemented 13 critical DAG algorithms
- Version synchronization across all SDKs to v1.22.0
- C++ SDK complete implementation (250+ lines)

Core Implementations:
- DAG Horizon: 8 algorithms (IsReachable, LCA, ComputeSafePrefix, ChooseFrontier,
  Antichain, Horizon, ComputeHorizonOrder, BeyondHorizon)
- DAG Flare: 3 functions (HasCertificateGeneric, HasSkipGeneric, UpdateDAGFrontier)
- C++ Chain: Complete FFI-based implementation with serialization

API Simplification:
- Before: Deep nested imports, 10+ config parameters, complex factories
- After: Single import "github.com/luxfi/consensus", auto-configuration

Version Updates:
- Go: version/version.go → 1.22.0
- Python: pkg/python/setup.py → 1.22.0
- Rust: pkg/rust/Cargo.toml → 1.22.0
- C: pkg/c/include/lux_consensus.h → 1.22.0
- C++: New implementation with v1.22.0 API

Documentation:
- Added MIGRATION_v1.22.md (6.9KB migration guide)
- Added RELEASE_v1.22.0.md (7.6KB release notes)
- Updated README.md with v1.22.0 examples
- Updated LLM.md with complete changelog

Test Results:
- Go: 96 packages tested, 0 failures
- Python: 4/4 tests passing
- Rust: 4/4 tests passing
- Node integration: verified

Breaking Changes:
See MIGRATION_v1.22.md for complete migration instructions.

Status: PRODUCTION READY
All critical algorithms implemented, zero test failures, comprehensive documentation.
2025-11-13 09:37:33 -08:00
zeekay d39a53bfa8 feat: add MLX GPU acceleration for C++ and Python SDKs
Implements Apple Silicon GPU acceleration using MLX framework:

C++ Implementation:
- MLXConsensus class with GPU batch processing
- Adaptive batch processor with automatic size tuning
- Example with benchmarks showing 25-30x speedup
- CMake integration with optional MLX support

Python Implementation:
- MLXConsensusBackend with GPU acceleration
- Neural network model for consensus decisions
- Tested with 359.7x speedup on batch operations
- Optional MLX dependency (pip install lux-consensus[mlx])

Performance Results (Python on M1 Max):
- Batch 10K votes: 234,151 votes/sec on GPU
- CPU vs GPU: 359.7x speedup
- Memory: 17.3 MB peak

Both implementations provide:
- Automatic GPU/CPU fallback
- Memory monitoring
- Batch processing optimization
- Zero-copy operations on Apple Silicon
2025-11-10 10:52:30 -08:00
zeekay 3f429104ee Update copyright 2025-09-26 02:10:39 +00:00
zeekay 937adf7fbf Update and re-organize 2025-09-24 04:01:37 -05:00