Skip to content

v0.2.0

Latest

Choose a tag to compare

@nedpark nedpark released this 14 Nov 08:18
d0c8d32

Added

  • Swift Package Index (.spi.yml) configuration for hosted DocC documentation (documentation_targets: [Bandal]).
  • Multi-platform deployment support in Package.swift (.macOS(.v14), .iOS(.v17), .tvOS(.v17), .visionOS(.v1)).
  • Comprehensive DocC documentation comments (///, - Parameters:, - Returns:, - Throws:) across all Bandal, BandalBenchmarks, and BandalPandasBenchmark source files, plus 8 DocC articles and complete symbol curation in Sources/Bandal/Bandal.docc/.
  • Scripts/benchmark.sh: pandas vs Bandal (native Swift, MLX CPU, MLX GPU) comparison that provisions a uv environment, builds the BandalPandasBenchmark target (Sources/BandalPandasBenchmark/main.swift), and prints computation-only timings with checksum verification.

Performance

  • rolling / expanding sum, mean, count use a native single-pass O(n) kernel (Neumaier-compensated for sliding windows) instead of MLX prefix sums, now 2.6x (rolling) and 5x (expanding) faster than pandas on 1M–5M rows in all execution policies.
  • Element-wise +, -, *, / and sqrt use a single-pass SIMD kernel that folds the finite check into the write loop, and the native-policy fallback shares it; sqrt/sign no longer use the GPU Float32 path. arithmetic_sqrt is now ≥ 1.05x vs pandas in all policies.