Click here to Skip to main content
15,900,816 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: code comments Pin
Clifford Nelson27-Jul-16 7:39
Clifford Nelson27-Jul-16 7:39 
PraiseRe: code comments Pin
TheGreatAndPowerfulOz27-Jul-16 7:49
TheGreatAndPowerfulOz27-Jul-16 7:49 
GeneralRe: code comments Pin
Clifford Nelson27-Jul-16 10:23
Clifford Nelson27-Jul-16 10:23 
GeneralRe: code comments Pin
kalberts28-Jul-16 2:49
kalberts28-Jul-16 2:49 
GeneralRe: code comments Pin
Clifford Nelson28-Jul-16 4:55
Clifford Nelson28-Jul-16 4:55 
GeneralRe: code comments Pin
kalberts28-Jul-16 5:20
kalberts28-Jul-16 5:20 
GeneralRe: code comments Pin
Clifford Nelson28-Jul-16 5:26
Clifford Nelson28-Jul-16 5:26 
GeneralRe: code comments Pin
kalberts28-Jul-16 6:02
kalberts28-Jul-16 6:02 
Maybe I misunderstand what you are saying: Fortran always handled arrays, at least from Fortran 2, with 1-based indexing.

One fun detail: This 16 bit minimachine (that is, the size of a full height fridge) I was working with in the early 1980s used a 3-word (i.e. 48 bits) floating point format. The machine had an instruction called MIX3, which decremented the value in the accumulator and then multiplying by 3. MIX3 was tailor made for changing the "logicial" (1-based, 48 bits) Fortran index into a "physical" (0-based, 16-bit word) memory address. If you worry about tne "multiplication" being time consuming: It really was an addition of the accumulator, shifted one bit up, to itself, so it was faster than an ordinary add (which required an operand access).

Yes, other languages were available - Pascal dates back to 1970, and honestly: From a language design point of view, it is far, far better than the entire C group of languages. (However, it failed in system programming ascpects; a standard Pascal program resided in a single source file. If the standard had included modularization concepts, it should have beaten C to the ground...).

What kept Fortran up for so long was "the same old story": Legacy code. Fortran IV was The Standard for offering open source code (open source did NOT start with Linux!). ACM offered a huge collection of several thousand Fortran IV functions for every imaginable mathematical, engineering, or otherwise scientific, operation. I even worked on a machine whose operating system was written in Fortran (in the days when it was considered 'impossible' to write an OS in anything but assembler).

I think of old Fortran with no regrets or complaints, and enjoy all those jokes and ways of speech that came out of Fortran. Like "You can program Fortran in any programming language" (to refer to unstructured, bad code). Or "God is real, unless explictly declared integer". And then the beauty from a Xerox Fortran programming manual: "The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change".
GeneralRe: code comments Pin
Clifford Nelson28-Jul-16 14:51
Clifford Nelson28-Jul-16 14:51 
GeneralRe: code comments Pin
kalberts28-Jul-16 21:34
kalberts28-Jul-16 21:34 
GeneralRe: code comments Pin
Clifford Nelson29-Jul-16 5:48
Clifford Nelson29-Jul-16 5:48 
GeneralRe: code comments Pin
kalberts28-Jul-16 2:21
kalberts28-Jul-16 2:21 
GeneralRe: code comments Pin
Richard Deeming27-Jul-16 7:55
mveRichard Deeming27-Jul-16 7:55 
GeneralRe: code comments Pin
Tom Deketelaere27-Jul-16 8:12
professionalTom Deketelaere27-Jul-16 8:12 
GeneralRe: code comments Pin
Eric Whitmore28-Jul-16 1:18
Eric Whitmore28-Jul-16 1:18 
GeneralRe: code comments Pin
Cloud William28-Jul-16 2:14
Cloud William28-Jul-16 2:14 
GeneralRe: code comments Pin
kalberts28-Jul-16 2:38
kalberts28-Jul-16 2:38 
GeneralRe: code comments Pin
TheGreatAndPowerfulOz28-Jul-16 5:54
TheGreatAndPowerfulOz28-Jul-16 5:54 
GeneralRe: code comments Pin
agolddog28-Jul-16 3:36
agolddog28-Jul-16 3:36 
GeneralRe: code comments Pin
kalberts28-Jul-16 5:28
kalberts28-Jul-16 5:28 
GeneralRe: code comments Pin
TheGreatAndPowerfulOz28-Jul-16 6:00
TheGreatAndPowerfulOz28-Jul-16 6:00 
GeneralRe: code comments Pin
TheGreatAndPowerfulOz28-Jul-16 5:59
TheGreatAndPowerfulOz28-Jul-16 5:59 
GeneralRe: code comments Pin
Member 844862228-Jul-16 3:47
Member 844862228-Jul-16 3:47 
GeneralRe: code comments Pin
kalberts28-Jul-16 5:23
kalberts28-Jul-16 5:23 
JokeRe: code comments Pin
A. A. J. Rodriguez28-Jul-16 8:50
A. A. J. Rodriguez28-Jul-16 8:50 

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