METABYTE
Back to articles

Rust but Lisp: Because Who Doesn't Love Parentheses?

If you ever wanted Rust's performance with Lisp's syntax, this project is for you—but beware: parentheses are addictive.

9 mai 20262 min read
Rust but Lisp: Because Who Doesn't Love Parentheses?

Ever felt that itch when writing Rust? Everything is strict, typed, the compiler scolds you for every little mistake, but deep down you crave something more... parenthetical? Not back pain from sitting too long, but actual parentheses—lots of them, Lisp-style. Developer ThatXliner scratched that itch with a project aptly named Rust but Lisp.

The idea is dead simple: it's a meta-program that transpiles a Lisp subset into syntactically correct Rust. You write in (defun factorial (n) (if (< n 2) 1 (* n (factorial (- n 1))))) style, and out comes a proper Rust function. Of course, the Rust compiler will still hate you, but for different sins.

Under the Hood

The project is a preprocessor written in Rust itself (what else?). It parses Lisp-like syntax and generates Rust code. Currently, basic constructs are supported: functions, conditionals, arithmetic. Planned features include macros (because why not) and closures.

Why Bother?

Honestly, practical value is questionable. But as a proof of concept, it's a great conversation starter. Maybe it'll save those who migrated from Clojure to Rust and now suffer from withdrawal without prefix notation. Or maybe it's just another way to complicate your deploy pipeline: imagine your CI/CD trying to compile Lisp into a Rust binary.

METABYTE Studio's Take

We love experiments, but we advise against using such hybrids in production. If you still want to combine the incompatible, leave it to us—we have experience taming diverse technologies without losing performance or sanity.

NEXT STEP

Liked the approach?

We apply the same principles to client projects: AI, automation, products that don't die after launch.