{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,24]],"date-time":"2026-08-24T08:41:59Z","timestamp":1787560919154,"version":"build-2736575974"},"reference-count":49,"publisher":"Association for Computing Machinery (ACM)","issue":"ICFP","license":[{"start":{"date-parts":[[2017,8,29]],"date-time":"2017-08-29T00:00:00Z","timestamp":1503964800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2017,8,29]]},"abstract":"<jats:p>Generic programming libraries such as Scrap Your Boilerplate eliminate the need to write repetitive code, but typically introduce significant performance overheads.<\/jats:p>\n          <jats:p>This leaves programmers with the regrettable choice between writing succinct but slow programs and writing tedious but efficient programs.<\/jats:p>\n          <jats:p>Applying structured multi-stage programming techniques transforms Scrap Your Boilerplate from an inefficient library into a typed optimising code generator, bringing its performance in line with hand-written code, and so combining high-level programming with uncompromised performance.<\/jats:p>","DOI":"10.1145\/3110273","type":"journal-article","created":{"date-parts":[[2017,8,29]],"date-time":"2017-08-29T18:19:41Z","timestamp":1504030781000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":23,"title":["Staged generic programming"],"prefix":"10.1145","volume":"1","author":[{"given":"Jeremy","family":"Yallop","sequence":"first","affiliation":[{"name":"University of Cambridge, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,8,29]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/2543728.2543730"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2015.09.003"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964007"},{"key":"e_1_2_1_4_1","unstructured":"Andrej Bauer and Matija Pretnar. 2012. Programming with Algebraic Effects and Handlers. CoRR abs\/1203.1539 (2012). http:\/\/arxiv.org\/abs\/1203.1539  Andrej Bauer and Matija Pretnar. 2012. Programming with Algebraic Effects and Handlers. CoRR abs\/1203.1539 (2012). http:\/\/arxiv.org\/abs\/1203.1539"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/141471.141483"},{"key":"e_1_2_1_6_1","volume-title":"ACM Workshop on ML","author":"Boulytchev Dmitri","year":"2011"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796809007205"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01019004"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/236114.236119"},{"key":"e_1_2_1_10_1","volume-title":"OCaml Users and Developers Workshop","author":"Dolan Stephen","year":"2015"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/2364506.2364508"},{"key":"e_1_2_1_12_1","doi-asserted-by":"crossref","unstructured":"Andrzej Filinski. 2001. Normalization by Evaluation for the Computational Lambda-calculus (TLCA\u201901). Springer-Verlag Berlin Heidelberg 151\u2013165. http:\/\/dl.acm.org\/citation.cfm?id=1754621.1754638  Andrzej Filinski. 2001. Normalization by Evaluation for the Computational Lambda-calculus (TLCA\u201901). Springer-Verlag Berlin Heidelberg 151\u2013165. http:\/\/dl.acm.org\/citation.cfm?id=1754621.1754638","DOI":"10.1007\/3-540-45413-6_15"},{"key":"e_1_2_1_13_1","volume-title":"OCaml Users and Developers Workshop. (September","author":"Christopher","year":"2013"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-47018-2_12"},{"key":"e_1_2_1_15_1","volume-title":"Fourth International Valentin Turchin Workshop on Metacomputation.","author":"Inoue Jun","year":"2014"},{"key":"e_1_2_1_16_1","doi-asserted-by":"crossref","unstructured":"Patricia Johann and Neil Ghani. 2008. Foundations for structured programming with GADTs (POPL 2008). ACM.  Patricia Johann and Neil Ghani. 2008. Foundations for structured programming with GADTs (POPL 2008). ACM.","DOI":"10.1145\/1328438.1328475"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01019005"},{"key":"e_1_2_1_18_1","unstructured":"Neil D. Jones Carsten K. Gomard and Peter Sestoft. 1993. Partial Evaluation and Automatic Program Generation. Prentice-Hall Inc. Upper Saddle River NJ USA.  Neil D. Jones Carsten K. Gomard and Peter Sestoft. 1993. Partial Evaluation and Automatic Program Generation. Prentice-Hall Inc. Upper Saddle River NJ USA."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/2660193.2660241"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/2976022.2976028"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796811000256"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2543728.2543740"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796804005209"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2012.02.025"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-07151-0_6"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009880"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1017753.1017794"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/604174.604179"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/1016850.1016883"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1093\/comjnl\/6.4.308"},{"key":"e_1_2_1_31_1","unstructured":"J. Launchbury. 1991. Project Factorisations in Partial Evaluation. Cambridge University Press. https:\/\/books.google.co.uk\/ books?id=B1UTK2j8rksC  J. Launchbury. 1991. Project Factorisations in Partial Evaluation. Cambridge University Press. https:\/\/books.google.co.uk\/ books?id=B1UTK2j8rksC"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/182409.182483"},{"key":"e_1_2_1_33_1","unstructured":"Xavier Leroy. 2003. A proposal for recursive modules in Objective Caml. INRIA Rocquencourt. (May 2003). Version 1.1.  Xavier Leroy. 2003. A proposal for recursive modules in Objective Caml. INRIA Rocquencourt. (May 2003). Version 1.1."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.5555\/1770203.1770222"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1140335.1140352"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-41582-1_7"},{"key":"e_1_2_1_37_1","unstructured":"Sergey Mechtaev. 2011. Eliminating boilerplate code in Objective Caml programs. System Programming 6 1 (2011). In Russian.  Sergey Mechtaev. 2011. Eliminating boilerplate code in Objective Caml programs. System Programming 6 1 (2011). In Russian."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-60360-3_46"},{"key":"e_1_2_1_39_1","unstructured":"Simon Peyton Jones. 2016. Template Haskell 14 years on. Talk given at the International Summer School on Metaprogramming Cambridge UK. (August 2016). https:\/\/www.cl.cam.ac.uk\/events\/metaprog2016\/Template-Haskell-Aug16.pptx .  Simon Peyton Jones. 2016. Template Haskell 14 years on. Talk given at the International Summer School on Metaprogramming Cambridge UK. (August 2016). https:\/\/www.cl.cam.ac.uk\/events\/metaprog2016\/Template-Haskell-Aug16.pptx ."},{"key":"e_1_2_1_40_1","first-page":"5","article-title":"Secrets of the Glasgow Haskell Compiler Inliner","volume":"12","author":"Jones Simon Peyton","year":"2002","journal-title":"J. Funct. Program."},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1868294.1868314"},{"key":"e_1_2_1_42_1","unstructured":"Tim Sheard and Iavor S. Diatchki. 2002. Staging Algebraic Datatypes. Unpublished manuscript. (2002). http:\/\/web.cecs.pdx.edu\/~sheard\/papers\/stagedData.ps .  Tim Sheard and Iavor S. Diatchki. 2002. Staging Algebraic Datatypes. Unpublished manuscript. (2002). http:\/\/web.cecs.pdx.edu\/~sheard\/papers\/stagedData.ps ."},{"key":"e_1_2_1_43_1","unstructured":"Walid Mohamed Taha. 1999. Multistage Programming: Its Theory and Applications. Ph.D. Dissertation. Oregon Graduate Institute of Science and Technology. AAI9949870.  Walid Mohamed Taha. 1999. Multistage Programming: Its Theory and Applications. Ph.D. Dissertation. Oregon Graduate Institute of Science and Technology. AAI9949870."},{"key":"e_1_2_1_44_1","unstructured":"The GHC Team. 2015. The Glorious Glasgow Haskell Compilation System User\u2019s Guide (7.10.2 ed.).  The GHC Team. 2015. The Glorious Glasgow Haskell Compilation System User\u2019s Guide (7.10.2 ed.)."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2426890.2426906"},{"key":"e_1_2_1_46_1","unstructured":"Todd L. Veldhuizen. 2004. Active Libraries and Universal Languages. Ph.D. Dissertation. Indiana University Computer Science.  Todd L. Veldhuizen. 2004. Active Libraries and Universal Languages. Ph.D. Dissertation. Indiana University Computer Science."},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.198.2"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/1292535.1292548"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/2847538.2847546"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3110273","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3110273","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T04:38:44Z","timestamp":1750221524000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3110273"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,8,29]]},"references-count":49,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2017,8,29]]}},"alternative-id":["10.1145\/3110273"],"URL":"https:\/\/doi.org\/10.1145\/3110273","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,8,29]]},"assertion":[{"value":"2017-08-29","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}