Hi HN. I blew up my weekly Claude Fable allowance building this tiny programming language that works.
Vyto is a simple, small, fast, statically typed language with JavaScript-like syntax and a compiler that transpiles to human-readable C. Vyto compiles only the modules you have used, so you can build executables as tiny as 45kb. Performance is barely slower than bare C. The small cost to pay is the code readability and hidden complexity.
It started with a question to Claude Code: how can I convert my JS apps to native C code - it said that's like building a JS interpreter.
I then prompted CC to build me a small language that is as simple to read and write as JS but rides on all the power of C. From there it was iteration after iteration with Proof-of-concept apps and working examples.
The first iteration I named it "Volt" but I found another half-dormant language called Volt so I renamed mine to Vyto to avoid collisions.
What's in there: A real compiler, Deterministic memory, First-class FFI, stdlib modules, a full GUI Toolkit backed by a 2D Canvas and blend2d.
What it doesn't have: generics [coming soon], exceptions, pattern matching, operator overloading, or threads [concurrency uses epoll and fork() for now].
Platform support: Works right now on Linux - MacOs, Windows, Android, iOS planned.
Next real target is UI Widgets polishing and fully working Vyto apps on Windows.
emuthomi•1h ago
Vyto is a simple, small, fast, statically typed language with JavaScript-like syntax and a compiler that transpiles to human-readable C. Vyto compiles only the modules you have used, so you can build executables as tiny as 45kb. Performance is barely slower than bare C. The small cost to pay is the code readability and hidden complexity.
It started with a question to Claude Code: how can I convert my JS apps to native C code - it said that's like building a JS interpreter.
I then prompted CC to build me a small language that is as simple to read and write as JS but rides on all the power of C. From there it was iteration after iteration with Proof-of-concept apps and working examples.
The first iteration I named it "Volt" but I found another half-dormant language called Volt so I renamed mine to Vyto to avoid collisions.
What's in there: A real compiler, Deterministic memory, First-class FFI, stdlib modules, a full GUI Toolkit backed by a 2D Canvas and blend2d.
What it doesn't have: generics [coming soon], exceptions, pattern matching, operator overloading, or threads [concurrency uses epoll and fork() for now].
Platform support: Works right now on Linux - MacOs, Windows, Android, iOS planned.
Next real target is UI Widgets polishing and fully working Vyto apps on Windows.