| Crates.io | ruchy |
| lib.rs | ruchy |
| version | 4.1.0 |
| created_at | 2025-08-16 02:17:11.326836+00 |
| updated_at | 2026-01-12 22:45:49.893471+00 |
| description | A systems scripting language that transpiles to idiomatic Rust with extreme quality engineering |
| homepage | |
| repository | https://github.com/paiml/ruchy |
| max_upload_size | |
| id | 1797769 |
| size | 45,692,450 |
A modern, expressive programming language for data science and scientific computing, featuring a self-hosting compiler, comprehensive tooling, and enterprise-grade quality standards.
cargo install ruchy
# Start interactive REPL
ruchy
# Run a script
ruchy script.ruchy
# Evaluate expression
ruchy -e "println(1 + 2)"
# Compile to binary
ruchy compile script.ruchy -o myapp
// Variables and functions
let name = "Ruchy"
fun greet(who) {
println(f"Hello, {who}!")
}
greet(name)
// Pattern matching
let value = Some(42)
match value {
Some(x) => println(f"Got {x}"),
None => println("Nothing"),
}
// Labeled loops (v4.0)
'outer: for i in 0..10 {
for j in 0..10 {
if i * j > 50 {
break 'outer
}
}
}
// Collections
let numbers = [1, 2, 3, 4, 5]
let doubled = numbers.map(|x| x * 2)
println(f"Doubled: {doubled:?}")
| Command | Description |
|---|---|
ruchy |
Start interactive REPL |
ruchy <file> |
Run a Ruchy script |
ruchy -e "<code>" |
Evaluate expression |
ruchy compile <file> |
Compile to binary |
ruchy transpile <file> |
Transpile to Rust |
ruchy check <file> |
Syntax check |
ruchy lint <file> |
Lint code |
ruchy fmt <path> |
Format code |
ruchy test <path> |
Run tests |
Ruchy generates 100% safe Rust code with full concurrency support:
LazyLock<Mutex<T>>// Thread-safe by default
let mut counter = 0
fun increment() {
counter = counter + 1 // Thread-safe
}
// Async functions
async fun fetch(url: String) -> String {
let response = http::get(url).await?
response.text().await
}
# Compile to WASM
ruchy wasm compile script.ruchy -o output.wasm
# Run WASM module
ruchy wasm run output.wasm
Ruchy provides a Model Context Protocol server for Claude integration:
cargo install ruchy --features mcp
Add to Claude Desktop config:
{
"mcpServers": {
"ruchy": {
"command": "ruchy",
"args": ["mcp"]
}
}
}
MIT License - see LICENSE for details.
Noah Gift - github.com/paiml/ruchy