A Rust implementation of the Forthic stack-based concatenative programming language.
Forthic is a stack-based, concatenative language designed for composable transformations. This is the official Rust runtime implementation, providing full compatibility with other Forthic runtimes while leveraging Rust's memory safety and zero-cost abstractions for high performance.
- ✅ Complete Forthic language implementation
- ✅ All 8 standard library modules
- ✅ Memory-safe, thread-safe execution environment
- ✅ Seamless interop with Rust types
# Compile
cargo build
# Run tests
cargo test
# Check types and borrow checker
cargo check
# Run with optimizations
cargo run --release
- core: Stack operations, variables, control flow
- array: Data transformation (MAP, SELECT, SORT, etc.)
- record: Dictionary/HashMap operations
- string: Text processing
- math: Arithmetic operations
- boolean: Logical operations
- datetime: Date/time manipulation (using
chrono) - json: JSON serialization (using
serde_json)
BSD 2-CLAUSE
- forthix.com - Learn about Forthic and Categorical Coding
- Category Theory for Coders - Understand the foundations
- Forthic Language Specification
- TypeScript Runtime (reference implementation)