{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,7]],"date-time":"2026-10-07T22:23:33Z","timestamp":1791411813761,"version":"4.3.3"},"reference-count":52,"publisher":"Cambridge University Press (CUP)","issue":"1","license":[{"start":{"date-parts":[[2008,11,7]],"date-time":"2008-11-07T00:00:00Z","timestamp":1226016000000},"content-version":"unspecified","delay-in-days":6520,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[1991,1]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>This article describes theoretical and practical aspects of an implemented self-applicable partial evaluator for the untyped lambda-calculus with constants and a fixed point operator. To the best of our knowledge, it is the first partial evaluator that is simultaneously higher-order, non-trivial, and self-applicable.<\/jats:p>\n                  <jats:p>\n                    Partial evaluation produces a\n                    <jats:italic>residual program<\/jats:italic>\n                    from a source program and some of its input data. When given the remaining input data the residual program yields the same result that the source program would when given all its input data. Our partial evaluator produces a residual lambda-expression given a source lambda-expression and the values of some of its free variables. By self-application, the partial evaluator can be used to compile and to generate stand-alone compilers from a denotational or interpretive specification of a programming language.\n                  <\/jats:p>\n                  <jats:p>\n                    An essential component in our self-applicable partial evaluator is the use of explicit\n                    <jats:italic>binding time information.<\/jats:italic>\n                    We use this to annotate the source program, marking as\n                    <jats:italic>residual<\/jats:italic>\n                    the parts for which residual code is to be generated and marking as\n                    <jats:italic>eliminable<\/jats:italic>\n                    the parts that can be evaluated using only the data that is known during partial evaluation. We give a simple criterion,\n                    <jats:italic>well-annotatedness,<\/jats:italic>\n                    that can be used to check that the partial evaluator can handle the annotated higher-order programs without committing errors.\n                  <\/jats:p>\n                  <jats:p>Our partial evaluator is simple, is implemented in a side-effect free subset of Scheme, and has been used to compile and to generate compilers and a compiler generator. In this article we examine two machine-generated compilers and find that their structures are surprisingly natural.<\/jats:p>","DOI":"10.1017\/s0956796800000058","type":"journal-article","created":{"date-parts":[[2008,11,7]],"date-time":"2008-11-07T11:14:38Z","timestamp":1226056478000},"page":"21-69","source":"Crossref","is-referenced-by-count":87,"title":["A partial evaluator for the untyped lambda-calculus"],"prefix":"10.1017","volume":"1","author":[{"given":"Carsten K.","family":"Gomard","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Neil D.","family":"Jones","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2008,11,7]]},"reference":[{"key":"S0956796800000058_ref048","unstructured":"Wadler P. 1990. Linear types can change the world! ISIP TC Working Conference on Programming Concepts and Methods, Sea of Galilee, Israel, April 1990."},{"key":"S0956796800000058_ref027","volume-title":"Functional Programming Languages and Computer Architecture","author":"Kuo","year":"1989"},{"key":"S0956796800000058_ref031","first-page":"298","volume-title":"TAPSOFT '89. Proc. Int. Conf. Theory and Practice of Software Development, Barcelona, Spain, March 1989, Lecture Notes in Computer Science 352","author":"Mogensen","year":"1989"},{"key":"S0956796800000058_ref026","unstructured":"Jones N. D. , Gomard C. K. , Bondorf A. , Danvy O. and Mogensen T. 1990. A self-applicable partial evaluator for the lambda calculus. In IEEE Computer Society 1990 International Conference on Computer Languages (March)."},{"key":"S0956796800000058_ref025","doi-asserted-by":"publisher","DOI":"10.1007\/BF01806312"},{"key":"S0956796800000058_ref022","first-page":"225","volume-title":"Partial Evaluation and Mixed Computation","author":"Jones","year":"1988"},{"key":"S0956796800000058_ref021","unstructured":"Huet G. 1976. Resolution d'equations dans les langages d'ordre 1, 2, \u2026, \u03c9. PhD thesis , Univ. de Paris VII."},{"key":"S0956796800000058_ref032","unstructured":"Morris F.L. 1973. Advice on structuring compilers and proving them correct. In 1st ACM Symposium on Principles of Programming Languages, pp. 144\u201352."},{"key":"S0956796800000058_ref018","unstructured":"Guzowski M. A. 1988. Towards Developing a Reflexive Partial Evaluator for an Interesting Subset of LISP, Master's thesis, Department of Computer Engineering and Science, Case Western Reserve University, Cleveland, Ohio (January)."},{"key":"S0956796800000058_ref014","doi-asserted-by":"publisher","DOI":"10.1145\/321992.321997"},{"key":"S0956796800000058_ref024","first-page":"124","volume-title":"Rewriting Techniques and Applications, Dijon, France. Lecture Notes in Computer Science","volume":"202","author":"Jones","year":"1985"},{"key":"S0956796800000058_ref012","doi-asserted-by":"publisher","DOI":"10.1007\/BF03037134"},{"key":"S0956796800000058_ref011","first-page":"59","volume-title":"Mathematical Foundations of Computer Science, Tatransk\u00e1 Lomnica, Czechoslovakia. Lecture Notes in Computer Science","volume":"53","author":"Ershov","year":"1977"},{"key":"S0956796800000058_ref007","doi-asserted-by":"crossref","first-page":"236","DOI":"10.1007\/3-540-19027-9_16","volume-title":"ESOP '88, 2nd European Symposium on Programming, Nancy, France, March 1988. Lecture Notes in Computer Science","volume":"300","author":"Consel","year":"1988"},{"key":"S0956796800000058_ref009","unstructured":"Damas L. and Milner R. 1982. Principal type-schemes for functional programs. In 9th ACM Symposium on Principles of Programming Languages, pp. 207\u201312."},{"key":"S0956796800000058_ref020","first-page":"167","volume-title":"Partial Evaluation and Mixed Computation","author":"Holst","year":"1988"},{"key":"S0956796800000058_ref010","first-page":"391","volume-title":"Formal Description of Programming Concepts","author":"Ershov","year":"1978"},{"key":"S0956796800000058_ref003","first-page":"81","volume-title":"TAPSOFT '90. Proc. Int. Conf. Theory and Practice of Software Development, Barcelona, Spain, March 1989. Lecture Notes in Computer Science","volume":"352","author":"Bondorf","year":"1989"},{"key":"S0956796800000058_ref049","unstructured":"Wand M. 1982. Semantics-directed machine architecture. In 9th ACM Symposium on Principles of Programming Languages, pp. 234\u201341."},{"key":"S0956796800000058_ref005","unstructured":"Bondorf A. and Danvy O. 1989. Automatic autoprojection for recursive equations with global variables and abstract data types, 1989. (Submitted for publication)."},{"key":"S0956796800000058_ref040","doi-asserted-by":"publisher","DOI":"10.1145\/3318.3323"},{"key":"S0956796800000058_ref004","volume-title":"ESOP '90, Third European Symposium on Programming, Copenhagen, Denmark. Lecture Notes in Computer Science","volume":"432","author":"Bondorf","year":"1990"},{"key":"S0956796800000058_ref029","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"S0956796800000058_ref001","unstructured":"Appel A. 1985. Semantics-directed code generation. In 12th ACM Symposium on Principle of Programming Languages, pp. 315\u201324."},{"key":"S0956796800000058_ref006","volume-title":"Binding Time Analysis and the Taming of Self-Application.","author":"Bondorf","year":"1988"},{"key":"S0956796800000058_ref050","unstructured":"Wand M. 1984. A semantic prototyping system. In SIGPLAN '84 Symposium on Compiler Construction, PP. 213\u201321."},{"key":"S0956796800000058_ref002","doi-asserted-by":"publisher","DOI":"10.1016\/0004-3702(76)90011-4"},{"key":"S0956796800000058_ref016","volume-title":"Information Processing","volume":"89","author":"Gomard","year":"1989"},{"key":"S0956796800000058_ref028","first-page":"247","volume-title":"Advances in Computers","volume":"8","author":"Lombardi","year":"1967"},{"key":"S0956796800000058_ref008","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(89)90113-0"},{"key":"S0956796800000058_ref033","volume-title":"SIS \u2013 Semantics Implementation System, Reference Manual and User Guide","author":"Mosses","year":"1979"},{"key":"S0956796800000058_ref034","volume-title":"The TML-Approach to Compiler\u2013Compilers","author":"Nielson","year":"1988"},{"key":"S0956796800000058_ref035","unstructured":"Nielson H.R. and Nielson F. 1988b. Automatic binding time analysis for a typed \u03bb-calculus. In 15th ACM Symposium on Principles of Programming Languages, pp. 98\u2013106."},{"key":"S0956796800000058_ref036","unstructured":"Paulson L. 1982. A semantics-directed compiler generator. In 9th ACM Symposium on Principles of Programming Languages, pp. 224\u201333."},{"key":"S0956796800000058_ref037","doi-asserted-by":"publisher","DOI":"10.1145\/502949.502883"},{"key":"S0956796800000058_ref019","unstructured":"Hansen T. A. and Tr\u00e4ff J. L. 1989. Memorization and its use in lazy and incremental program generation, Master's thesis, DIKU, University of Copenhagen."},{"key":"S0956796800000058_ref038","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(75)90017-1"},{"key":"S0956796800000058_ref039","first-page":"445","volume-title":"Partial Evaluation and Mixed Computation","author":"Romanenko","year":"1988"},{"key":"S0956796800000058_ref043","unstructured":"Schooler R. 1984. Partial Evaluation as a Means of Language Extensibility, Master's thesis, 84 pages, MIT\/LCS\/TR-324, Laboratory for Computer Science, MIT, Cambridge, Massachusetts (August)."},{"key":"S0956796800000058_ref044","first-page":"485","volume-title":"Partial Evaluation and Mixed Computation","author":"Sestoft","year":"1988"},{"key":"S0956796800000058_ref045","volume-title":"Functional Programming Languages and Computer Architecture, London, September 89","author":"Sestoft","year":"1989"},{"key":"S0956796800000058_ref046","volume-title":"Denotational Semantics: The Scott-Strachey Approach to Programming Language Theory","author":"Stoy","year":"1977"},{"key":"S0956796800000058_ref047","first-page":"645","volume-title":"Automata, Languages and Programming. Seventh ICALP, Noordwijkerhout, The Netherlands. Lecture Notes in Computer Science 85","author":"Turchin","year":"1980"},{"key":"S0956796800000058_ref051","unstructured":"Wand M. 1986. Finding the source of type errors. In 13th ACM Symposium on Principles of Programming Languages, pp. 38\u201343."},{"key":"S0956796800000058_ref041","unstructured":"Schmidt D. A. 1986. Denotational Semantics. Allyn and Bacon."},{"key":"S0956796800000058_ref052","unstructured":"Weis P. 1987. Le Syst\u00e8me SAM: Metacompilation tr\u00e8s efficace \u00e0 l'aide d' operateur s\u00e9mantiques, PhD thesis, l'Universit\u00e9 Paris VII (in French)."},{"key":"S0956796800000058_ref030","first-page":"325","volume-title":"Partial Evaluation and Mixed Computation","author":"Mogensen","year":"1988"},{"key":"S0956796800000058_ref023","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-09085-1"},{"key":"S0956796800000058_ref015","unstructured":"Gomard C. K. 1989. Higher Order Partial Evaluation \u2013 HOPE for the Lambda Calculus, Master's thesis, DIKU, University of Copenhagen, Denmark (September)."},{"key":"S0956796800000058_ref013","first-page":"45","article-title":"Partial evaluation of computation process \u2013 an approach to a compiler\u2013compiler","volume":"2","author":"Futurama","year":"1971","journal-title":"Systems, Computers, Controls"},{"key":"S0956796800000058_ref017","unstructured":"Gomard C. K. 1990. Partial Type Inference for Untyped Functional Programs. In 1990 ACM Conference on Lisp and Functional Programming, pp. 282\u2013287."},{"key":"S0956796800000058_ref042","first-page":"465","volume-title":"Partial Evaluation and Mixed Computation","author":"Schmidt","year":"1988"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796800000058","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:35:04Z","timestamp":1779834904000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796800000058\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1991,1]]},"references-count":52,"journal-issue":{"issue":"1","published-print":{"date-parts":[[1991,1]]}},"alternative-id":["S0956796800000058"],"URL":"https:\/\/doi.org\/10.1017\/s0956796800000058","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[1991,1]]}}}