Re:Notch's next game is an MMO
by viraptor on Tuesday April 03, 2012 @08:22PM
(#3795537)
That kind of code generation is unlikely to exist. Each line of that code has its own specific purpose, it's not some copy pasta. And surprisingly, it should be trivial to test it! there are no conditions of edge cases apart from the conditional instructions. As long as you test for ranges and off by ones, there's no space for mistakes really. I'd take that kind of code over usual "business logic" any time :-)
[ Parent
| on HN ]
Nonsense! Look at the code again. There are a lot of repeated motifs, like the things that fetch from memory and increment the program counter. It cries out to be partially automated. If nothing else, there has got to be a more human-readable equivalent to all that bit-masking and offset-adding.
Code generation doesn't need to be heavyweight.
Even some one-line functions or macros would make that code much more compact and readable.
Off by one errors, maybe we'll even bring back the golden age of buffer overflow exploits, emergent realistic hacking gameplay mechanics, Notch you're a genius...
Re:Notch's next game is an MMO
by kingatomic on Wednesday April 04, 2012 @10:16AM
(#3797660)
Part of the battle system could be causing segfaults in rival ship computers.