Re: Declaration to get 8-bit (or 16-bit) integer?



Richard Maine wrote:

glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

(snip regarding the original intent of Fortran)

As original as it gets, for the 704 they did sign magnitude
16 bit integer arithmetic in 36 bit words. Characters were
six bits each. Bytes and 8 bit character sets hadn't been
invented yet. The card reader read cards a row at a time
into two 36 bit words, such that only 72 columns were read.

That is as close to original intent as I could come up with.

That, however, sounds like a particular implementation - not "the
Fortran language". Those are two completely different subjects. You see
any hint of evidence that the intent of "the Fortran language" was to be
designed around that machine (or any other particular machine)? I don't.
I see rather strong evidence to the contrary.

Not having been born at the time, I don't have any direct evidence.
From reading computer history books, though, most systems at that
time were designed for what they had on hand, with very little planning
for future machines. Much of Fortran was designed around the 704.

As someone else mentioned, the arithmetic IF.

Five digit statement numbers, originally 1 to 32767, extended later.

The 72 columns, two words on the 704 which read cards one row at a time.

DO loops that couldn't start at zero, only allowed positive increments,
and didn't guarantee not to execute if the final value was lower than the initial value.

A maximum of three subscripts on arrays, with restrictions on the allowed expressions for subscripts.

I/O statements specific to the devices (READ INPUT TAPE, WRITE DRUM).

Sense light set/test.

Restrictions on Assigned GOTO in DO loops.

Carriage control characters specific to certain IBM printers.
(The carriage control '1' is a special case of 'skip to channel'
which allows 1 through 9.

On the other hand, there are many features which were new at the
time, and extended well to newer machines.

One 'obvious' feature that it seems Fortran was the first to
use is variable names of more than one character, going
against the mathematical tradition.

-- glen

.



Relevant Pages

  • Re: Convert num to fixed length string
    ... Matlab allows to use the FORMAT. ... it is quite different from Fortran language because of the ... no-completion of the space characters at the left of the number. ...
    (comp.soft-sys.matlab)
  • Re: Argh! General frustration and steam-letting
    ... The rest of the Black Flag stories are all still entirely in my head. ... There are always the same 54 cards in the deck. ... It depends on which game, and I have not really learned any of them. ... Is that nothing he could say, or nothing inside the characters? ...
    (rec.arts.sf.composition)
  • Re: How do you write?
    ... I have a general plot idea and characters, or a scene that gives solid hints of those. ... Then I go on until I hit another snag, revise the outline, go forward until I'm done and then revise the whole thing to integrate the changes and detail support. ... I write fantasy/SF mysteries, so I have to keep track of clues, red herrings, witnesses, character appearances, and so on pretty meticulously and the multi-layered outline works well for me. ... Then I look it over and determine if I need to do flashbacks or inserts and flag those with green cards and move the whole sequence as a block of cards to the new location. ...
    (rec.arts.sf.composition)
  • Re: Length of lines in html source?
    ... I have been taken to task about the length of lines in the source html ... The IBM punched card was 80 characters wide. ... broken onto two or more cards. ... window is maximized but with a toolbar on the right. ...
    (comp.infosystems.www.authoring.html)
  • Re: 4th Edition Missed an Oppurtunity?
    ... and they would turn them sideways when they used them. ... Table space has always been at a premium in any games I've played, ... on cards - for each of the classes that you get a miniature for. ... updating or planning their characters at the table. ...
    (rec.games.frp.dnd)