Member-only story

Self-Driving Car Hits Robot Dog — JavaScript’s NaN likely culprit.

Sebastian Carlos
2 min readMay 23, 2022

--

The Royal Society, CC BY-SA 3.0, via Wikimedia Commons

The driverless software failed to cast a string to a number, causing it to believe the dog was a car from a competing manufacturer, which must be at all times engaged in a high-speed race to see who’s best.

We spoke to the car’s manufacturer, who told us they are “working hard to fix the issue.”

“We should have migrated to TypeScript ages ago, but Bob from HR became a parent last summer and had been asking for a raise ever since,” said the manufacturer. “We just couldn’t justify the cost.”

“We never thought this would happen,” they added. “NaN is, by definition, not a number, so we never thought it would be possible for nothing to cause something to happen. That’s not the Christian way.”

Elon Musk claims that there was no crash at all. “I observe the universe from a Tesla-approved frame of reference,” said the billionaire entrepreneur. “The dog wasn’t hit by the car because the car entered into a wormhole at the time of the alleged crash and emerged in an alternate timeline where the dog had already been hit by an Apple car.”

The Boston Dynamics robot dog, for its part, was reportedly unharmed in the accident because its world-class Rust codebase makes it “virtually indestructible.”

--

--

Sebastian Carlos
Sebastian Carlos

Responses (3)