3 ms·
Many folks who used to write 0x86 assembly code love size coding compos, especially demoscene folks. Me and a couple of friends were able to implement the game
by ohadpr 8y ago
Many folks who used to write 0x86 assembly code love size coding compos, especially demoscene folks.
Me and a couple of friends were able to implement the game of Nibbles (Snake on old Nokia phones) in 70 bytes. Someone else managed to accomplish it in 48.
http://www.hugi.scene.org/compo/compoold.htm#compo1 http://www.hugi.scene.org/compo/compoold.htm#compo1
- gnulinux 8y agoHow is this possible? I can't even produce "Hello World" program as short as that, do you not use ELF format?
- jaak 8y agoLOL this reminds of old flame wars on Usenet about the smallest possible "Hello World!". Someone would always eventually post "echo Hello World!" and the endless arguments would ensue about whether or not that was actually a program.
- rwmj 8y agoWhy echo it? $ cat /tmp/hello hello\ world $ /tmp/hello /tmp/hello: line 1: hello world: command not found It prints hello world :-)
- vardump 8y agoGreat idea! I improved the "program": $ cat >hello Hello\ World\! $ chmod +x hello $ ./hello ./hello: line 1: Hello World!: command not found V0.2 changelog: * fix: adheres to Hello World! standard now
- userbinator 8y agoIn realmode DOS COM format (flat binary) a "Hello world" is under two dozen bytes, the bulk of it being the string itself.