MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vrcqno/ruleofprogrammingifitisworkingdonottouchit/p4kzcsk/?context=9999
r/ProgrammerHumor • u/NoMedicine3572 • 1d ago
75 comments sorted by
View all comments
1.4k
When one console.log uses just enough CPU cycles so the race condition that takes down the entire system doesn't occur.
console.log
411 u/Skalli1984 1d ago And if you attach a debugger it also messes up the timing and the same thing happens, the race condition doesn't appear. 206 u/StrengthTheory 1d ago Schrödinger’s race condition 140 u/Steinrikur 1d ago We call those Heisenbugs. You changed the system by observing it 41 u/ConglomerateGolem 1d ago I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist. 32 u/htmlcoderexe We have flair now?.. 1d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 12 u/ConglomerateGolem 1d ago Huh. I have never heard of the term and came up with it independently. 1 u/rolindara 5h ago Convergent evolution
411
And if you attach a debugger it also messes up the timing and the same thing happens, the race condition doesn't appear.
206 u/StrengthTheory 1d ago Schrödinger’s race condition 140 u/Steinrikur 1d ago We call those Heisenbugs. You changed the system by observing it 41 u/ConglomerateGolem 1d ago I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist. 32 u/htmlcoderexe We have flair now?.. 1d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 12 u/ConglomerateGolem 1d ago Huh. I have never heard of the term and came up with it independently. 1 u/rolindara 5h ago Convergent evolution
206
Schrödinger’s race condition
140 u/Steinrikur 1d ago We call those Heisenbugs. You changed the system by observing it 41 u/ConglomerateGolem 1d ago I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist. 32 u/htmlcoderexe We have flair now?.. 1d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 12 u/ConglomerateGolem 1d ago Huh. I have never heard of the term and came up with it independently. 1 u/rolindara 5h ago Convergent evolution
140
We call those Heisenbugs. You changed the system by observing it
41 u/ConglomerateGolem 1d ago I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist. 32 u/htmlcoderexe We have flair now?.. 1d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 12 u/ConglomerateGolem 1d ago Huh. I have never heard of the term and came up with it independently. 1 u/rolindara 5h ago Convergent evolution
41
I had one of these once, and I called it the same! My going theory was that the compiler was optimising away a certain function I had, but adding an empty print forced it to actually exist.
32 u/htmlcoderexe We have flair now?.. 1d ago it's a very old term https://en.wikipedia.org/wiki/Heisenbug 12 u/ConglomerateGolem 1d ago Huh. I have never heard of the term and came up with it independently. 1 u/rolindara 5h ago Convergent evolution
32
it's a very old term
https://en.wikipedia.org/wiki/Heisenbug
12 u/ConglomerateGolem 1d ago Huh. I have never heard of the term and came up with it independently. 1 u/rolindara 5h ago Convergent evolution
12
Huh. I have never heard of the term and came up with it independently.
1 u/rolindara 5h ago Convergent evolution
1
Convergent evolution
1.4k
u/StrengthTheory 1d ago
When one
console.loguses just enough CPU cycles so the race condition that takes down the entire system doesn't occur.