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.

programmerhumor

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

dan1101 , in Stop

All this computer stuff is a complete useless scam for sure.

magic_lobster_party , in Stop

Optimizing CPU usage by 0.02% is something only the truly deranged do

swab148 ,
@swab148@lemm.ee avatar

I saw an article last week about a one-liner they were adding to the Linux kernel that would reduce the startup time by .03 seconds, and let me tell you, I was relieved.

vext01 ,
@vext01@lemmy.sdf.org avatar
pivot_root ,

Not necessarily. It depends on what you’re optimizing, the impact of the optimizations, the code complexity tradeoffs, and what your goal is.

Optimizing many tiny pieces of a compiler by 0.02% each? It adds up.

Optimizing a function called in an O(n^2^) algorithm by 0.02%? That will be a lot more beneficial than optimizing a function called only once.

Optimizing some high-level function by dropping into hand-written assembly? No. Just no.

magic_lobster_party ,

0.02% means you’re saving a fraction of a second for every hour of runtime. A lot of adding up is required to make it significant enough for anyone to notice.

Better to spend that time and effort on things that actually bring value. These kind of micro optimizations can also make the code unnecessarily complicated and difficult to work with, which is a hindrance for the optimizations that truly matter.

pivot_root ,

In a single one-off program or something that’s already fast enough to not take more than a few seconds—yeah, the time is spent better elsewhere.

I did mention for a compiler, specifically, though. They’re CPU bottlenecked with a huge number of people or CI build agents waiting for it to run, which makes it a good candidate for squeezing extra performance out in places where it doesn’t impact maintainability. 0.02% here, 0.15% there, etc etc, and even a 1% total improvement is still a couple extra seconds of not sitting around and waiting per Jenkins build.

Also keep in mind that adding features or making large changes to a compiler is likely bottlenecked by bureaucracy and committee, so there’s not much else to do.

Live_your_lives , in Stop

What’s the teapot a reference to?

skoell13 ,
otter ,

I was aware of status code 418. The whole thing being a huge April Fools joke is amazing.

Ephera ,

It’s an in-joke in 3D modeling: en.wikipedia.org/wiki/Utah_teapot

gandalf_der_12te ,
@gandalf_der_12te@lemmy.blahaj.zone avatar
XanderBrendon ,
BeigeAgenda , in 1 hour in Java
@BeigeAgenda@lemmy.ca avatar

And 42 seconds in jython.

perishthethought , in Stop

OK. I guess it’s time to go start my rutabaga farm now.

MonkeMischief ,

Oh is that kinda like a raspberry or orange pi farm?

Sounds kinda RISCy in this economy…

ReakDuck ,

Yeah, better use something that isn’t ARM

(In germany, arm means poor)

thenextguy , in 1 hour in Java

This little hack is gonna cost us 51 CPU cycles.

hedgehog , in Stop

while (true) { print money; }

Someone’s never heard of Bitcoin

No_Support_8363 ,

if print-money == false then mine-bitcoin;

auzy , in 1 hour in Java

And about 20 in perl. But the return trip is 300 years

418_im_a_teapot , in Stop

I take offense to the teapot joke. Leave the teapots out of it.

XanderBrendon ,

Tell that to Don Norman.

captain_aggravated , in Stop
@captain_aggravated@sh.itjust.works avatar

Why is it that 5 minutes before bed time when I’m really tired do I have the urge to fire up a C tutorial?

AlbinoPython , in Stop

I can’t not read this in Ron Swanson’s voice.

PeriodicallyPedantic , in Up up and away we go

Me in the bash terminal

livingcoder , in Up up and away we go

Who is writing SQL in the terminal?

Razzazzika ,

Was thinking the same thing… now, searching through all my SQL scripts for the past year to find the same logic I want to replicate in another script, well that’s different.

livingcoder ,

I save “template” SQL queries in a special directory so that I don’t have to google how to do specific things. It’s basically my own personal “examples” folder.

ikidd ,
@ikidd@lemmy.world avatar

MariaDB CLI about once in a blue moon when I have to clear some table that’s gotten borked.

netvor , in Text Processing Compass
@netvor@lemmy.world avatar

WISYWIG managing nested bullet point or numbered lists should be in right-bottom corner.

duck1e ,

did you typo WYSIWYG acryomn or is this something new ?

superkret ,

M365 would be WYSIWIG.
What you see is what I get.

netvor ,
@netvor@lemmy.world avatar

oh, I toatlly typoed it

(LOL I made a perfect “What Iou See Ys What Iou Get”)

funbreaker , in Stop
@funbreaker@piefed.social avatar

But we had to program the computer for it to be able to do math in the first place?

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