GEORGE (programming language)
GEORGE (General Order Generator) is a programming language invented by Charles Leonard Hamblin in 1957.[1] It was designed around a push-down pop-up stack for arithmetic operations, and employed reverse Polish notation.[src] The language included loops, subroutines, conditionals, vectors, and matrices.[src]
GEORGE (General Order Generator) is a programming language invented by Charles Leonard Hamblin in 1957.[1] It was designed around a push-down pop-up stack for arithmetic operations, and employed reverse Polish notation.[src] The language included loops, subroutines, conditionals, vectors, and matrices.[src] ==Description== Algebraic expressions were written in reverse Polish notation; thus, a + b was written a b + , and similarly for the other arithmetic operations of subtraction, multiplication, and division.[src] The algebraic expression ax^2 + bx + c was written a x dup × × b x × + c + , where ' dup ' meant 'duplicate the value'.[src] Following the reverse Polish form, an assignment statement to evaluate the formula y = ax^2 + bx + c was written as a x dup × × b x × + c + (y) .[src] The computer evaluated the expression as follows: the values of a , then x , were pushed onto the top of the accumulator stack; ' dup ' caused a copy of the top-most value ( x ) to be pushed onto the top of the accumulator stack; Multiply ( × ) caused the top two values, namely, x and x , to be removed (popped) and multiplied, returning the product to the top of the accumulator stack.[src] The second multiply ( × ) then caused the top two values on the stack (namely, a and x**2 ) to be popped and multiplied, and the product ( a×x**2 ) to be pushed onto the top of the accumulator stack.[src] And so on the remaining components of the expression.[src] The final operation, namely ( y ), returned the value of the expression to storage without changing the status of the accumulator stack.[src] Assuming that the value on the top of the accumulator stack was not required immediately, it would be removed (cleared) by using the operator ( ; ).[src] The following program reads in eight values and forms their sum: 0, 1, 8 rep (j) R + ] (P) The first line initialises the sum by pushing the value zero onto the top of the accumulator stack.[src] The second line introduces a loop, is spoken as "for 1 to 8 repeat for j", and is terminated by the square bracket.[src] In the third line, R causes one number to be read in and pushed onto the top of the accumulator stack, and the plus sign (+) causes that value to be added to the (partial) sum, leaving only the partial sum on the top of the accumulator stack.[src] After the loop terminates, the (P) causes the final sum to be punched on a card.[src] Manipulation of vectors and matrices requires subscript notation.[src] In GEORGE, the subscript(s) preceded the vector or matrix name.[src] Thus A(j) was written j | A .[src] The following program reads in vector a of 10 values, then forms the squares of those values, and finally prints those values.[src] 1, 10 R1 (a) 1, 10 rep (j) j | a dup * j | (a) ; ] 1, 10 P1 (a) In the program, the first line is a vector read that reads in the ten values into a(1) through a(10).[src] The second line introduces a loop to run through the ten values of j.[src] The third line fetches a(j), duplicates it, multiplies those two values giving the square, and then stores it in a(j).[src] Note the semicolon (;), which clears (or cancels) the top entry in the accumulator stack.[src] Were this not done, the accumulator would gradually fill up with the squares of the values.[src] The final line is a vector punch (i.e., print) to write out the ten squares.[src] The above GEORGE coding table assisted in transcribing a program onto punch cards.[src] Conditional operations were written as jumps, as follows: if a > 0 go to 5 (which transfers to label 5 if a is greater than zero) would be written 0 a > 5 ↑ Label 5 was indicated by including *5 elsewhere in the program.[src] Unconditional transfers were written 5↑ Subroutine calls were made with the down arrow, .g., to call subroutine labelled 17, write 17↓, where the label 17 was encoded using column 3 of the above table.[src] ==Historical note== In the first version running by May 1957 on an English Electric DEUCE, all values were stored in binary fixed-point form in a 32-bit word, with 16 binary places.[src] In the second version introduced by 1958, values were held in floating-point form, with one value per word: 22 bits for the mantissa and 10 bits for the exponent.[src] Some form of coding table was needed because the printing equipment of the time provided only 26 letters of the alphabet, a decimal point, plus sign, minus sign, and slash.[src] ==References==[src]
35 sentences · 35 cited inline · 3 references stored
References
- GEORGE IA and II: A semi-translation programming scheme for DEUCE: Programming and Operation . · retrieved 2026-03-11 · rev 1343130810
Cite this reference
MLA "GEORGE IA and II: A semi-translation programming scheme for DEUCE: Programming and Operation ." 2026-03-11. https://en.wikipedia.org/w/index.php?oldid=1343130810. Accessed 25 November 2026.
Chicago "GEORGE IA and II: A semi-translation programming scheme for DEUCE: Programming and Operation ." 2026-03-11. https://en.wikipedia.org/w/index.php?oldid=1343130810.
APA encyclopegia.org. (2026). GEORGE IA and II: A semi-translation programming scheme for DEUCE: Programming and Operation . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1343130810
- cs.man.ac.uk Resurrection (magazine) . Resurrection (magazine) . · retrieved 2026-03-11 · rev 1343130810
Cite this reference
MLA "cs.man.ac.uk Resurrection (magazine) . Resurrection (magazine) ." cs. 2026-03-11. https://en.wikipedia.org/w/index.php?oldid=1343130810. Accessed 25 November 2026.
Chicago "cs.man.ac.uk Resurrection (magazine) . Resurrection (magazine) ." cs. 2026-03-11. https://en.wikipedia.org/w/index.php?oldid=1343130810.
APA cs. (2026). cs.man.ac.uk Resurrection (magazine) . Resurrection (magazine) . Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1343130810
- web.archive.org Resurrection (magazine) . Resurrection (magazine) . (archived copy) · retrieved 2026-03-11 · rev 1343130810
Cite this reference
MLA "web.archive.org Resurrection (magazine) . Resurrection (magazine) . (archived copy)." web. 2026-03-11. https://en.wikipedia.org/w/index.php?oldid=1343130810. Accessed 25 November 2026.
Chicago "web.archive.org Resurrection (magazine) . Resurrection (magazine) . (archived copy)." web. 2026-03-11. https://en.wikipedia.org/w/index.php?oldid=1343130810.
APA web. (2026). web.archive.org Resurrection (magazine) . Resurrection (magazine) . (archived copy). Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1343130810
Cite this article
MLA
"GEORGE (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/george-programming-language. Accessed 25 November 2026.
Chicago
"GEORGE (programming language)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/george-programming-language.
APA
encyclopegia.org. (2026). GEORGE (programming language). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/george-programming-language
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON