Click here to Skip to main content
15,897,891 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: When you are dead... Pin
DRHuff17-Oct-19 9:05
DRHuff17-Oct-19 9:05 
GeneralRe: When you are dead... Pin
BillWoodruff17-Oct-19 19:03
professionalBillWoodruff17-Oct-19 19:03 
GeneralRe: When you are dead... Pin
DRHuff18-Oct-19 4:52
DRHuff18-Oct-19 4:52 
GeneralRe: When you are dead... Pin
Nelek18-Oct-19 1:16
protectorNelek18-Oct-19 1:16 
GeneralRe: When you are dead... Pin
User 991608018-Oct-19 4:31
professionalUser 991608018-Oct-19 4:31 
GeneralRe: When you are dead... Pin
BillWoodruff18-Oct-19 15:08
professionalBillWoodruff18-Oct-19 15:08 
GeneralRe: When you are dead... Pin
dandy7220-Oct-19 4:23
dandy7220-Oct-19 4:23 
GeneralOrder of element processing Pin
kalberts17-Oct-19 6:09
kalberts17-Oct-19 6:09 
The story listed in Daily news yesterday: Researchers find bug in Python script may have affected hundreds of studies[^] raised discussions in the coffee corner: How could numerical results depend on in which order files were processed? It is not immediately obvious.

My guess: File names reflected some significant of ordering of, say, observations that gradually focused on some target, similar to a mathematical series expansion. When summing a long series, you start from the "small" end, not the "big" end, or you might loose a large number of small values that are insignificant one by one, but the sum of thousands of them can be quite significant. Adding elements in random order can loose small values.

When traversing an array by a foreach, you expect to get the elements by increasing indexes. Assume that there then comes a new implmentation processing all array elements simultaneously on a highly parallell machine (assume that the handling of each element is independent of the others, no locking issues). Partial results are returned in arbitrary order. This would be similar to processing files in arbitrary order.

A few (5-10?) years ago, I read a description of a new language that makes it explicit that with a foreach, or other set/array operation, the runtime system may process all elements in parallel if several processing units are available. (The compiler have to verify that there is access conflicts.) You can NOT rely on a foreach being sequential, or that the same modification added to all elements of an array is done row-wise or column-wise.

But which language was this about? All I remember is that it came from some large actor, such as Google. In today's description of Go on Wikipedia, I do not see this mentioned. Did I read about a different language? Or did I read some paper that was a proposal for what became Go, but this part of it was dropped from the language defintion? I found no programming language description in Wikipedia that matched my memory.
GeneralRe: Order of element processing Pin
PIEBALDconsult17-Oct-19 6:30
mvePIEBALDconsult17-Oct-19 6:30 
GeneralRe: Order of element processing Pin
kalberts17-Oct-19 9:50
kalberts17-Oct-19 9:50 
GeneralRe: Order of element processing Pin
ZurdoDev17-Oct-19 11:05
professionalZurdoDev17-Oct-19 11:05 
GeneralRe: Order of element processing Pin
Marc Clifton17-Oct-19 7:53
mvaMarc Clifton17-Oct-19 7:53 
GeneralRe: Order of element processing Pin
kalberts17-Oct-19 10:22
kalberts17-Oct-19 10:22 
GeneralRe: Order of element processing Pin
Dar Brett17-Oct-19 17:12
Dar Brett17-Oct-19 17:12 
GeneralRe: Order of element processing Pin
kalberts17-Oct-19 19:30
kalberts17-Oct-19 19:30 
GeneralRe: Order of element processing Pin
Stuart Dootson18-Oct-19 0:48
professionalStuart Dootson18-Oct-19 0:48 
GeneralRe: Order of element processing Pin
giulicard17-Oct-19 21:41
giulicard17-Oct-19 21:41 
GeneralRe: Order of element processing Pin
Gerry Schmitz18-Oct-19 3:03
mveGerry Schmitz18-Oct-19 3:03 
QuestionRe: Order of element processing Pin
Mark Smeltzer18-Oct-19 20:38
Mark Smeltzer18-Oct-19 20:38 
GeneralRe: Order of element processing Pin
obermd18-Oct-19 3:15
obermd18-Oct-19 3:15 
GeneralRe: Order of element processing Pin
kalberts18-Oct-19 3:21
kalberts18-Oct-19 3:21 
GeneralThought of the Day Pin
OriginalGriff17-Oct-19 4:51
mveOriginalGriff17-Oct-19 4:51 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Oct-19 5:21
W Balboos, GHB17-Oct-19 5:21 
GeneralRe: Thought of the Day Pin
RickZeeland17-Oct-19 6:17
mveRickZeeland17-Oct-19 6:17 
GeneralRe: Thought of the Day Pin
Gary Wheeler17-Oct-19 6:39
Gary Wheeler17-Oct-19 6:39 

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   333 votes