Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

ISWIM

From Wikipedia, the free encyclopedia
Programming language
"I See What You Mean" redirects here. For the sculpture in Denver, Colorado, seeI See What You Mean (Argent).
This article includes a list ofgeneral references, butit lacks sufficient correspondinginline citations. Please help toimprove this article byintroducing more precise citations.(December 2011) (Learn how and when to remove this message)
ISWIM
Paradigmsimperative,functional
Designed byPeter Landin
First appeared1966; 60 years ago (1966)
Scopelexical
Influenced by
ALGOL 60,Lisp
Influenced
PAL,SASL,Miranda,ML,Haskell,Clean,Lucid

ISWIM (If You See What I Mean) is an abstract computerprogramming language (or a family of languages) devised byPeter Landin and first described in his article "The Next 700 Programming Languages", published in theCommunications of the ACM in 1966.[1]

Although not implemented, it has proved very influential in the development of programming languages, especiallyfunctional programming languages such asSASL,Miranda,ML,Haskell and their successors, anddataflow programming languages likeLucid.

Design

[edit]

ISWIM is animperative programming language with a functional core, consisting of asyntactic sugaring oflambda calculus to which are added mutable variables and assignment and a powerful control mechanism: theprogram point operator. Being based on lambda calculus, ISWIM hashigher-order functions andlexically scoped variables.

The operational semantics of ISWIM are defined using Landin'sSECD machine and use call-by-value, that iseager evaluation.[2] A goal of ISWIM was to look more like mathematical notation, so Landin abandonedALGOL's semicolons between statements andbegin ...end blocks and replaced them with theoff-side rule and scoping based onindentation.

A notationally distinctive feature of ISWIM is its use ofwhere clauses. An ISWIM program is a single expression qualified bywhere clauses (auxiliary definitions including equations among variables), conditional expressions and function definitions. Along withCPL, ISWIM was one of the first programming languages to usewhere clauses.[3]

A notable semantic feature was the ability to define new data types, as a (possibly recursive) sum of products. This was done using a somewhat verbose natural language style description, but apart from notation amounts exactly to thealgebraic data types found in modern functional languages.[4] ISWIM variables did not have explicit type declarations and it seems likely (although not explicitly stated in the 1966 paper) that Landin intended the language to be dynamically typed, like LISP and unlikeALGOL; but it is also possible that he intended to develop some form oftype inference.

Implementations and derivatives

[edit]

No direct implementation of ISWIM was completed but Art Evan's languagePAL,[5] andJohn C. Reynolds' languageGedanken,[6] captured most of Landin's concepts, including powerful transfer-of-control operations. Both of these weretyped dynamically.Robin Milner'sML may be considered equivalent to ISWIM without theJ operator and withtype inference.

Another line of descent from ISWIM is to strip out the imperative features (assignment and the J operator) leaving a purely functional language.[7] It then becomes possible to switch tolazy evaluation. This path led to programming languagesSASL,Kent Recursive Calculator (KRC),Hope,Miranda,Haskell, andClean.

References

[edit]
  1. ^Landin, P. J. (March 1966)."The Next 700 Programming Languages"(PDF).Communications of the ACM.9 (3).Association for Computing Machinery:157–165.doi:10.1145/365230.365257.S2CID 13409665.
  2. ^Plotkin, Gordon (1975).Call-by-Name, Call-by Value and the Lambda Calculus(PDF) (Report).
  3. ^This article is based on material taken fromISWIM at theFree On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of theGFDL, version 1.3 or later.
  4. ^Turner, D. A. (2013),Some History of Functional Programming Languages, Lecture Notes in Computer Science, vol. 7829, Berlin, Heidelberg: Springer Berlin Heidelberg, pp. 1–20,doi:10.1007/978-3-642-40447-4_1,ISBN 978-3-642-40446-7, retrieved2024-01-28,The ISWIM paper also has the first appearance of algebraic type definitions used to define structures. This is done in words, but the sum-of-products idea is clearly there
  5. ^Evans, Art (1968). "PAL: a language designed for teaching programming linguistics".Proceedings ACM National Conference. ACM National Conference.Association for Computing Machinery.
  6. ^Reynolds, John C. (September 1969). Gedanken: a simple typeless language which permits functional data structures and co-routines (Report). Argonne National Laboratory.
  7. ^Ivanović, Mirjana; Budimac, Zoran (April 1993)."A definition of an ISWIM-like language via Scheme".ACM SIGPLAN Notices.28 (4):29–38.doi:10.1145/152739.152743.S2CID 14379260.
Retrieved from "https://en.wikipedia.org/w/index.php?title=ISWIM&oldid=1308740648"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp