This is great, and ironically it’s sitting next to another HN article where, in the comments, someone is actually defending a NYT news article that weighs in at 6MB. In a time when most software is filled with superfluous waste and endless layers of abstraction and libraries, it’s nice to see that the art of writing minimal software is not completely lost.
Further irony: this page weighs over 30MBs , thanks to a huge GIF that is arguably not necessary for the article.
A bootable CD image with a retro game in a single tweet
31–40 of 150 posts
Re: A bootable CD image with a retro game in a single tweet
#32Your snake game doesn't even have food for the snake to eat? The snake just grows without eating, until the head collides with the tail somewhere? Pssh, amateur hour... /s (Just kidding this is actually super cool.)
Re: A bootable CD image with a retro game in a single tweet
#33I was confused as to how you could represent a bootable CD image in printable characters. It turns out that you can't. This is a tweet of a perl script which creates a cd.iso file that you can then boot from. The perl script significantly decompresses the data in the tweet. That said, this is a playable game in around 60 bytes of actual data which is impressive.
It's pretty light compression from what I can tell - basically just squashing down runs of nulls to a single count.
https://en.wikipedia.org/wiki/Run-length_encoding
https://perldoc.perl.org/perlop.html#Multiplicative-Operator...
Re: A bootable CD image with a retro game in a single tweet
#34I remember x86 real mode back in the day. Pretty hideous and hacky compared to what we have now.
> what we have now x86 processors still boot into real mode…
"UEFI firmware performs those same steps, but also prepares a protected mode environment with flat segmentation and for x86-64 CPUs, a long mode environment with identity-mapped paging. The A20 gate is enabled as well."
Re: A bootable CD image with a retro game in a single tweet
#35I was confused as to how you could represent a bootable CD image in printable characters. It turns out that you can't. This is a tweet of a perl script which creates a cd.iso file that you can then boot from. The perl script significantly decompresses the data in the tweet. That said, this is a playable game in around 60 bytes of actual data which is impressive.
.. and way smaller than your comment .
Re: A bootable CD image with a retro game in a single tweet
#36That's the kind of thing I come here for! Tiny hacks of all sorts.
Re: A bootable CD image with a retro game in a single tweet
#37This is great, and ironically it’s sitting next to another HN article where, in the comments, someone is actually defending a NYT news article that weighs in at 6MB. In a time when most software is filled with superfluous waste and endless layers of abstraction and libraries, it’s nice to see that the art of writing minimal software is not completely lost.
Further irony: this page weighs over 30MBs , thanks to a huge GIF that is arguably not necessary for the article.
Re: A bootable CD image with a retro game in a single tweet
#38I remember x86 real mode back in the day. Pretty hideous and hacky compared to what we have now.
Re: A bootable CD image with a retro game in a single tweet
#39If you want to see demos (as in demoscene) in a tweet of 140 characters - https://www.dwitter.net/
Re: A bootable CD image with a retro game in a single tweet
#40That's the kind of thing I come here for! Tiny hacks of all sorts.
Same. I come here to witness what is basically programming magic to me. I'll need a couple of life times before I can become this skilled.