I've been working on a programming language called G. It is designed to be memory-safe and extremely fast, with a focus on a tiny footprint.
The entire interpreter is written in D and weighs in at only 2.4MB. I built it because I wanted a modern scripting language that feels lightweight but has the safety of a high-level language.
Key Features:
Small: The binary is ~2.4MB.
Fast: Optimized for x86_64.
Safe: Memory-safe execution.
Std Lib: Includes std.echo, std.newline, etc.
GitHub: https://github.com/pouyathe/glangI would love to get some feedback on the syntax or the architecture from the community!
pouyathe•5d ago
snovymgodym•4d ago
Still, I have to respect the dedication it must have taken to get this working. I'm sure you'll go far.
My advice to you would be to read Crafting Interpreters by Bob Nystrom (it's free online) and try to apply some of the techniques from it to your project.
https://craftinginterpreters.com/
its_magic•4d ago
ternaryoperator•4d ago
bw86•4d ago
pouyathe•4d ago
Thank you for the book recommendation. I've just downloaded "Crafting Interpreters" and will study it properly. I've been coding in isolation (due to circumstances I can't easily explain), so learning from established resources like this is exactly what I need.
The messiness comes from years of solo experimentation without mentorship. I'm now committed to cleaning it up using proper techniques.
I appreciate both the kind words and the tough love.
zenethian•3d ago
machiaweliczny•4d ago
mndgs•3d ago
Otherwise, what a cluster*uck of a code this is.. I am amazed and appalled at the same time.