Click here to Skip to main content
15,899,474 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Oi! Pkfox! Pin
OriginalGriff27-May-20 2:45
mveOriginalGriff27-May-20 2:45 
QuestionGeneration, what's left? Pin
Kornfeld Eliyahu Peter26-May-20 21:04
professionalKornfeld Eliyahu Peter26-May-20 21:04 
AnswerRe: Generation, what's left? Pin
OriginalGriff26-May-20 21:15
mveOriginalGriff26-May-20 21:15 
GeneralRe: Generation, what's left? Pin
Kornfeld Eliyahu Peter26-May-20 21:45
professionalKornfeld Eliyahu Peter26-May-20 21:45 
GeneralRe: Generation, what's left? Pin
OriginalGriff26-May-20 21:51
mveOriginalGriff26-May-20 21:51 
GeneralRe: Generation, what's left? Pin
Kornfeld Eliyahu Peter26-May-20 22:01
professionalKornfeld Eliyahu Peter26-May-20 22:01 
GeneralRe: Generation, what's left? Pin
OriginalGriff26-May-20 22:09
mveOriginalGriff26-May-20 22:09 
GeneralRe: Generation, what's left? Pin
kalberts26-May-20 23:11
kalberts26-May-20 23:11 
On the other hand... Sometimes, I want to yell at youngsters who spend hours and days on proving how super clever they are to save half a microsecond on writing obfuscated code: "We are not living in the 1980s!". Some of the tuning tricks we learned in my education were obsolete before we got our degree, e.g. we evaluated at least three or four disk scheduling algorithms, assuming queues of dozens of entries, only to learn that any disk subsystem with 3+ queue length more than 5% of the time is severly overloaded. Optimizing the ordering of one or two queued entries is a waste of resources (and fortunately, disk scheduling is out of the curriculum many years ago).

There is no discussion that the "Oh, we'll just throw in more hardware" approach has gone way too far. I guess the saving of half a microsecond is a counter-reaction to that. We really should be more resources-aware, but with a thorough understanding of where the resource hogs are, and the cost of optimizing it. (E.g. obfuscation of code to save a few percent in initialization code, or optimizing a 2-element disk queue, is crazy.)

Surprisingly many youngsters have "strange" ideas about what slows down the code, usually due to lack of understanding of the underlaying mechanisms. E.g. you have an executable (with umpteen dlls) where you never use 95% of the code: The huge size of the code does not put a heavy load on RAM: The unused disk pages are never brough into memory. It does not lead to slow startup: Setting up a hundred extra page table entries is done in microseconds. ... This is trivial, but I have explained it several times to developers who know nothing about memory mapped files. Similarly, they "know" that if the disk is 99% full, it will slow down the machine. Sure: For an extremely file create/delete heavy application, it might be possible to measure, but these guys consider it a law of nature that any application will run significantly slower.

In my studies, we read a hardcover textbook on software performance and optimization, studying what is worth it. What has the most effect. Various criteria: Space or time, average or worstcase, ... This required an understanding of underlaying mechanisms (which we had obtained in earlier classes). Today, the problem is often that it is no use trying to talk with the youngsters about tuning, because they have no idea about what is going on behind the curtains.
GeneralRe: Generation, what's left? Pin
Richard MacCutchan26-May-20 22:27
mveRichard MacCutchan26-May-20 22:27 
GeneralRe: Generation, what's left? Pin
Nelek26-May-20 22:31
protectorNelek26-May-20 22:31 
GeneralRe: Generation, what's left? Pin
CPallini27-May-20 0:21
mveCPallini27-May-20 0:21 
GeneralRe: Generation, what's left? Pin
theoldfool27-May-20 2:23
professionaltheoldfool27-May-20 2:23 
GeneralRe: Generation, what's left? Pin
Kris Lantz27-May-20 3:26
professionalKris Lantz27-May-20 3:26 
GeneralRe: Generation, what's left? Pin
kalberts27-May-20 3:32
kalberts27-May-20 3:32 
GeneralRe: Generation, what's left? Pin
markrlondon28-May-20 16:23
markrlondon28-May-20 16:23 
AnswerRe: Generation, what's left? Pin
Amarnath S26-May-20 21:32
professionalAmarnath S26-May-20 21:32 
GeneralRe: Generation, what's left? Pin
Kornfeld Eliyahu Peter26-May-20 21:50
professionalKornfeld Eliyahu Peter26-May-20 21:50 
GeneralRe: Generation, what's left? Pin
Amarnath S26-May-20 21:55
professionalAmarnath S26-May-20 21:55 
GeneralRe: Generation, what's left? Pin
Richard MacCutchan26-May-20 22:31
mveRichard MacCutchan26-May-20 22:31 
AnswerRe: Generation, what's left? Pin
kalberts26-May-20 22:41
kalberts26-May-20 22:41 
GeneralRe: Generation, what's left? Pin
Nelek26-May-20 23:25
protectorNelek26-May-20 23:25 
AnswerRe: Generation, what's left? Pin
Richard MacCutchan26-May-20 22:45
mveRichard MacCutchan26-May-20 22:45 
AnswerRe: Generation, what's left? Pin
Nelek26-May-20 22:56
protectorNelek26-May-20 22:56 
GeneralRe: Generation, what's left? Pin
Kornfeld Eliyahu Peter26-May-20 23:35
professionalKornfeld Eliyahu Peter26-May-20 23:35 
AnswerRe: Generation, what's left? Pin
den2k8826-May-20 23:05
professionalden2k8826-May-20 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   459 votes