- Linus Torvalds added hidden tabs to Kconfig to challenge parsers that can’t handle them.
- Tabs were intentionally added to the common Kconfig file for page sizes to expose faulty parsers.
- Torvalds believes parsers unable to handle tabs shouldn’t be parsing kernel Kconfig files, aiming to force fixes.
“if you can’t parse tabs as whitespace, you should not be parsing the kernel Kconfig files.” ~ Linus Torvalds
This is what we got after people sent him into PC training. The OG Linus would say something like “if you’re a piece of s* that can’t get over your a** to parse tabs as whitespace you should be ashamed to walk on this planet let alone parsing the kernel Kconfig files. What a f* waste of space.”
I think your keyboard is broken. It’s inserting random stars in your text.
Dude. Censoring profanity ain’t as cringe as licensing a fucking Lemmy comment XD
xD xD XDDDD
Why are you censoring your own text? Truly baffling.
Because… there’s moderation on lemmy that doesn’t like certain words :P
I promise, you can say shit, ass and fuck
I’ve had some posts removed because of that so… maybe not on this community but still.
Yes, but can you say removed, removed, and sharemoved?
The Gordon Ramsey of programing
Complaining about PC but type the word “fuck”? Genius.
Wow, super newsworthy. Even included some bs about “colorful language”. Can’t let a thing like that go by without trying to entice some internet drama.
“newsworthy”??
Who said news? The mailing list is my k-drama
Kernel-drama, my favorite.
these days i think the only reason people want open source is to air the dirty laundry of software development
Unconventional way to take acid, but I support him.
Torvalds believes parsers unable to handle tabs shouldn’t be parsing kernel Kconfig files, aiming to force fixes.
Stern but just
I do the same to people who refuse to follow specifications they agreed to follow.
There is a slight satisfaction to get back at them for continually delivering much lower quality than is required.
But it really is to cover me. Because, it always happens, later in the future that edge case comes up, and everything breaks. And management is ready to blame me. But then I show them that I tested the edge case before the conclusion of the project. And that programmer ignored my emails, and that I told management these edge cases weren’t covered. But then management signed off on calling it complete. And suddenly management is no longer red with fury. And they usually won’t allow me time to fix it. So the can gets kicked down the road until the next time that edge case fails.
WE DO NOT BREAK USERSPACE
I am no kernel or parsing expert here but how hard would it be to convert tabs to spaces? Is it like very finicky and is weirdly platform dependent that it wouldn’t just be one of the first things that you do if you are writing a parser for anything?
grep -oP ' *'
oops no tabscut -d ' ' -f 3
oops no tabs
Reminds me of Beethoven writing Für Elise for sometime he loved, and when he was rejected, the music was finished in such a way that she could not play it.
Fur Elise wasn’t discovered until 40 years after his death and its unknown who it was written for.
Lol
I’m honestly on Torvalds’ side here.
Tabs are a necessary part of the tooling and configuration files. Any tool which doesn’t properly handle files that are correctly formatted for other tools is… a broken tool.
The Register did a good article covering the change.
Source files should be conservative with the standard they expect from the developer, and parsers should be liberal in what they expect from the source, ie. allow deviations from the standard.
Python for example supposedly only allows 4 spaces for indentation, but as long as the developer is consistent most if not all Python interpreters will accept any kind of indentation.
Having a language dependent on indentation is absurd on the face of it. It’s a ridiculous idea that should have been ridiculed from the outset.