- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Havoc is not wrought, it is wreaked.
Admin
http://en.wiktionary.org/wiki/wreak
"It has become common to use wrought, the original past tense and participle for work, as the past tense and past participle for wreak, as in wrought havoc (i.e. worked havoc for wreaked havoc), due both to the fact that the weak form worked has edged out wrought from its former role almost entirely (except as an adjective referring usually to hand-worked metal goods), and via confusion from the wr- beginning both wreak and wrought, and probably by analogy with seek)."
Admin
Admin
Admin
Admin
Admin
If you are improving the speed of the code, only to add a sleep statement to make it take the same amount of time, why do they pay you?
They could have saved your salary costs by doing nothing.
Admin
Except, a second of sleep() costs less from a hardware lifetime perspective.
Cpus run cooler during that second now, before they could be running unnecessary data processing. Alternatively, OTHER processes could schedule to run during that 1 second of sleep, yielding performance gains from other programs running concurrently.
Extraneous reads / writes to storage would be eliminated, raising the time to failure of both spinning discs and solid state drives.
Sure - from the user experience side for THIS application the time didn't change, but those seconds of sleep() are not without side effects.
Admin
So the following should achieve maximum efficiency then:
Admin
Hope that billion in "3 billion queries" is short scale billion (10^9) because in the other half of the world billion in million squared. You'll wait quite a while for 3e12 queries to execute.
Admin
Why would you say such an awful hurtful thing? I don't think you're a very nice person.
Admin
OK, here's the deal.
Admin
Admin
Snoofle has good stories but terrible story-telling skills. Groklaw is funnier.
CAPTCHA: "Clap your hands if Snoofle is boring"
Admin
shhhh... don't say that too loud. The US government will try to "solve" their debt problems by redefining a billion... "No, we're not 16 Trillion in debt, we're 16 "new" billion in debt"...
Admin
As a young programmer, one of my first jobs was to optimize a highly-used computation function in an old C program. I did pretty well, got a 4-6x speed up, whereupon my immediate manager immediately made me put in enough sleep(n) time so that there was only about 1.5x speed up.
He proceeded to introduce me to the "reality" of corporate programming and crush my youthful idealism by explaining that by not providing all of the optimization at once, we could claim a steady improvement in performance with every release, making management & the users happy with very little effort.
It took me quite a while to get back my enjoyment for doing programming for work, and some amount of trust for the tools written by other programmers.
Admin
A few months ago I had occasion to run low level diagnostics on some USB flash memory sticks, where it seems that a supplier faked the capacity in about 20% of the sticks. Some of them had bad blocks detected by low level diagnostics. Of course bad blocks are a separate issue from faked capacity but the same tool diagnosted both. If the stick would be reconfigured to present a lower capacity than actual then some blocks could be kept as spares like ordinary hard drives do. Anyway, when enough blocks go bad, the result isn't a brick, it's lost data.
Admin
But if you get better people, won't management just make them sleep more often to keep them in sync with the rest of the company?
Admin
I'm convinced that Snoofle was Hitler in his past life, and is now working off his karma. There's no other explanation for his Sisyphean struggle.
Admin
The application is not sleeping, it is power napping, which increases stability and offers many other benefits!
Admin
I'm pretty sure that most people can afford to live in the city. They just want to own a house, have a yard, etc... and decide that it's worth the lost time and extra travel expenses. I commuted 1 hour each way to work for a year and decided that I'll never do it again. I'll just live in a smaller place if necessary.
Admin