Earlier quoted context omitted.
> Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
Is this a joke I'm not getting? Any examples of such software?
What you learn by making a new programming language
71–80 of 137 posts
Re: What you learn by making a new programming language
#72I've had two projects that end up being "oops, I made an interpreter". It starts innocently enough, you just have a JSON that has some basic functionality. Then you decide it would be cool to nest functionality because there's no reason not to, so you build a recursive parser. Then you think it'd be neat to be able to add some arguments to the recursive stuff, because then you can more easily parameterize the JSON. T…
Switched to dynamically compiled C# eventually.
Re: What you learn by making a new programming language
#73Earlier quoted context omitted.
Angry upvote. Maybe it's true failing though was stopping short of becoming the OS.
It's not its own kernel, but emacs can run on Linux as PID 1, at which point it rather seems like it should count as an OS. Given its affiliation, emacs/Linux probably still counts as GNU/Linux, but still...
Re: What you learn by making a new programming language
#74> It will be a bad language, and that's okay This same advice could be applied to most hobbies. It doesn't have to be good, and it certainly doesn't have to make money. It just has to be fun and rewarding. If you learn something, even better. > Go Forth , make something fun *golfclap*
Forth is always appealing, whether literally, or in puns.
Re: What you learn by making a new programming language
#75Earlier quoted context omitted.
> Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
Is this a joke I'm not getting? Any examples of such software?
Re: What you learn by making a new programming language
#76I've dreamed about making my own language for about 10 years or so. Started out just messing around. My vision for what it would be and its purpose has changed over time. About 2 years ago, I "got serious" about designing and implementing it, though that doesn't mean I've spent a serious amount of time on it yet. But it's happening! It's a language for the domain of writing and verifying formal proofs. Basically, I d…
Sounds neat - got any example code you could share?
Re: What you learn by making a new programming language
#77I've had two projects that end up being "oops, I made an interpreter". It starts innocently enough, you just have a JSON that has some basic functionality. Then you decide it would be cool to nest functionality because there's no reason not to, so you build a recursive parser. Then you think it'd be neat to be able to add some arguments to the recursive stuff, because then you can more easily parameterize the JSON. T…
Likewise, I've done that more times than I'd like to admit. And I took it a step further with an LLM like a month and a half ago fenced behind a number of json and yaml instructions, containing conditions and validators. It works like a charm but yeah... Oops, I did it again.
I played with `eval`, got lost in codegen: O(AB), maybe?
Re: What you learn by making a new programming language
#78One of the most fundamental experiences I ever had was attempting a graduate level course at the end of a long series on compilers. You really get an eye opening view of how languages are translated into the language the machine understands. After going through a few toy languages and then finally tackling creating a simple JVM, here is the #1 thing I would go back to myself and scream until I was blue - Make your in…
Re: What you learn by making a new programming language
#79> It will be a bad language, and that's okay This same advice could be applied to most hobbies. It doesn't have to be good, and it certainly doesn't have to make money. It just has to be fun and rewarding. If you learn something, even better. > Go Forth , make something fun *golfclap*
And here's my tutorial FORTH, based upon a thread from hacker news: https://github.com/skx/foth Forth is always appealing, whether literally, or in puns.
Re: What you learn by making a new programming language
#80Earlier quoted context omitted.
Is this a joke I'm not getting? Any examples of such software?
It's a famous quote and it is of course meant to be humorous, and a statement of how vast the functionality of common lisp is (huge spec and book)