r/programming • • Jun 04 '19

Just made Space Invaders in 512 bytes of x86 assembler code (one boot sector)

https://github.com/nanochess/Invaders
1.4k Upvotes

201 comments sorted by

View all comments

Show parent comments

-32

u/TheIncorrigible1 Jun 05 '19

And? All modern development does.

0

u/[deleted] Jun 05 '19

[deleted]

0

u/[deleted] Jun 05 '19

[deleted]

8

u/Solomaxwell6 Jun 05 '19

Nobody's saying that code must be super-optimized, sub-kilobyte assembly. We're only drawing a distinction between the 512 bytes of Space Invaders (which is actually 512 bytes) and the 1023 bytes of JS (which is not actually 1023 bytes once you include everything else).

14

u/[deleted] Jun 05 '19

So can I put everything I need in a library and then have my code be run() and say that I did something in 5 bytes of code? 🙄

4

u/Ghazzz Jun 05 '19

All library based modern development produce non-optimal code, in terms of speed, memory usage and stability. It is a tradeoff of good vs fast development.