Nothing Special   »   [go: up one dir, main page]

skip to main content
article
Free access

Can programming be liberated from the von Neumann style?: a functional style and its algebra of programs

Published: 01 August 1978 Publication History

Abstract

Conventional programming languages are growing ever more enormous, but not stronger. Inherent defects at the most basic level cause them to be both fat and weak: their primitive word-at-a-time style of programming inherited from their common ancestor—the von Neumann computer, their close coupling of semantics to state transitions, their division of programming into a world of expressions and a world of statements, their inability to effectively use powerful combining forms for building new programs from existing ones, and their lack of useful mathematical properties for reasoning about programs.
An alternative functional style of programming is founded on the use of combining forms for creating programs. Functional programs deal with structured data, are often nonrepetitive and nonrecursive, are hierarchically constructed, do not name their arguments, and do not require the complex machinery of procedure declarations to become generally applicable. Combining forms can use high level programs to build still higher level ones in a style not possible in conventional languages.
Associated with the functional style of programming is an algebra of programs whose variables range over programs and whose operations are combining forms. This algebra can be used to transform programs and to solve equations whose “unknowns” are programs in much the same way one transforms equations in high school algebra. These transformations are given by algebraic laws and are carried out in the same language in which programs are written. Combining forms are chosen not only for their programming power but also for the power of their associated algebraic laws. General theorems of the algebra give the detailed behavior and termination conditions for large classes of programs.
A new class of computing systems uses the functional programming style both in its programming language and in its state transition rules. Unlike von Neumann languages, these systems have semantics loosely coupled to states—only one state transition occurs per major computation.

References

[1]
Arvind, and Gostelow, K.P. A new interpreter for data flow schemas and its implications for computer architecture. Tech. Rep. No. 72, Dept. Comptr. Sci., U. of California, Irvine, Oct. 1975.
[2]
Backus, J. Programming language semantics and closed applicative languages. Conf. Record ACM Symp. on Principles of Programming Languages, Boston, Oct. 1973, 71-86.
[3]
Berkling, K.J. Reduction languages for reduction machines. Interner Bericht ISF-76-8, Gesellschaft f'dr Mathematik und Datenverarbeitung MBH, Bonn, Sept. 1976.
[4]
Burge, W.H. Recursive Programming Techniques. Addison- Wesley, Reading, Mass., 1975.
[5]
Church, A. The Calculi of Lambda-Conversion. Princeton U. Press, Princeton, N.J., 1941.
[6]
Curry, H.B., and Feys, R. Combinatory Logic, Vol. 1. North- Holland Pub. Co., Amsterdam, 1958.
[7]
Dennis, J.B. First version of a data flow procedure language. Tech. Mem. No. 61, Lab. for Comptr. Sci., M.I.T., Cambridge, Mass., May 1973.
[8]
Dijkstra, E.W.,4 Discipline of Programming. Prentice-Hall, Englewood Cliffs, N.J., 1976.
[9]
Friedman, D.P., and Wise, D.S. CONS should not evaluate its arguments. In Automata, Languages and Programming, S. Michaelson and R. Milner, Eds., Edinburgh U. Press, Edinburgh, 1976, pp. 257-284.
[10]
Henderson, P., and Morris, J.H. Jr. A lazy evaluator. Conf. Record Third ACM Symp. on Principles of Programming Languages, Atlanta, Ga., Jan. 1976, pp. 95-103.
[11]
Hoare, C.A.R. An axiomatic basis for computer programming. Comm.,4CM 12, 10 (Oct. 1969), 576-583.
[12]
Iverson, K. A Programming Language. Wiley, New York, 1962.
[13]
Kosinski, P. A data flow programming language. Rep. RC 4264, IBM T.J. Watson Research Ctr., Yorktown Heights, N.Y., March 1973.
[14]
Landin, P.J. The mechanical evaluation of expressions. Computer J. 6, 4 (1964), 308-320.
[15]
Mag~, G.A. A network of microprocessors to execute reduction languages. To appear in Int. J. Comptr. and Inform. Sci.
[16]
Manna, Z., Ness, S., and Vuillemin, J. Inductive methods for proving properties of programs. Comm.4 CM 16,8 (Aug. 1973) 491-502.
[17]
McCarthy, J. Recursive functions of symbolic expressions and their computation by machine, Pt. 1. Comm.,4CM 3, 4 (April 1960), 184-195.
[18]
Me Jones, P. A Church-Rosser property of closed applicative languages. Rep. RJ 1589, IBM Res. Lab., San Jose, Calif., May 1975.
[19]
Reynolds, J.C. GEDANKEN--a simple typeless language based on the principle of completeness and the reference concept. Comm. ACM 13, 5 (May 1970), 308-318.
[20]
Reynolds, J.C. Notes on a lattice-theoretic approach to the theory of computation. Dept. Syst. and Inform. Sci., Syracuse U., Syracuse, N.Y., 1972.
[21]
Scott, D. Outline of a mathematical theory of computation. Proc. 4th Princeton Conf. on Inform. Sci. and Syst., 1970.
[22]
Scott, D. Lattice-theoretic models for various type-free calculi. Proc. Fourth Int. Congress for Logic, Methodology, and the Philosophy of Science, Bucharest, 1972.
[23]
Scott, D., and Strachey, C. Towards a mathematical semantics for computer languages. Proc. Symp. on Comptrs. and Automata, Polytechnic Inst. of Brooklyn, 1971.

Cited By

View all
  • (2024)An organized view of reservoir computing: a perspective on theory and technology developmentJapanese Journal of Applied Physics10.35848/1347-4065/ad394f63:5(050803)Online publication date: 9-May-2024
  • (2024)Research Progress in Dielectric-Layer Material Systems of MemristorsInorganics10.3390/inorganics1203008712:3(87)Online publication date: 13-Mar-2024
  • (2024)Perspective: an optoelectronic future for heterogeneous, dendritic computingFrontiers in Neuroscience10.3389/fnins.2024.139427118Online publication date: 17-Apr-2024
  • Show More Cited By

Index Terms

  1. Can programming be liberated from the von Neumann style?: a functional style and its algebra of programs

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image Communications of the ACM
    Communications of the ACM  Volume 21, Issue 8
    Aug. 1978
    84 pages
    ISSN:0001-0782
    EISSN:1557-7317
    DOI:10.1145/359576
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 August 1978
    Published in CACM Volume 21, Issue 8

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. algebra of programs
    2. applicative computing systems
    3. applicative state transition systems
    4. combining forms
    5. functional forms
    6. functional programming
    7. metacomposition
    8. models of computing systems
    9. program correctness
    10. program termination
    11. program transformation
    12. programming languages
    13. von Neumann computers
    14. von Neumann languages

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)8,802
    • Downloads (Last 6 weeks)638
    Reflects downloads up to 22 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)An organized view of reservoir computing: a perspective on theory and technology developmentJapanese Journal of Applied Physics10.35848/1347-4065/ad394f63:5(050803)Online publication date: 9-May-2024
    • (2024)Research Progress in Dielectric-Layer Material Systems of MemristorsInorganics10.3390/inorganics1203008712:3(87)Online publication date: 13-Mar-2024
    • (2024)Perspective: an optoelectronic future for heterogeneous, dendritic computingFrontiers in Neuroscience10.3389/fnins.2024.139427118Online publication date: 17-Apr-2024
    • (2024)FVLLMONTI: The 3D Neural Network Compute Cube $(N^{2}C^{2})$ Concept for Efficient Transformer Architectures Towards Speech-to-Speech Translation2024 Design, Automation & Test in Europe Conference & Exhibition (DATE)10.23919/DATE58400.2024.10546700(1-6)Online publication date: 25-Mar-2024
    • (2024)Optical Signal Processor Based on a Kerr Microcomb for Real Time Video Image ProcessingSSRN Electronic Journal10.2139/ssrn.4802512Online publication date: 2024
    • (2024)Low-voltage short-channel MoS2 memtransistors with high gate-tunabilityJournal of Materials Research10.1557/s43578-024-01343-339:10(1463-1472)Online publication date: 26-Apr-2024
    • (2024)Vector Symbolic Finite State Machines in Attractor Neural NetworksNeural Computation10.1162/neco_a_0163836:4(549-595)Online publication date: 21-Mar-2024
    • (2024)Fast Loosely-Timed Deep Neural Network Models with Accurate Memory ContentionACM Transactions on Embedded Computing Systems10.1145/360754823:5(1-32)Online publication date: 14-Aug-2024
    • (2024)Joint Batching and Scheduling for High-Throughput Multiuser Edge AI With Asynchronous Task ArrivalsIEEE Transactions on Wireless Communications10.1109/TWC.2024.340481123:10_Part_2(13782-13795)Online publication date: 1-Oct-2024
    • (2024)Signal Propagation: The Framework for Learning and Inference in a Forward PassIEEE Transactions on Neural Networks and Learning Systems10.1109/TNNLS.2022.323091435:6(8585-8596)Online publication date: Jun-2024
    • Show More Cited By

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media