It’s finally ready.
After six months of work and 16,500 lines of code, I’m introducing Synapse — a programming language designed specifically for LLMs, not for programmers.
Why another language?
Every existing language was built for humans: Python is for readability, Rust is for safety, and JavaScript is for ubiquity. But when Claude or GPT generates code, they often stumble over syntactic sugar, ambiguities, and complex indentation rules.
Synapse is a language that LLMs understand better than you do.
And that’s not a bug — it’s a feature.
Key Advantages
1. S-Expression Syntax — 0% Ambiguity
(fn factorial (n)
(if (<= n 1) 1
(* n (factorial (- n 1)))))
No if x: ... elif: ... else:. No debates over tabs vs. spaces. One bracket equals one operation. LLMs generate this perfectly on the first try.
2. ASG instead of AST — Code as a Graph
Traditional compilers build a tree. Synapse builds a graph (Abstract Semantic Graph). This means:
- The AI sees all dependencies simultaneously.
- Code transformations are seamless.
- It’s perfectly optimized for analysis and refactoring.
3. Three Backends — One Codebase
- Interpreter: Instant execution.
- LLVM: Compilation into native code.
- WebAssembly: Run it in the browser. Write once, deploy anywhere.
4. LSP Out of the Box
Autocompletion, hover hints, and error diagnostics. Just plug it into VSCode and it works.
5. Built-in Type Inference
Powered by Hindley-Milner typing. Write code without annotations — the compiler figures it out for you.
What’s Under the Hood?
✅ Full S-expression parser
✅ Interpreter with 60+ operations
✅ Pattern matching
✅ Lazy sequences
✅ Dicts / HashMaps
✅ Pipe operator |>
✅ Try/catch error handling
✅ WASM compilation
✅ Module system
✅ Robust Standard Library
✅ 48/48 core tests passing
Who is this for?
Not for you. Seriously.
Synapse was created so you could tell Claude:
"Write me a web server in Synapse."
And it will. Without errors. On the first attempt. Because the syntax is architected for how an AI "thinks."
What’s Next (v1.1)
- Official VSCode Extension Marketplace launch.
- LLVM Closures.
- Comprehensive tutorial with real-world examples.
- Benchmarks vs. Python/Lua/Node.js.
Try It Now
git clone https://github.com/Xzdes/synapse.git
cd synapse
cargo build --release
cargo run --bin synapse
Inside the REPL:
synapse> (print "Hello from the future!")
Hello from the future!
synapse> (|> (range 1 10)
(filter even?)
(map square)
sum)
120
This is just the beginning. There is a lot of work ahead, but it’s already stable enough to touch, try, and break.
The language not for humans. The language for AI. The future.
⭐ GitHub: github.com/Xzdes/synapse
P.S. Yes, I know Lisp-like syntax isn't new. But no one has built it specifically for LLMs with a native WASM backend and built-in LSP from day one.
Top comments (0)