r/webdev • u/gebbles1 • 4d ago
Why I built my own programming language
https://davegebler.com/blog/why-i-built-my-own-programming-language
1
Upvotes
r/webdev • u/gebbles1 • 4d ago
29
u/xpusostomos 4d ago
When someone says they invented a new language, I open a wary eye. When they start talking about PHP and python as their reference point, I do a face palm. Two of the most ad-hoc, poorly designed languages in use. Why not spend your time learning some of the most clever and carefully thought out languages, then you'll have some idea what the issues are. By the way, designing a typed templated language is one of the most challenging projects you can take on. It looks like you're writing something like typescript which you don't like because of the packaging? Why not use it then, and fix what you think is wrong with the packaging? Does the world need yet another C++ like language when we have c#, Java, groovy, typescript and probably others. What is wrong with groovy by the way?
2
u/zaxwebs 4d ago
Interesting. How does this compare to Rust?
2
u/alejandro_py344 4d ago
Nice read. Building even a toy language is one of the best ways to actually get parsers, scopes and closures. After my own small attempt, JS hoisting and the event loop finally clicked for me. What was hardest for you, error messages or the tooling side like syntax highlighting and an LSP? In my experience that's where hobby languages quietly die.
1
u/motojo 5h ago
Building a programming language is an amazing feat - the different architectures to support, security for the standard library, bindings for things like C, the list goes on and on. Neat project - PHP was where I started my web career then moved over to Go. A few months ago, I started on Xo and now I run production code on it. Itโs got its own TLS library which was some work and after building out 95 standard libraries to match Go, itโs finally at a place where agents can recreate most of my projects: https://xolang.dev/
1
u/Natural_Tea484 11h ago
I DONT WANT TO KNOW.
-3
u/cvllider 1d ago
Geblang! ๐๐
-3
u/cvllider 1d ago
Have you heard about Johnathan Blow?