← Back to context

Comment by ducktective

6 years ago

ahhmm clears throat This wouldn't have happened if they used Rust ;)

The reason you get these sorts of bugs is not because of the languages used, but because of the tight constraints, most notably the limited amounts of ROM and RAM available. You simply couldn’t code such a thing in safe Rust. If you wanted to make cartridges like this with Rust, there would be a lot of unsafe code, and you’d get just the same bugs.

Put another way: if you said, “you wouldn’t get this if you wrote it in Java”—well, sure, but that’s because you wouldn’t get anything, because the JVM wouldn’t fit and couldn’t run on the target platform.

If there's one thing that makes me regret pushing Rust, it's this. :P Although fortunately, physics engines in any language will always have exploitable, memory-safe bugs that make for great speedruns.

Seems like a challenge as some would say the game would not have happened, on an NES, in Rust.

:D