by zelphirkalt · 6mo ago · 0 comments
It would be different, if the number of regexes was maybe below 300, and it still plays acceptably. The sheer number of regexes kind of defeats the purpose.
At that code size, a much better engine can be written, or other kind of code for an engine be generated. Regexes themselves are not really something we should strive to use more either. Maybe its intentional badness kind of makes it art?
I wish more submissions began with, “This might be a bit wild, but I wanted to see if it could actually work.”
Some of the best things I've ever created started from, "I wonder what would happen if I tried this crazy approach..."
That is how esoteric programming languages start.
I guess it's the whole point of such type of blog posts. Similarly, some people write complicated interactive web pages without using JS, like this https://benjaminaster.com/css-minecraft/. But if you look at the HTML / CSS code size, it's usually huge, but still requires creativity to do that because of constraints. Obviously, it's not something practical or even optimal.
There are people who navigate the web with JavaScript turned off, so those experiments do have practical applications.
There are entire projects around not using JavaScript.
This is practical (and necessary) for relatively basic stuff, such as text content, navigation, basic form / input validation, and things like that. But when people write more complicated things (requiring state management, logical branches, etc), like games, 3d programs, etc, it's much more challenging (also can be sub-optimal) and requires more creativity. I mean they are more of a demo art rather than some strong necessity.
Meanwhile, 1K ZX Chess takes fewer bytes of memory than the first four paragraphs from the post.