Click here to Skip to main content
15,887,596 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.

 
Generalsentry.io - Amazing! Pin
Marc Clifton25-Jan-24 2:55
mvaMarc Clifton25-Jan-24 2:55 
GeneralRe: sentry.io - Amazing! Pin
Jeremy Falcon25-Jan-24 3:40
professionalJeremy Falcon25-Jan-24 3:40 
GeneralRe: sentry.io - Amazing! Pin
Marc Clifton25-Jan-24 4:35
mvaMarc Clifton25-Jan-24 4:35 
GeneralRe: sentry.io - Amazing! Pin
Jeremy Falcon25-Jan-24 6:51
professionalJeremy Falcon25-Jan-24 6:51 
GeneralRe: sentry.io - Amazing! Pin
Jeremy Falcon25-Jan-24 3:44
professionalJeremy Falcon25-Jan-24 3:44 
GeneralRe: sentry.io - Amazing! Pin
Marc Clifton25-Jan-24 4:34
mvaMarc Clifton25-Jan-24 4:34 
GeneralRe: sentry.io - Amazing! Pin
Gary R. Wheeler25-Jan-24 12:41
Gary R. Wheeler25-Jan-24 12:41 
GeneralRe: sentry.io - Amazing! Pin
trønderen25-Jan-24 7:21
trønderen25-Jan-24 7:21 
In my student days, many moons ago, the U had a huge Univac 1110 mainframe, running both research projects and jobs for customers in the industry. Around 1978-80, not every establishment could afford their own mainframe!

Every now and then the computing center published a newsletter. One of the stories reported that they had counted the number of divisions by zero, and the result was shocking: Several million every day! (And remember: Even a mainframe of 1976 vintage was magnitudes slower than today's average PC.)

The next issue of the newsletter carried a letter from one of the industry users, explaining that in the matrix methods they were using, elements were frequently 0. The algorithm did not consider the 0-positions, so whatever showed up in those positions later was ignored. However, when they performed general matrix operations, the zero-elements turned up as divisors - but the result was not carried on anyway. Adapting the general matrix library to test for zero and give that case special handling, would have slowed significantly down. Replacing the zeros in the matrix by e.g. 1 (division by 1 does not change a value) was impossible, as later ignoring the zero positions depended on the value being zero.

So, generating a million or two divisions by zero was, by far, the fastest way to run their job.

Even in modern times, I have programmed in ways that says: Try to do operation X, but don't worry if it fails. In other words: ignore exceptions, simply terminate the operation. Some times, that is an appropriate (non)handling of it. (I won't be surprised if someone make a protesting scream Smile | :) )

In the old U1110 days, the CPUs had far less prefetch, pipelining, speculative execution, ... So the cost of interrupting the linear instruction flow was far less costly on today's CPUs, even if you decided to handle the exception. I don't know for sure, but suspect that on modern CPUs, hardware detected exceptions have a cost even if there is no handling for it. (For software exceptions, there certainly is!) So maybe the 'just ignore a few million divisions by zero' would have a higher (relative) cost today than 45 years ago.

Religious freedom is the freedom to say that two plus two make five.

PraiseYou know what feels good? Pin
honey the codewitch25-Jan-24 1:04
mvahoney the codewitch25-Jan-24 1:04 
GeneralRe: You know what feels good? Pin
Paul612425-Jan-24 1:36
Paul612425-Jan-24 1:36 
GeneralRe: You know what feels good? Pin
Gary R. Wheeler25-Jan-24 2:37
Gary R. Wheeler25-Jan-24 2:37 
GeneralRe: You know what feels good? Pin
Amarnath S25-Jan-24 1:55
professionalAmarnath S25-Jan-24 1:55 
GeneralRe: You know what feels good? Pin
CPallini25-Jan-24 1:57
mveCPallini25-Jan-24 1:57 
JokeRe: You know what feels good? Pin
PIEBALDconsult25-Jan-24 4:54
mvePIEBALDconsult25-Jan-24 4:54 
GeneralRe: You know what feels good? Pin
honey the codewitch25-Jan-24 5:06
mvahoney the codewitch25-Jan-24 5:06 
GeneralRe: You know what feels good? Pin
Gary R. Wheeler26-Jan-24 8:41
Gary R. Wheeler26-Jan-24 8:41 
GeneralRe: You know what feels good? Pin
trønderen26-Jan-24 10:08
trønderen26-Jan-24 10:08 
GeneralRe: You know what feels good? Pin
stheller231-Jan-24 9:41
stheller231-Jan-24 9:41 
GeneralMicrosoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
Daniel Pfeffer24-Jan-24 23:24
professionalDaniel Pfeffer24-Jan-24 23:24 
GeneralRe: Microsoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
den2k8824-Jan-24 23:28
professionalden2k8824-Jan-24 23:28 
GeneralRe: Microsoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
Nelek25-Jan-24 2:08
protectorNelek25-Jan-24 2:08 
GeneralRe: Microsoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
den2k8825-Jan-24 2:16
professionalden2k8825-Jan-24 2:16 
GeneralRe: Microsoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
OriginalGriff25-Jan-24 3:31
mveOriginalGriff25-Jan-24 3:31 
GeneralRe: Microsoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
den2k8825-Jan-24 4:37
professionalden2k8825-Jan-24 4:37 
GeneralRe: Microsoft goes atomic — World's most valuable company just hired a director of nuclear development acceleration to help power its very own AI revolution Pin
OriginalGriff25-Jan-24 5:33
mveOriginalGriff25-Jan-24 5:33 

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.