encyclopegia.org

POP-2

POP-2 (also called POP2) is a programming language developed around 1970 from the earlier language POP-1 (developed by Robin Popplestone in 1968, originally named COWSEL) by Robin Popplestone and Rod Burstall at the University of Edinburgh.[1] It drew roots from many sources: the languages Lisp and ALGOL 60, and theoretical ideas from Peter J.[5] Landin.[src] It used an incremental compiler, which gave it some of the flexibility of an interpreted language, including allowing new function definitions at run time and modification of function definitions while a program runs (both of which are features of dynamic compilation), without the overhead of an interpreted language.[src]

POP-2 (also called POP2) is a programming language developed around 1970 from the earlier language POP-1 (developed by Robin Popplestone in 1968, originally named COWSEL) by Robin Popplestone and Rod Burstall at the University of Edinburgh.[1] It drew roots from many sources: the languages Lisp and ALGOL 60, and theoretical ideas from Peter J.[5] Landin.[src] It used an incremental compiler, which gave it some of the flexibility of an interpreted language, including allowing new function definitions at run time and modification of function definitions while a program runs (both of which are features of dynamic compilation), without the overhead of an interpreted language.[src] ==Description== ===Stack=== POP-2's syntax is ALGOL-like, except that assignments are in reverse order: instead of writing a := 3; one writes 3 -> a; The reason for this is that the language has explicit notion of an operand stack.[src] Thus, the prior assignment can be written as two separate statements: 3; which evaluates the value 3 and leaves it on the stack, and -> a; which pops the top value off the stack and assigns it to the variable 'a'.[src] Similarly, the function call f(x, y, z); can be written as x, y, z; f(); (commas and semicolons being largely interchangeable) or even x, y, z.f; or (x, y, z).f; Because of the stack-based paradigm, there is no need to distinguish between statements and expressions; thus, the two constructs if a > b then c -> e else d -> e close; and if a > b then c else d close -> e; are equivalent (use of , as hadn't become a common notation yet).[src] ===Arrays and doublet functions=== There are no special language constructs to create arrays or record structures as they are commonly understood: instead, these are created with the aid of special builtin functions, e.g., (for arrays that can contain any type of item) and to create restricted types of items.[src] Thus, array element and record field accessors are simply special cases of a doublet function: this is a function that had another function attached as its updater, which is called on the receiving side of an assignment.[src] Thus, if the variable contains an array, then 3 -> a(4); is equivalent to updater(a)(3, 4); the builtin function returning the updater of the doublet.[src] Of course, is a doublet and can be used to change the updater component of a doublet.[src] ===Functions=== Variables can hold values of any type, including functions, which are first-class objects.[src] Thus, the following constructs function max x y; if x > y then x else y close end; and vars max; lambda x y; if x > y then x else y close end -> max; are equivalent.[src] An interesting operation on functions is partial application, (sometimes termed currying).[src] In partial application, some number of the rightmost arguments of the function (which are the last ones placed on the stack before the function is involved) are frozen to given values, to produce a new function of fewer arguments, which is a closure of the original function.[src] For instance, consider a function for computing general second-degree polynomials: function poly2 x a b c; a * x * x + b * x + c end; This can be bound, for instance as vars less1squared; poly2(% 1, -2, 1%) -> less1squared; such that the expression less1squared(3) applies the closure of poly2 with three arguments frozen, to the argument 3, returning the square of (3 - 1), which is 4.[src] The application of the partially applied function causes the frozen values (in this case 1, -2, 1) to be added to whatever is already on the stack (in this case 3), after which the original function poly2 is invoked.[src] It then uses the top four items on the stack, producing the same result as poly2(3, 1, -2, 1) i.e.[src] 1*3*3 + (-2)*3 + 1 ===Operator definition=== In POP-2, it was possible to define new operations (operators in modern terms).[src] vars operation 3 +*; lambda x y; x * x + y * y end -> nonop +* The first line declares a new operation +* with precedence (priority) 3.[src] The second line creates a function f(x,y)=x*x+y*y, and assigns it to the newly declared operation +*.[src] ==See also== POP-11 programming language Poplog programming environment ==References== General POP references Inline ==External links== The Early Development of POP Computers and Thought: A practical Introduction to Artificial Intelligence An Introduction to the POP-2 Programming Language, by P.[5] M.[src] Burstall and J.[src] S.[src] Collins.[src] POP-2 Reference Manual, by P.[5] M.[src] Burstall and J.[src] S.[src] Collins.[src]

35 sentences · 35 cited inline · 7 references stored

References

  1. Burstall, R.M. POP-2 Papers . 1968. · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "Burstall, R.M. POP-2 Papers . 1968." Burstall, R. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "Burstall, R.M. POP-2 Papers . 1968." Burstall, R. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA Burstall, R. (2026). Burstall, R.M. POP-2 Papers . 1968. Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

  2. Help Newarray . · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "Help Newarray ." 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "Help Newarray ." 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA encyclopegia.org. (2026). Help Newarray . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

  3. Help Newanyarray . · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "Help Newanyarray ." 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "Help Newanyarray ." 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA encyclopegia.org. (2026). Help Newanyarray . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

  4. Help Updater . · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "Help Updater ." 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "Help Updater ." 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA encyclopegia.org. (2026). Help Updater . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

  5. [https://www.cs.utexas.edu/~moore/best-ideas/pltp/POP-2-Reference-Manual.pdf POP-2 Reference Manual], page 217, and An Introduction to the Study of Programming Languages, by David William Barron, page . · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "[https://www.cs.utexas.edu/~moore/best-ideas/pltp/POP-2-Reference-Manual.pdf POP-2 Reference Manual], page 217, and An Introduction to the Study of Programming Languages, by David William Barron, page ." https://www. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "[https://www.cs.utexas.edu/~moore/best-ideas/pltp/POP-2-Reference-Manual.pdf POP-2 Reference Manual], page 217, and An Introduction to the Study of Programming Languages, by David William Barron, page ." https://www. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA https://www. (2026). [https://www.cs.utexas.edu/~moore/best-ideas/pltp/POP-2-Reference-Manual.pdf POP-2 Reference Manual], page 217, and An Introduction to the Study of Programming Languages, by David William Barron, page . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

  6. Dunn, Raymond D. POP-2/4100 Users' Manual . School of Artificial In . · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "Dunn, Raymond D. POP-2/4100 Users' Manual . School of Artificial In ." Dunn, Raymond D. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "Dunn, Raymond D. POP-2/4100 Users' Manual . School of Artificial In ." Dunn, Raymond D. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA Dunn, Raymond D. (2026). Dunn, Raymond D. POP-2/4100 Users' Manual . School of Artificial In . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

  7. Dewar, Hamish. EMAS Pop-2 source code . · retrieved 2026-09-17 · rev 1375519433
    Cite this reference

    MLA "Dewar, Hamish. EMAS Pop-2 source code ." Dewar, Hamish. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433. Accessed 02 December 2026.

    Chicago "Dewar, Hamish. EMAS Pop-2 source code ." Dewar, Hamish. 2026-09-17. https://en.wikipedia.org/w/index.php?oldid=1375519433.

    APA Dewar, Hamish. (2026). Dewar, Hamish. EMAS Pop-2 source code . Retrieved December 2, 2026, from https://en.wikipedia.org/w/index.php?oldid=1375519433

Cite this article

MLA

"POP-2." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pop-2. Accessed 02 December 2026.

Chicago

"POP-2." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/pop-2.

APA

encyclopegia.org. (2026). POP-2. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/pop-2

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Hey Hey Hey (Pop Another Bottle)

stub · references available

baroque pop

stub · references available

twee pop

stub · references available

psychedelic pop

stub · references available

Korea K-Pop Hot 100

stub · references available

POP TV

stub · references available

Arabic pop

stub · references available

Pop the Glock

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375519433 · 0.5 · snapshot enwiki-001375519433

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.