SQRS is a modern functional programming language built for safety, parallelism, and developer delight. Experience a new syntax, new compiler, and a new way of thinking.
// Parallel Fibonacci with SQRS
fn fibonacci(n: Int) -> Int {
match n {
0 | 1 => n,
_ => {
let (a, b) = parallel {
fibonacci(n - 1),
fibonacci(n - 2)
};
a + b
}
}
}
// Type-safe async operations
async fn fetch_data() -> Result<Data, Error> {
let response = http::get("https://api.example.com/data").await?;
response.json::<Data>()
}
// Compile to WebAssembly
export fn main() {
let result = fibonacci(10);
console::log("Result: {}", result);
}
Built from the ground up with modern development principles and cutting-edge compiler technology.
Zero-cost abstractions with compile-time memory safety guarantees. No garbage collector, no memory leaks.
Built-in parallel constructs inspired by Elixir's Actor model, with compile-time race condition detection.
Expressive syntax, intelligent error messages, and first-class tooling for a delightful development experience.
SQRS compiles directly to WebAssembly, enabling high-performance applications that run anywhere - from browsers to serverless functions to embedded systems.
$ sqrs build --target wasm
Compiling fibonacci v0.1.0
Finished release [optimized] target(s)
$ wasm-pack build
Generated WebAssembly module
Size: 12.3 KB (gzipped: 4.1 KB)
$ npm run deploy
Deployed to Vercel Edge Functions ✓
Join thousands of developers who are already building with SQRS. Get started today and see what functional programming can be.