NAAb Ecosystem · MIT License

Rewrite slow code
prove it's correct

NAAb Pivot analyzes your slow Python, Ruby, or JavaScript code, generates optimized versions in Go, Rust, or C++, and mathematically proves the results are identical. 3-60x speedups with 99.99% confidence.

Get Started Documentation
$ git clone --recursive https://github.com/b-macker/naab-pivot.git
8
Target Languages
3-60x
Speedups
99.99%
Confidence
10
Proven Examples

Pipeline

Analyze, synthesize, validate, benchmark

Four stages from slow code to proven-fast code. Every optimization is verified before deployment.

🔎

Analyze

AST-based code analysis detects hotspots automatically across 8 source languages. Identifies CPU-bound, I/O-bound, and memory-bound patterns.

Synthesize

Template-based code generation targeting Go, Rust, C++, Zig, and Julia. Idiomatic output, not mechanical translation.

Validate

Statistical parity validation with 100+ test cases. 99.99% confidence that optimized code produces identical results.

Benchmark

Multi-iteration benchmarks with regression detection. Track performance over time with multi-format reports.

📈

Dashboard

Interactive web visualization of performance data. Compare languages side-by-side, drill into individual benchmarks.

🔧

Incremental

Optimize critical paths, leave the rest unchanged. No full rewrite required. Drop in a faster function, keep everything else.


How It Works

From slow to fast in one command

Pivot handles the analysis, generation, validation, and benchmarking automatically.

Optimize
$ naab-lang pivot.naab analyze slow.py

Analyzing slow.py...
Hotspot detected: compute_stats()
  Type: CPU-bound numerical
  Current: Python (score: 15/100)
  Optimal: Go (score: 95/100)

$ naab-lang pivot.naab optimize slow.py --to go

Generating Go version...
Generated: compute_stats.go

Validating parity...
100/100 test cases passed
Confidence: 99.99%
Parity: CERTIFIED
Benchmark
$ naab-lang pivot.naab benchmark

Running 3 iterations...

compute_stats()
  Python:  2,843 ms (baseline)
  Go:        812 ms (optimized)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  Speedup:    3.5x faster
  Memory:     72% reduction
  Correctness: CERTIFIED
  Confidence:  99.99%

Results saved to benchmark.json
Dashboard: http://localhost:8080

NAAb Ecosystem

Part of something bigger

NAAb Pivot is built on the NAAb polyglot language. Every tool in the ecosystem uses the best language for each task.


Make your code faster

NAAb Pivot is open source, MIT licensed, and ready to optimize your critical paths.

View on GitHub NAAb Language