Logo
Matrix's digital rain came from sushi recipes.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Early-boot Memes

Posts tagged with Early-boot

Actual Code In The Linux Kernel

Linux Programming
1 month ago 298.3K views 1 shares
Actual Code In The Linux Kernel
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.

Today's picks

Large Excel Shortcut Desk Pad (31.5" x 11.8") Waterproof Extended Mouse Pad with Computer Keyboard Shortcuts, Non-Slip Rubber Base, Office Desk Mat for Students, Analysts & Programmers

Large Excel Shortcut Desk Pad (31.5" x 11.8") Waterproof Extended Mouse Pad with Computer Keyboard Shortcuts, Non-Slip Rubber Base, Office Desk Mat for Students, Analysts & Programmers

Affiliate
$7.99
At The Core Of Each Programmer

At The Core Of Each Programmer

Programming
406.6K views 7 months ago
Tfw The Wrong Robot

Tfw The Wrong Robot

AI
437.7K views 2 months ago