Forthic Rust Runtime
January 1, 2026 · View on GitHub
A Rust implementation of the Forthic stack-based concatenative programming language.
Overview
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.
Features
- ✅ Complete Forthic language implementation
- ✅ All 8 standard library modules
- ✅ Memory-safe, thread-safe execution environment
- ✅ Seamless interop with Rust types
Development
# Compile
cargo build
# Run tests
cargo test
# Check types and borrow checker
cargo check
# Run with optimizations
cargo run --release
Standard Library Modules
- 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)
License
BSD 2-CLAUSE
Links
- forthix.com - Learn about Forthic and Categorical Coding
- Category Theory for Coders - Understand the foundations
- Forthic Language Specification
- TypeScript Runtime (reference implementation)