There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

supercriticalcheese , in Bug Fixing

Well if it doesn’t work once try again if it doesn’t work twice or thrice maybe there’s a problem. If it works it is resolved … for now, least effort solution.

Socsa , in Sleep() at home

You gotta measure the latency of the first loop.

reverendsteveii , in Bug Fixing

it’s only dumb til it works

tiredofsametab , in ===

1 + false ? (I have no idea in which order JS would evaluate things as I rarely have to touch that language much anymore)

attero , in Bug Fixing

The definition of insanity is doing the same thing over and over and expecting different results.

snrkl , in Every goddamn time

FWIW, Little known fact: Matrix 2 used real vuln (SSH CRC32) for trinity power grid hacking scene.

Even better to know: the scene was completed before the CRC32 vuln was public. So the scene used real 0day vuln…

moonpiedumplings ,

Even better to know: the scene was completed before the CRC32 vuln was public. So the scene used real 0day vuln…

Source? After some googling, I can only find that this is a 0day in the matrix universe, but not in the real world at the time the scene was made (matrix reloaded is a 2003 movie, vuln was discovered and patched around 2001.)

reddit.com/…/actual_crc32_exploit_used_in_matrix_…

insecure.org/stf/neiljk.html

www.exploit-db.com/exploits/20617

BigBenis , in Bug Fixing

The crazy thing is that sometimes this just works…

Darkassassin07 , in Sleep() at home
@Darkassassin07@lemmy.ca avatar

Tell the CPU to wait for you?

Na, keep the CPU busy with useless crap till you need it.

jaybone ,

Fuck those other processes. I want to hear that fan.

leclownfou ,

I paid good money for my fan, I want to know it’s working!

kogasa ,
@kogasa@programming.dev avatar

Have you considered a career in middle management

bangupjobasusual , in Sleep() at home

I think some compilers will just drop that in the optimization step.

wreckedcarzz ,
@wreckedcarzz@lemmy.world avatar

Homer: “oh yeah speed holes sleep

jaybone ,

Sleep holes

ryannathans ,

Real pain in the ass when you’re in embedded and your carefully placed NOPs get stripped

vrighter ,

asm(“nop”);

vcmj , in Sleep() at home
quantenzitrone , in Bug Fixing

i sometimes do that so i can inspect the error messages on a cleared terminal

winky9827b ,

Sometimes I forget what I was looking for and have to restart the mental loop when doing this.

tengkuizdihar , in Bug Fixing
@tengkuizdihar@programming.dev avatar

Einstein did say…

Matty_r , in Sleep() at home
@Matty_r@programming.dev avatar

This should be the new isEven()/isOdd(). Calculate the speed of the CPU and use that to determine how long it might take to achieve a ‘sleep’ of a required time.

henfredemars ,

I took an embedded hardware class where specifically we were required to manually calculate our sleeps or use interrupts and timers rather than using a library function to do it for us.

sirico , in The AI plugins in my IDE right now
@sirico@feddit.uk avatar

Code still doesn’t work

pkill ,

And your IDE is laggy as hell

coloredgrayscale ,

Just get copilot for vim /s

SomeBoyo ,

Just get vim

AVincentInSpace ,

Github Copilot (n.) accelerated editing for programmers who refuse to learn any form of accelerated editing besides tab completion, and/or are too lazy to use a search engine to look up an algorithm they don’t know

EisFrei , in Sleep() at home

Ah yes. The speedup-loop.
thedailywtf.com/articles/The-Speedup-Loop

tryptaminev ,

This is brilliant.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines