TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A bootable CD image with a retro game in a single tweet

1004 pointsby chetanhsalmost 7 years ago

24 comments

jobualmost 7 years ago
This reminds me a bit of the science of nanoinformatics as described in one of the Expanse novellas (The Vital Abyss):<p>&quot;<i>A thought experiment from my first course in the program: Take a bar of metal and put a single notch in it. The two lengths thus defined have a relationship that can be expressed as the ratio between them. In theory, therefore, any rational number can be expressed with a single mark on a bar of metal. Using a simple alphabetic code, a mark that calculated to a ratio of.12152205 could be read as 12-15-22-05, or “l-o-v-e.” The complete plays of Shakespeare could be written in a single mark, if it were possible to measure accurately enough. Or the machine language expression of the most advanced expert systems, though by then the notch might be small enough that Planck’s constant got in the way. How massive amounts of information could be expressed in and retrieved from infinitesimal objects was the driving concern of my college years.&quot;</i><p>Pure fiction at this point, but it would be an interesting experiment to encode data into objects that could be expressed using the mathematical ratio of their shapes or sizes.
评论 #17659789 未加载
评论 #17659345 未加载
评论 #17659059 未加载
评论 #17661133 未加载
评论 #17660296 未加载
评论 #17660762 未加载
barbegalalmost 7 years ago
I was confused as to how you could represent a bootable CD image in printable characters. It turns out that you can&#x27;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.<p>That said, this is a playable game in around 60 bytes of actual data which is impressive.
评论 #17657187 未加载
评论 #17656850 未加载
评论 #17658018 未加载
评论 #17657579 未加载
评论 #17657710 未加载
评论 #17659992 未加载
评论 #17659756 未加载
评论 #17659957 未加载
评论 #17659071 未加载
myth_drannonalmost 7 years ago
If you want to see demos (as in demoscene) in a tweet of 140 characters - <a href="https:&#x2F;&#x2F;www.dwitter.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.dwitter.net&#x2F;</a>
评论 #17658121 未加载
a1k0nalmost 7 years ago
Hats off for making use of the AAA instruction. That&#x27;s a very clever sequence converting up&#x2F;down&#x2F;left&#x2F;right to -320&#x2F;+320&#x2F;-1&#x2F;+1.
评论 #17658997 未加载
KyeRussellalmost 7 years ago
As someone that develops almost exclusively in high-level languages on top of may levels of abstraction, it&#x27;s nice to see what can be accomplished close to the metal.<p>This reminds me of Steve Gibson&#x27;s SpinRite, which (from what I recall) is a fully functional disk recovery utility written entirely in assembly. <a href="https:&#x2F;&#x2F;www.grc.com&#x2F;spinrite.htm" rel="nofollow">https:&#x2F;&#x2F;www.grc.com&#x2F;spinrite.htm</a>. Say what you want about the man, but this is something that&#x27;s saved me on at least one occasion, and is smaller than things I produce that do a lot lot less.
评论 #17659804 未加载
yebyenalmost 7 years ago
Your snake game doesn&#x27;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...<p>&#x2F;s (Just kidding this is actually super cool.)
评论 #17657777 未加载
评论 #17656876 未加载
ryandrakealmost 7 years ago
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.<p>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.
评论 #17657545 未加载
评论 #17657270 未加载
评论 #17656979 未加载
varjagalmost 7 years ago
The actual tweet: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;alokmenghrajani&#x2F;status&#x2F;1007514337592987648" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;alokmenghrajani&#x2F;status&#x2F;10075143375929876...</a>
amenghraalmost 7 years ago
Make sure you check out the floppy version from ~3 years ago. Fits in “old” tweets (ie 140 chars): <a href="https:&#x2F;&#x2F;www.quaxio.com&#x2F;bootloader_retro_game_tweet&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.quaxio.com&#x2F;bootloader_retro_game_tweet&#x2F;</a>
评论 #17658307 未加载
antoineMoPaalmost 7 years ago
That&#x27;s the kind of thing I come here for! Tiny hacks of all sorts.
评论 #17658037 未加载
komali2almost 7 years ago
This is the second time this week I&#x27;ve seen someone note that ISO standards are expensive - are they copyrighted or something? Why doesn&#x27;t someone just publish them online for free?
评论 #17658918 未加载
评论 #17661139 未加载
Klathmonalmost 7 years ago
Man I love these things. Back before Twitter upped their character limits, I remember a trick to cram more data in a tweet was to abuse how Twitter counts characters (it attempts to count visually rather than by byte), so by using a ton of multipart emojis or larger Unicode characters to over double the information that could fit in a tweet.
评论 #17658980 未加载
andyidsingaalmost 7 years ago
i love love love this.<p>This is a fantastic way to get into low level programming with a fun,tangible and approachable result.<p>back in &quot;the day (TM)&quot;, we used to do this with ..achem ..viruses on floppies :) Putting it in a tweet is just brilliant.<p>anyone remember the one where it would say &quot;smoke more weed dude&quot;? (or something of the sort) :)
xellisxalmost 7 years ago
Not as cool as this, but here are some PHP &quot;frameworks&quot; in a tweet (140 characters):<p><a href="http:&#x2F;&#x2F;www.twitto.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.twitto.org&#x2F;</a><p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;mathiasverraes&#x2F;9046427" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;mathiasverraes&#x2F;9046427</a><p><a href="https:&#x2F;&#x2F;philsturgeon.uk&#x2F;php&#x2F;2009&#x2F;12&#x2F;15&#x2F;Twiny-Framework-the-framework-small-enough-to-tweet&#x2F;" rel="nofollow">https:&#x2F;&#x2F;philsturgeon.uk&#x2F;php&#x2F;2009&#x2F;12&#x2F;15&#x2F;Twiny-Framework-the-f...</a><p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;jeremeamia&#x2F;2720020" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;jeremeamia&#x2F;2720020</a>
sjtrnyalmost 7 years ago
The explanation is quite good but is there even more detail on what the assembly instructions are doing on a line by line basis? I’ve only written MIPS assembly and that was a long time ago.
rootbearalmost 7 years ago
Very cool. My version of base64 wants -d, not -D, though.
评论 #17658155 未加载
starpilotalmost 7 years ago
Wow, that&#x27;s pretty leet.
narratoralmost 7 years ago
I remember x86 real mode back in the day. Pretty hideous and hacky compared to what we have now.
评论 #17658111 未加载
评论 #17657658 未加载
评论 #17656848 未加载
tomxoralmost 7 years ago
Looks like the turbo button needs to be in the on position for this one: 0.05 FPS in a qemu KVM on my old P8600... I presume the game loop uses the hardware clock :P<p>btw my base64 util needed lower case -d
评论 #17658973 未加载
utopcellalmost 7 years ago
So beautifully retro. Like twitter :-)
classichasclassalmost 7 years ago
There&#x27;s almost as much header information as there is code!
wintorezalmost 7 years ago
What is this sorcery!?
wojtczykalmost 7 years ago
Love it!
fmfamaralalmost 7 years ago
Well done, sir.