Most subsequent imperative languages (so-called ALGOL-like languages), e.g., PL/I, Simula, CPL, Pascal, Ada, C
ALGOL 60 (short for Algorithmic Language 1960) is a member of the ALGOL family of computer programming languages. It followed on from ALGOL 58 which had introduced code blocks and the begin and end pairs for delimiting them, representing a key advance in the rise of structured programming. ALGOL 60 was one of the first languages implementing function definitions (that could be invoked recursively). ALGOL 60 function definitions could be nested within one another (which was first introduced by any programming language), with lexical scope. It gave rise to many other languages, including CPL, PL/I, Simula, BCPL, B, Pascal, and C. Practically every computer of the era had a systems programming language based on ALGOL 60 concepts.
Niklaus Wirth based his own ALGOL W on ALGOL 60 before moving to develop Pascal. Algol-W was intended to be the next generation ALGOL but the ALGOL 68 committee decided on a design that was more complex and advanced rather than a cleaned simplified ALGOL 60. The official ALGOL versions are named after the year they were first published. ALGOL 68 is substantially different from ALGOL 60 and was criticised partially for being so, so that in general "ALGOL" refers to dialects of ALGOL 60.
Standardization
ALGOL 60 – with COBOL – were the first languages to seek standardization.
ISO 1538:1984 Programming languages – ALGOL 60 (stabilized)
ALGOL 60 was used mostly by research computer scientists in the United States and in Europe. Its use in commercial applications was hindered by the absence of standard input/output facilities in its description and the lack of interest in the language by large computer vendors. ALGOL 60 did however become the standard for the publication of algorithms and had a profound effect on future language development.
Peter Naur: "As editor of the ALGOL Bulletin I was drawn into the international discussions of the language and was selected to be member of the European language design group in November 1959. In this capacity I was the editor of the ALGOL 60 report, produced as the result of the ALGOL 60 meeting in Paris in January 1960."[2]
The following people attended the meeting in Paris (from January 11 to 16):
Alan Perlis gave a vivid description of the meeting: "The meetings were exhausting, interminable, and exhilarating. One became aggravated when one's good ideas were discarded along with the bad ones of others. Nevertheless, diligence persisted during the entire period. The chemistry of the 13 was excellent."
The language originally did not include recursion. It was inserted into the specification at the last minute, against the wishes of some of the committee.[3]
ALGOL 60 inspired many languages that followed it. Tony Hoare remarked: "Here is a language so far ahead of its time that it was not only an improvement on its predecessors but also on nearly all its successors."[4][5]
ALGOL 60 implementations timeline
To date there have been at least 70 augmentations, extensions, derivations and sublanguages of ALGOL 60.[6]
All CPUs supported by the GNU Compiler Collection; MARST is part of the GNU project
The Burroughs dialects included special system programming dialects such as ESPOL and NEWP.
Properties
ALGOL 60 as officially defined had no I/O facilities; implementations defined their own in ways that were rarely compatible with each other. In contrast, ALGOL 68 offered an extensive library of transput (ALGOL 68 parlance for input/output) facilities.
ALGOL 60 provided two evaluation strategies for parameter passing: the common call-by-value, and call-by-name. The procedure declaration specified, for each formal parameter, which was to be used: value specified for call-by-value, and omitted for call-by-name. Call-by-name has certain effects in contrast to call-by-reference. For example, without specifying the parameters as value or reference, it is impossible to develop a procedure that will swap the values of two parameters if the actual parameters that are passed in are an integer variable and an array that is indexed by that same integer variable.[19] Think of passing a pointer to swap(i, A[i]) in to a function. Now that every time swap is referenced, it's reevaluated. Say i := 1 and A[i] := 2, so every time swap is referenced it'll return the other combination of the values ([1,2], [2,1], [1,2] and so on). A similar situation occurs with a random function passed as actual argument.
Call-by-name is known by many compiler designers for the interesting "thunks" that are used to implement it. Donald Knuth devised the "man or boy test" to separate compilers that correctly implemented "recursion and non-local references." This test contains an example of call-by-name.
ALGOL 60 Reserved words and restricted identifiers
There are 71 such restricted identifiers in the standard Burroughs Large Systems sub-language:
ACCEPT
AND
ATTACH
BY
CALL
CASE
CAUSE
CLOSE
DEALLOCATE
DEFINE
DETACH
DISABLE
DISPLAY
DIV
DUMP
ENABLE
EQL
EQV
EXCHANGE
EXTERNAL
FILL
FORWARD
GEQ
GTR
IMP
IN
INTERRUPT
IS
LB
LEQ
LIBERATE
LINE
LOCK
LSS
MERGE
MOD
MONITOR
MUX
NEQ
NO
NOT
ON
OPEN
OR
OUT
PICTURE
PROCESS
PROCURE
PROGRAMDUMP
RB
READ
RELEASE
REPLACE
RESET
RESIZE
REWIND
RUN
SCAN
SEEK
SET
SKIP
SORT
SPACE
SWAP
THRU
TIMES
TO
WAIT
WHEN
WITH
WRITE
and also the names of all the intrinsic functions.
Standard operators
Priority
Operator
first arithmetic
first
↑ (power)
second
×, / (real), ÷ (integer)
third
+, -
second
<, ≤, =, ≥, >, ≠
third
¬ (not)
fourth
∧ (and)
fifth
∨ (or)
sixth
⊃ (implication)
seventh
≡ (equivalence)
Examples and portability issues
Code sample comparisons
ALGOL 60
procedure Absmax(a) Size:(n, m) Result:(y) Subscripts:(i, k);
value n, m; array a; integer n, m, i, k; real y;
comment The absolute greatest element of the matrix a, of size n by m,
is copied to y, and the subscripts of this element to i and k;
begininteger p, q;
y := 0; i := k := 1;
for p := 1 step 1 until n dofor q := 1 step 1 until m doif abs(a[p, q]) > y thenbegin y := abs(a[p, q]);
i := p; k := q
endend Absmax
Implementations differ in how the text in bold must be written. The word 'INTEGER', including the quotation marks, must be used in some implementations in place of integer, above, thereby designating it as a special keyword.
Following is an example of how to produce a table using Elliott 803 ALGOL:[20]
FLOATING POINT ALGOL TEST'
BEGIN REAL A,B,C,D'
READ D'
FOR A:= 0.0 STEP D UNTIL 6.3 DO
BEGIN
PRINT PUNCH(3),££L??'
B := SIN(A)'
C := COS(A)'
PRINT PUNCH(3),SAMELINE,ALIGNED(1,6),A,B,C'
END'
END'
ALGOL 60 family
Since ALGOL 60 had no I/O facilities, there is no portable hello world program in ALGOL. The following program could (and still will) compile and run on an ALGOL implementation for a Unisys A-Series mainframe, and is a straightforward simplification of code taken from The Language Guide[21] at the University of Michigan-Dearborn Computer and Information
Science Department Hello world! ALGOL Example Program page.[22]
BEGIN
FILE F(KIND=REMOTE);
EBCDIC ARRAY E[0:11];
REPLACE E BY "HELLO WORLD!";
WRITE(F, *, E);
END.
Where * etc. represented a format specification as used in FORTRAN, e.g.[23]
An even simpler program using the Display statement:
BEGINDISPLAY("HELLO WORLD!")END.
An alternative example, using Elliott Algol I/O is as follows. Elliott Algol used different characters for "open-string-quote" and "close-string-quote", represented here by ‘ and ’.
programHiFolks;beginprint‘Helloworld’end;
Here's a version for the Elliott 803 Algol (A104) The standard Elliott 803 used 5-hole paper tape and thus only had upper case. The code lacked any quote characters so £ (pound sign) was used for open quote and ? (question mark) for close quote. Special sequences were placed in double quotes (e.g., £L?? produced a new line on the teleprinter).
HIFOLKS'
BEGIN
PRINT £HELLO WORLD£L??'
END'
The ICT 1900 series Algol I/O version allowed input from paper tape or punched card. Paper tape 'full' mode allowed lower case. Output was to a line printer. Note use of '(', ')', and %.[24]
'PROGRAM' (HELLO)
'BEGIN'
'COMMENT' OPEN QUOTE IS '(', CLOSE IS ')', PRINTABLE SPACE HAS TO
BE WRITTEN AS % BECAUSE SPACES ARE IGNORED;
WRITE TEXT('('HELLO%WORLD')');
'END'
'FINISH'
LEAP
LEAP is an extension to the ALGOL 60 programming language which provides an associative memory of triples. The three items in a triple denote the association that an Attribute of an Object has a specific Value. LEAP was created by Jerome Feldman (University of California Berkeley) and Paul Rovner (MIT Lincoln Lab) in 1967. LEAP was also implemented in SAIL.
NUMAL A Library of Numerical Procedures in ALGOL 60 developed at The Stichting Centrum Wiskunde & Informatica (legal successor of Stichting Mathematisch Centrum) legal owner.
King of Attica in Greek mythology For other uses, see Cecrops. CecropsKing of Cecropia (i.e. Athens)Cecrops I from Promptuarii Iconum InsigniorumPredecessorActaeusSuccessorCranausAbodeAthensPersonal informationParentsautochthonSiblings-ConsortAglaurusOffspringErysichthon, Aglaurus, Herse, Pandrosus Cecrops (/ˈsiːkrɒps/; Ancient Greek: Κέκροψ, romanized: Kekrops; gen Κέκροπος, Kékropos) was a mythical king of Attica which derived from him its name Cecropia, having previousl…
烏克蘭總理Прем'єр-міністр України烏克蘭國徽現任杰尼斯·什米加尔自2020年3月4日任命者烏克蘭總統任期總統任命首任維托爾德·福金设立1991年11月后继职位無网站www.kmu.gov.ua/control/en/(英文) 乌克兰 乌克兰政府与政治系列条目 宪法 政府 总统 弗拉基米尔·泽连斯基 總統辦公室 国家安全与国防事务委员会 总统代表(英语:Representatives of the President of Ukraine) 总理…
يوسف محمد مسعود السرمري معلومات شخصية الميلاد سنة 1296 سامراء الوفاة سنة 1375 (78–79 سنة) دمشق مكان الدفن مقابر الصوفية [لغات أخرى] مواطنة العراق الحياة العملية المهنة فقيه، وعالم مسلم، ومُحَدِّث، ولغوي اللغات العربية مجال العمل ال…
Overview of education in Iceland Education in IcelandMinistry of Education, Science and CultureMinister of Education, Science and CultureLilja AlfreðsdóttirNational education budget (2023)BudgetISK 46.3 billion[1][2]General detailsPrimary languagesIcelandicSystem typeNationalCurrent system2007Literacy (2023)Total60%[3]Male53%Female68%EnrollmentTotalNot availablePrimary100% (graduating)Secondary97%[4]Post secondaryNot availableAttainmentSecondary diploma57%[5…
Some of this article's listed sources may not be reliable. Please help improve this article by looking for better, more reliable sources. Unreliable citations may be challenged and removed. (July 2012) (Learn how and when to remove this message) 2002 studio album by Tony Martin/Dario MolloThe Cage 2Studio album by Tony Martin/Dario MolloReleased22 May 2002 (Europe/Japan)Recorded2001[1]GenreHard rockLength61:09LabelFrontiers RecordsProducerDario MolloTony Martin/Dario Mollo chrono…
Пак Бомкор. 박봄 На шоукейсе в 2019 году. Дата рождения 24 марта 1984(1984-03-24) (40 лет) Место рождения Сеул, Республика Корея Гражданство Республика Корея Профессия Певица Карьера 2006 – 20162016 – настоящее время Направление поп и K-pop IMDb ID 3821273 yg-2ne1.comygfamily.com/artist/Abou… Медиафай…
Aqueous solution of hydrogen chloride This article is about the solution. For the gas, see hydrogen chloride. Hydrochloric acid 3D model of hydrogen chloride 3D model of water 3D model of the chloride anion 3D model of the hydronium cation Names IUPAC name Chlorane[3] Other names Muriatic acid[1]Spirits of salt[2]Hydronium chlorideChlorhydric acid Identifiers CAS Number 7647-01-0 Y 3D model (JSmol) Interactive image ChEMBL ChEMBL1231821 N ChemSpider 307 Y E…
American rapper (born 1971) Missy ElliottElliott in 2015Background informationBirth nameMelissa Arnette ElliottAlso known asMisdemeanorBorn (1971-07-01) July 1, 1971 (age 52)Portsmouth, Virginia, U.S.Genres Hip hop R&B progressive rap[1] neo soul[2] Occupations Rapper singer songwriter record producer DiscographyRecordingproductionYears active1988–presentLabels The Goldmind Inc. East West Elektra Atlantic Formerly ofSwing Mob · SistaWebsitemissy-elliott.comMusical art…
State park in Suffolk County, New York Connetquot River State Park PreserveThe former Southside Sportsmen's Clubhouse within Connetquot River State Park.Location of Connetquot River State Park Preserve within New York StateTypeState parkLocationTown of Islip, Suffolk County, New YorkCoordinates40°45′54″N 73°09′04″W / 40.765°N 73.151°W / 40.765; -73.151Area3,473 acres (14.05 km2)[1]Operated byNew York State Office of Parks, Recreation and Hist…
Grand Prix F1 Malaysia 2005 merupakan balapan Formula 1 pada 20 Maret 2005 di Sepang.[1] Lomba Pos No Pembalap Tim Lap Waktu/Tersingkir Grid Poin 1 5 Fernando Alonso Renault 56 1:31'33.736 1 10 2 16 Jarno Trulli Toyota 56 +24.3 d 2 8 3 8 Nick Heidfeld Williams-BMW 56 +32.1 d 10 6 4 10 Juan Pablo Montoya McLaren-Mercedes 56 +41.6 d 11 5 5 17 Ralf Schumacher Toyota 56 +51.8 d 5 4 6 14 David Coulthard Red Bull-Cosworth 56 +72.5 d 8 3 7 1 Michael Schumacher Ferrari 56 +79.9 d 13 2 8 15 Chris…
American fashion designer (1924–2004) Geoffrey BeeneBornSamuel Albert Bozeman Jr.August 30, 1924 (1924-08-30)Haynesville, Louisiana, U.S.DiedSeptember 28, 2004 (2004-09-29) (aged 80)New York City, U.S.OccupationFashion designer Geoffrey Beene, LLCCompany typePrivateIndustryClothing, Eyewear, and Formal wearFounded1963HeadquartersNew York City, New York, U.S.Key peopleGeoffrey Beene and G. Thompson HuttonProductsClothes, perfume, formal wear, sunglasses, eyewear, jewelry, luggage…
GratosoglioIl quartiere Gratosoglio Stato Italia Regione Lombardia Provincia Milano Città Milano CircoscrizioneMunicipio 5 Superficie8,42 km²[1] Altitudine108 m s.l.m. Abitanti9 800 ab. Densità1 163,9 ab./km² Nome abitantigratosogliesi Patronosan Barnaba GratosoglioGratosoglio (Milano) Il Gratosoglio[2] (Grattasoeuj in dialetto milanese[3][4], AFI: [ˌɡrataˈsøːj]) è un quartiere e un'antica parrocchia di Milano, posto nella p…
Creighton HaleHale pada tahun 1916LahirPatrick Wills Fitzgerald[1][2](1882-05-24)24 Mei 1882County Cork, IrlandiaMeninggal9 Agustus 1965(1965-08-09) (umur 83)South Pasadena, California, Amerika SerikatNama lainPat Creighton HalePekerjaanPemeranTahun aktif1914–1959Suami/istriVictoire Lowe (m. 1912; bercerai 1926) Kathleen Bering (m. 1931)Anak2 Creighton Hale (born Patrick Wi…
Bupati BulukumbaPetahanaAndi Muchtar Ali Yusufsejak 26 Februari 2021KediamanKantor Bupati BulukumbaMasa jabatan5 tahunDibentuk1960Pejabat pertamaAndi PataraiSitus webbulukumbakab.go.id Secara yuridis formal, kabupaten Bulukumba resmi menjadi daerah tingkat II setelah ditetapkan lambang daerah kabupaten oleh DPRD Kabupaten Bulukumba pada tanggal 4 februari 1960 dan selanjutnya dilakukan pelantikan Bupati pertama yaitu: Andi Patarai pada tanggal 12 februari 1960. Berikut adalah daftar Bupati …
الدوري التشيكوسلوفاكي 1986–87 تفاصيل الموسم الدوري التشيكوسلوفاكي [لغات أخرى] النسخة 80 البلد تشيكوسلوفاكيا المنظم اتحاد جمهورية التشيك لكرة القدم البطل سبارتا براغ مباريات ملعوبة 240 عدد المشاركين 16 الدوري التشيكوسلوفاكي 1985–86 الدوري الت…
Former New York railroad station HabermanSite of the former stationGeneral informationLocationRust and 50th StreetsMaspeth, Queens, New YorkCoordinates40°43′33″N 73°55′06″W / 40.725844°N 73.918377°W / 40.725844; -73.918377Owned byLong Island Rail RoadLine(s)Montauk BranchPlatforms2 side platformsTracks2HistoryOpenedSeptember 1892ClosedMarch 16, 1998ElectrifiedAugust 29, 1905Services Preceding station Long Island Rail Road Following station Laurel Hilltoward Lo…
Геноцид українцівЧастина російського вторгнення в УкраїнуМісце атаки УкраїнаМета атакигеноцидДата2014[1][2][3][4] — дотеперСпосіб атаки убивство нанесення тяжких тілесних або психічних ушкоджень депортація та насильницьке переміщення дітей Організатор…
Italian cycling team VF Group–Bardiani–CSF–FaizanèTeam informationUCI codeVBFRegisteredItalyFounded1982 (1982)Discipline(s)RoadStatusUCI ProTeamBicyclesMCipolliniWebsiteTeam home pageKey personnelGeneral managerRoberto ReverberiTeam name history1982–19831984–19861987–19891990–19921993–199519961997–1998199920002001–200320042005–20072008–20092010–2011201220132014–20192020–202220232024–TermolanSantiniSelcaItalbonifica–NavigareNavigare–Blue StormScrigno–Bl…
Эту страницу предлагается переименовать в «Ай-сюэ».Пояснение причин и обсуждение — на странице Википедия:К переименованию/24 марта 2019. Пожалуйста, основывайте свои аргументы на правилах именования статей. Не удаляйте шаблон до подведения итога обсуждения. Переименоват…