Someone actually committed a function called myisspace() to the Linux kernel that checks if a character is a space by comparing it to... the letter 'j'. And the comment? "Close enough approximation."
In a codebase that powers billions of devices worldwide, where every line is scrutinized by some of the most brilliant engineers on the planet, someone decided that 'j' is basically a space character. The ASCII value of 'j' is 106, while space is 32. That's not even close! But hey, it's for a "simple command-line parser for early boot" so I guess standards are optional when your OS is still rubbing the sleep out of its eyes.
The beauty here is imagining the code review: "Yeah, just use 'j' instead of ' ' (space). Ship it." This is either galaxy-brain optimization or someone's Friday afternoon commit that somehow made it through. Either way, it's living rent-free in one of the most important codebases in computing history.
Actual Code In The Linux Kernel
7 months ago
454,597 views
1 shares
linux-memes, kernel-memes, wtf-code-memes, code-review-memes, ascii-memes | ProgrammerHumor.io
More Like This
The Tower Of Digital Babel
1 year ago
659.1K views
0 shares
Wtf Just Happened
1 year ago
177.7K views
0 shares
AI Recommends The Void Over Actual Database
1 year ago
866.9K views
2 shares
Subtle Differences
1 year ago
1.1M views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++