- MAD (programming language)
MAD Paradigm(s) Imperative Appeared in 1959 Developer Galler, Arden, and Graham Major implementations IBM 704, IBM 7090, UNIVAC 1108, Philco 210-211, IBM S/360, and IBM S/370 Dialects MAD, MAD/I, GOM Influenced by IAL, ALGOL 58 OS UMES, MTS, CTSS, others
MAD (Michigan Algorithm Decoder) is a programming language and compiler for the IBM 704 and later the IBM 709, IBM 7090, UNIVAC 1107, UNIVAC 1108, Philco 210-211, and eventually the IBM S/370 mainframe computers. Developed in 1959 at the University of Michigan by Bernard Galler, Bruce Arden and Robert M. Graham, MAD is a variant of the International Algebraic Language (IAL). It was widely used to teach programming at colleges and universities during the 1960s and played a minor role in the development of CTSS, Multics, and the Michigan Terminal System computer operating systems.
The archives at the Bentley Historical Library of the University of Michigan contain reference materials on the development of MAD and MAD/I, including three linear feet of printouts with hand-written notations and original printed manuals.
MAD, MAD/I, and GOM
There are three MAD compilers:
- Original MAD, the compiler developed in 1959 at the University of Michigan for the IBM 704 and later the IBM 709 and IBM 7090 mainframe computers running the University of Michigan Executive System (UMES) and the Compatible Time-Sharing System (CTSS) operating systems. In the mid-1960s MAD was ported at the University of Maryland to the UNIVAC 1108. Versions of MAD were also available for the Philco 210-211 and UNIVAC 1107.
- MAD/I, an "extended" version of MAD for the IBM S/360 series of computers running under the Michigan Terminal System (MTS). Work on the new compiler started in 1965 as part of the ARPA sponsored CONCOMP project at the University of Michigan. As work progressed it gradually became clear that MAD/I was a new language independent of the original 7090 version of MAD.
- GOM (Good Old MAD), a reimplementation of the original 7090 MAD for the IBM S/370 series of mainframe computers running the Michigan Terminal System (MTS). GOM was created in the early 1980s by Don Boettner at the University of Michigan Computing Center.
MAD is a variant of the International Algebraic Language (IAL). IAL is the original name for what eventually became ALGOL 58. While MAD was motivated by ALGOL 58, it does not resemble ALGOL 58 in any significant way.
Programs written in MAD included MAIL, RUNOFF, one of the first text processing systems, and several other utilities all under Compatible Time-Sharing System(CTSS). Work was done on a design for a MAD compiler for Multics, but it was never implemented.
- I think that the most fun I had programming was a summer job at Project MAC at MIT in the summer of 1966, where I worked on a program that created a job tape for the brand new GE 645 in the earliest days of Multics. I was writing in MAD, which was much easier and more pleasant than the FORTRAN and COBOL that I had written earlier, and I was using CTSS, the first time-sharing system, which was infinitely easier and more pleasant than punch cards.
MAD was quite fast compared to some of the other compilers of its day. Because a number of people were interested in using the FORTRAN language and yet wanted to obtain the speed of the MAD compiler, a system called MADTRAN (written in MAD) was developed. MADTRAN was simply a translator from FORTRAN to MAD, which then produced machine code. MADTRAN was distributed through SHARE.
MAD/I has a syntactic structure similar to ALGOL 60 together with important features from the original MAD and from PL/I. MAD/I was designed as an extensible language. It was available for use under MTS and provided many new ideas which made their way into other languages, but MAD/I compilations were slow and MAD/I never extended itself into widespread use when compared to the original 7090 MAD.
GOM is essentially the 7090 MAD language modified and extended for the 360/370 architecture with some judicious tailoring to better fit current programming practices and problems. The MTS Message System was written in GOM.
MAD, MAD Magazine, and Alfred E. Neuman
In a pre-release version of the original MAD, as a reference to MAD's namesake, MAD magazine, when a program contained too many compile time errors the compiler would print a full-page picture of Alfred E. Neuman using ASCII art. The caption read, "See this man about your program--He might want to publish it. He never worries--but from the looks of your program, you should." This feature was not included in the final official version.
And Bernie Galler remembers:
- By the time we designed the language that we thought would be worth doing and for which we could do a compiler, we couldn't call it Algol any more; it really was different. That's when we adopted the name MAD, for the Michigan Algorithm Decoder. We had some funny interaction with the Mad Magazine people, when we asked for permission to use the name MAD. In a very funny letter, they told us that they would take us to court and everything else, but ended the threat with a P.S. at the bottom - "Sure, go ahead." Unfortunately, that letter is lost.
"Hello, world" example
The "hello, world" example program prints the string "Hello, world" to a terminal or screen display.
PRINT FORMAT HELLOW VECTOR VALUES HELLOW=$13h0Hello, world*$ END OF PROGRAM
The first character of the line is treated as logical carriage control, in this example the character zero which causes a double spaced line to be printed.
Or, if entering all of the keywords at your keypunch is too much work, you can use contractions and the compiler will expand them in the listing:
P'T HELLOW V'S HELLOW=$13h0Hello, world*$ E'M
MAD programs are a series of statements written on punched cards, generally one statement per card, although a statement can be continued to multiple cards. Columns 1-10 contains an optional statement label, comments or remarks are flagged using the letter "R" in column 11, and columns 73-80 are unused and could contain a sequence identifier. Spaces are not significant anywhere other than within character constants. For GOM input is free form with no sequence field and lines may be up to 255 characters long; lines that start with an asterisk (*) are comments; and lines that start with a plus-sign (+) are continuation lines.
Variable names, function names, and statement labels have the same form, a letter followed by zero to five letters or digits. Function names end with a period. All names can be subscripted (the name followed by parentheses, with multiple subscripts separated by commas). For GOM names may be up to 24 characters long and may include the underscore (_) character.
Few keywords in the language are reserved words since since most are longer than six letters or are surrounded by periods. There is a standard set of abbreviations which can be used to replace the longer words. These consist of the first and last letters of the keywords with an apostrophe between them, such as W'R for WHENEVER and D'N for DIMENSION.
MAD uses the term "mode" for its data types. Five basic modes are supported:
- Integer written with or without a scale factor (1, +1, -1, 1K10, 1K) or as octal constants (to 7777777777777K);
- Floating Point written with or without an exponent (0., 1.5, -0.05, +100.4, -4., .05E-2, -.05E2, 5E02, 5.E2);
- Boolean (1B for true and 0B for false);
- Statement Label, and
- Function Name written as a name followed by a period (SQRT.).
The mode of a constant can be redefined by adding the character M followed by a single digit at the end of the constant, where 0 indicates floating point, 1 integer, 2 boolean, 3 function name, and 4 statement label.
For GOM six additional modes are added: CHARACTER, SHORT INTEGER, BYTE INTEGER, LONG INTEGER, POINTER, and DYNAMIC RECORD.
Alphabetic or character constants are stored as integers and written using the dollar sign as a delimiter ($ABCDEF$) with double dollar-signs used to enter a true dollar sign ($$$.56$ is 56 cents). Strings longer than six characters are represented using arrays.
Arrays and matrices
- There is no limit on the number of dimensions.
- Negative and zero as well as floating-point subscripts are allowed.
- Matrices are storied in consecutive memory locations in the order determined by varying the rightmost subscript first.
- Matrices may be referenced using a subscript for each dimension, NAME(s1,s2,s3), or using a single subscript, NAME(s1).
- Input-output lists, VECTOR VALUES statements, and some subroutines allow the use of block notation, which has the form A,...,B or A...B, which is a reference to the entire region from A to B. inclusive. In terms of a vector, A(1)...A(N) would be A(1), A(2), A(3), ..., A(N).
- There are facilities that allow changing dimensions at run-time; permitting the programmer to vary the location of the initial element in an array within the overall block which has been set aside for the array; and allowing an arbitrary storage mapping to be specified.
Operator definition and redefinition
One of the most interesting features in MAD is the ability to extend the language by redefining existing operators, defining new operators, or defining new data types (modes). The definitions are made using MAD declaration statements and assembly language mnemonics included following the declaration up to the END pseudo-instruction that implement the operation.
- DEFINE BINARY OPERATOR defined-op, PRECEDENCE rank existing-op MODE STRUCTURE mode-options
- DEFINE UNARY OPERATOR defined-op, PRECEDENCE rank existing-op MODE STRUCTURE mode-options
- MODE STRUCTURE mode-no = mode-no existing-op mode-no
- MODE STRUCTURE mode-no = mode-no existing-op mode-no SAME SEQUENCE AS mode-no existing-op mode-no
- rank is one of SAME AS, LOWER THAN, or HIGHER THAN; and
- mode-options are the options that appear on the MODE STRUCTURE statement.
Three pre-defined packages of definitions (MATRIX, DOUBLE PRECISION, and COMPLEX) are available for inclusion in MAD source programs using the INCLUDE statement.
- INCLUDE package
- ALGOL 58
- ALGOL 60
- ^ Alt, Franz (1967). Advances in Computers. Academic Press. pp. 143. ISBN 0120121042.
- ^ Technical Memos, University of Michigan Computing Center publications, 1965-1999
- ^ Technical Reports, University of Michigan Computing Center publications, 1965-1999
- ^ Topical File 1960-1986, University of Michigan Computing Center records, 1952-1996
- ^ MAD (Michigan Algorithm Decoder) 1960-1979, University of Michigan Computing Center records, 1952-1996
- ^ A User's Reference Manual For The Michigan Algorithm Decoder (MAD) For the IBM 7090, Digital Computer Laboratory, Graduate College, University of Illinois, 1962, 221 pages
- ^ a b The Michigan Algorithm Decoder (The MAD Manual), Bruce W. Arden, Revised Edition 1966
- ^ a b c UNIVAC and ALGOL by George Gray in Unisys History Newsletter, Volume 6, Number 2 (June 2002), Georgia Tech
- ^ a b The MAD/I Manual, Bolas, Springer, and Srodawa, CONCOMP Technical Report 32, 1970, University of Michigan, Ann Arbor, 194 pages
- ^ MTS Volume 2: Public File Descriptions, University of Michigan Computing Center, 1990, p. 14
- ^ a b c d GOM Manual, Don Boettner, University of Michigan Computing Center, Ann Arbor, June 1989
- ^ a b c Computer Languages - Principles and History, Sammet, Jean E., Englewood Cliffs, N.J., Prentice-Hall 1969, p. 205
- ^ In August 2010 when asked about Jean's Sammet's statement that "MAD does not resemble ALGOL 58 in any significant way", Bruce Arden wrote: "Regarding Jean Sammet, she may have conflated the two versions of IAL (58 and 60). Unlike the later version, the 58 version said nothing about what words (or language) should be used to identify conditional and transfer statements, which led for parsing reasons to words like WHENEVER. Also there were some additional features in MAD that went beyond the 58 specs."
- ^ Documentation and Source for Early Electronic Mail and Messaging, Tom Van Vleck
- ^ a b "A Career Interview with Bernie Galler", Galler and Galler, pp 22-33, IEEE Annals of the History of Computing, 23(1) January 2001
- ^ Glossary of Multics acronyms and terms by Tom Van Vleck
- ^ An Interview with Brian Kernighan: Breeding Little Languages, by Allen Noren, 2009
- ^ Shneiderman, Ben; Plaisant, Catherine (2004-05-07). Designing the user interface (4th edition ed.). Addison Wesley. ISBN 978-0321197863.
- An Abbreviated description of the MAD compiler language, Fernando J. Corbató, Jerome H. Saltzer, Neil Barta, and Thomas N. Hastings, M.I.T. Computation Center Memorandum CC-213, June, 1963.
- CLSYS, a program to facilitate the use of the MAD translator for large (class-size) batches, Jerome H. Saltzer, M.I.T. Computation Center Memorandum CC-204. February, 1963.
- A Computer Primer for the Mad Language, Elliott Irving Organick, 1961.
- Internal organization of the MAD translator, Arden, B. W., Galler, B. A. and Graham, R. M., pp. 28–31, CACM Volume 4 No. 1 (Jan 1961)
- An Introduction To Algorithmic Methods Using The MAD Language, Alan B. Marcovitz and Earl J. Schweppe, Macmillan, 1966.
- An Introduction to Digital Computers and the MAD Language, Brice Carnahan, University of Michigan.
- The Language of Computers, Bernard A. Galler, University of Michigan, McGraw-Hill, 1962.
- MAD at Michigan: its function & features, Arden, B. W., Galler, B. A., and Graham, R. M., pp27–28, Datamation, Volume 7 No. 12 (Dec 1961)
Wikimedia Foundation. 2010.
Look at other dictionaries:
SLIP (programming language) — SLIP is a list processing computer programming language, invented by Joseph Weizenbaum in the 1960s. The name SLIP stands for Symmetric LIst Processor. It was first implemented as an extension to the Fortran programming language, and later… … Wikipedia
MAD — may refer to:* Anger * Madness, the state of being irrational or suffering from mental illness * Mad (magazine) , an American humor magazine and its various spinoffs: ** MADtv , a sketch comedy television series ** Mad Magazine Card Game ** The… … Wikipedia
Mad at the World — was formed in 1987 in Southern California by brothers Roger and Randy Rose. Few Christian bands have enjoyed the longevity and underground critical acclaim of Mad at the World (MATW). From the day mailman and lead singer Roger Rose stuck a tape… … Wikipedia
Mad Men — For other uses, see Mad Man (disambiguation). Mad Men Title card Genre Period drama Created by … Wikipedia
Mad Money — Infobox Television show name = Mad Money with Jim Cramer caption = Logo for the Mad Money television show genre = Talk show, investment creator = director = developer = presenter = Jim Cramer voices = narrated = theme music composer = opentheme … Wikipedia
List of programming languages — Programming language lists Alphabetical Categorical Chronological Generational The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in… … Wikipedia
List of English-language Canadian television series — This is a list of English language Canadian television series. For Canadian French language shows, please see List of French language Canadian television series.0 9* 49th Main Soap Opera * 1 800 Missing Drama/Action * 100 Huntley Street… … Wikipedia
ARB (GPU assembly language) — ARB OpenGL Assembly Language is a low level shading language. It was created by the OpenGL ARB to standardize GPU instructions controlling the hardware graphics pipeline.HistoryTexas Instruments created the first programmable graphics processor… … Wikipedia
Constructed language — This article is about the creation of planned or artificial natural languages. For information about the linguistic field of language planning and policy, see language planning. Artificial language redirects here. For non natural languages, see… … Wikipedia
Список языков программирования — Списки языков программирования Алфавитный По категориям Хронологический Генеалогический Цель этого алфавитного списка языков программирования состоит в том, чтобы дать полный перечень всех существующих языков программирования, как используемых в… … Википедия