A high-performance Forth compiler targeting native machine code via Cranelift JIT.
Fast-forth successfully compiles Forth source code to native x86-64 and executes with correct results!
// This works right now!
execute_program("42", true) → Ok(42) ✅
execute_program("10 20 + 3 *", true) → Ok(90) ✅
execute_program(": answer 42 ;", true) → Compiles ✅# Build the compiler
cd /tmp/fast-forth/cli
cargo build --release
# Run tests
cargo test
# Execute Forth code
./target/release/fastforth execute "10 20 + 3 *"
# Output: 90- STATUS.md - Current implementation status and test results
- ROADMAP.md - Detailed next steps for full functionality
- COMPLETION_SUMMARY.md - Comprehensive implementation summary
- COVERAGE.md - Code coverage documentation and measurement guide
- COVERAGE_GAP_ANALYSIS.md - Detailed coverage gap analysis and improvement plan
✅ Complete compilation pipeline: Parser → AST → SSA → Cranelift → Native x86-64 ✅ Top-level code execution ✅ 14 optimized builtin words ✅ Stack-based calling convention ✅ ~50ms compilation time ✅ Native execution speed
See ROADMAP.md Phase 1 for detailed implementation plan (estimated 4-6 hours).
Status: Working JIT compiler (November 15, 2025) Next: Recursion support (ROADMAP.md Phase 1) Goal: Native Forth execution for llama CLI