Why I built a Bilingual Programming Language in Rust (from high-level Web to x86 Kernels)
Source: Dev.to
The Motivation: Technological Sovereignty
That’s how Mesa‑LP was born. It started in Python, but for version 4.0.0 I decided to take the final leap: a full rewrite in Rust.
Why the rewrite?
Moving from Python to Rust wasn’t just about speed (though it’s incredibly fast now). It was about:
- Zero Dependencies – No more
pipornpm. Everything is baked into the binary. - Memory Safety – Leveraging Rust’s borrow checker to build a robust engine.
- Native Power – Implementing a real HTTP server using
TcpListenerand a toolkit for x86 assembly.
A Bilingual AST
Whether you write say() or decir(), the AST treats them as the same. This makes programming more accessible to the Spanish‑speaking community without losing the “standard” feel of English coding.
Show me the code!
High‑level: A simple web server
page("Mesa World", "dark")
navbar("Mesa", [["Home", "/"], ["Docs", "/docs"]])
title("Welcome to the Future")
serve_web(8080)
Low‑level: x86 Assembly
asm = x86_new()
start_boot(asm)
video_mode(asm, 0x13)
point(asm, 0x7C00, "Hello from Native MesaOS")
The “Goat” 🐐 Factor
- Native Engine – 100 % Rust.
- Built‑in Packages – A system to create and share modules.
- Standard Library – +200 native functions for Crypto, SQLite, and JSON.
Personal Note
I’d love to get your feedback on the architecture!
Check out the repo here: