{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T08:58:27Z","timestamp":1790413107234,"version":"4.1.0"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"ICFP","license":[{"start":{"date-parts":[[2026,8,17]],"date-time":"2026-08-17T00:00:00Z","timestamp":1786924800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["2421308"],"award-info":[{"award-number":["2421308"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["2426443"],"award-info":[{"award-number":["2426443"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["2140004"],"award-info":[{"award-number":["2140004"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,8,17]]},"abstract":"<jats:p>Another DSL for pictures? Seems fishy. But hold fast as we chart a course to an embedded DSL for the domain of slide presentations with animations. Our DSL programs interact with the host language in two ways: by allowing pictures and animations to be built using host-language functions (resembling a shallow embedding), and by allowing host-language reflection on their construction (resembling a deep embedding). As a result, users can define their own animation combinators but still also inspect, adjust, and reassemble animations. To demonstrate our DSL\u2019s expressive power, we show how it supports a Keynote-like Magic Move operation.<\/jats:p>\n                  <jats:p>Having made the DSL shipshape, we dive into a lesson learned about deep and shallow DSL design. While deep and shallow may seem like mutually exclusive options, we argue they are actually points on an entire spectrum of possible DSL designs. More importantly, our paper demonstrates that points on the spectrum between deep and shallow are where DSL designs achieve full sail.<\/jats:p>","DOI":"10.1145\/3828692","type":"journal-article","created":{"date-parts":[[2026,8,17]],"date-time":"2026-08-17T20:23:46Z","timestamp":1786998226000},"page":"581-610","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Animated Pictures for Slide Presentations: From the Shallows to the Depths of a Domain-Specific Language (Functional Pearl)"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0656-235X","authenticated-orcid":false,"given":"Oliver","family":"Flatt","sequence":"first","affiliation":[{"name":"University of Washington, Seattle, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4245-2000","authenticated-orcid":false,"given":"Robert Bruce","family":"Findler","sequence":"additional","affiliation":[{"name":"Northwestern University, Evanston, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8994-2552","authenticated-orcid":false,"given":"Matthew","family":"Flatt","sequence":"additional","affiliation":[{"name":"University of Utah, Salt Lake City, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,8,17]]},"reference":[{"key":"e_1_3_1_2_1","unstructured":"Mart\u00edn Abadi Ashish Agarwal Paul Barham Eugene Brevdo Zhifeng Chen Craig Citro Greg S. Corrado Andy Davis Jeffrey Dean Matthieu Devin Sanjay Ghemawat Ian Goodfellow Andrew Harp Geoffrey Irving Michael Isard Yangqing Jia Rafal Jozefowicz Lukasz Kaiser Manjunath Kudlur Josh Levenberg Dan Mane Rajat Monga Sherry Moore Derek Murray Chris Olah Mike Schuster Jonathon Shlens Benoit Steiner Ilya Sutskever Kunal Talwar Paul Tucker Vincent Vanhoucke Vijay Vasudevan Fernanda Viegas Oriol Vinyals Pete Warden Martin Wattenberg Martin Wicke Yuan Yu and Xiaoqiang Zheng. TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. In Proc. Operating Systems Design and Implementation 2016."},{"key":"e_1_3_1_3_1","unstructured":"Adobe Press. PostScript Language Reference Manual. 1985."},{"key":"e_1_3_1_4_1","unstructured":"Akshay Agrawal Akshay Modi Alexandre Passos Allen Lavoie Ashish Agarwal Asim Shankar Igor Ganichev Josh Levenberg Mingsheng Hong Rajat Monga and Shanqing Cai. TensorFlow Eager: A Multi-Stage Python-Embedded DSL for Machine Learning. In Proc. Machine Learning and Systems 2019. https:\/\/proceedings.mlsys.org\/paper_files\/paper\/2019\/hash\/b3cd73d353d39e5cf6f6e9ff8d14c87f-Abstract.html"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","unstructured":"Jason Ansel Edward Yang Horace He Natalia Gimelshein Animesh Jain Michael Voznesensky Bin Bao Peter Bell David Berard Evgeni Burovski Geeta Chauhan Anjali Chourdia Will Constable Alban Desmaison Zachary DeVito Elias Ellison Will Feng Jiong Gong Michael Gschwind Brian Hirsh Sherlock Huang Kshiteej Kalambarkar Laurent Kirsch Michael Lazos Mario Lezcano Yanbo Liang Jason Liang Yinghai Lu C. K. Luk Bert Maher Yunjie Pan Christian Puhrsch Matthias Reso Mark Saroufim Marcos Yukio Siraichi Helen Suk Shunting Zhang Michael Suo Phil Tillet Xu Zhao Eikan Wang Keren Zhou Richard Zou Xiaodong Wang Ajit Mathews William Wen Gregory Chanan Peng Wu and Soumith Chintala. PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation. In Proc. Architectural Support for Programming Languages and Operating Systems 2024. doi:10.1145\/3620665.3640366","DOI":"10.1145\/3620665.3640366"},{"key":"e_1_3_1_6_1","doi-asserted-by":"publisher","unstructured":"Emil Axelsson Koen Claessen Mary Sheeran Josef Svenningsson David Engdal and Anders Persson. The Design and Implementation of Feldspar an Embedded Language for Digital Signal Processing. In Proc. International Conference on Implementation and Application of Functional Languages 2010. doi:10.1007\/978-3-642-24276-2_8","DOI":"10.1007\/978-3-642-24276-2_8"},{"key":"e_1_3_1_7_1","unstructured":"Richard Boulton Andrew Gordon Mike Gordon John Harrison John Herbert and John Van Tassel. Experience with Embedding Hardware Description Languages in HOL. In Proc. International Conference on Theorem Provers in Circuit Design: Theory Practice and Experience 1992."},{"key":"e_1_3_1_8_1","doi-asserted-by":"publisher","unstructured":"Luca Chiodini Juha Sorva and Matthias Hauswirth. Teaching Programming with Graphics: Pitfalls and a Solution. In Proc. SPLASH-E 2023. doi:10.1145\/3622780.3623644","DOI":"10.1145\/3622780.3623644"},{"key":"e_1_3_1_9_1","unstructured":"Koen Claessen. Embedded Languages for Verifying Hardware. PhD dissertation Chalmers University 2001."},{"key":"e_1_3_1_10_1","unstructured":"William R. Cook. Object-Oriented Programming Versus Abstract Data Types. In Proc. REX School\/Workshop on Foundations of Object-Oriented Languages 1990."},{"key":"e_1_3_1_11_1","unstructured":"Jeffrey Dean and Sanjay Ghemawat. MapReduce: Simplified Data Processing on Large Clusters. In Proc. Operating Systems Design and Implementation 2004. https:\/\/www.usenix.org\/conference\/osdi-04\/mapreduce-simplified-data-processing-large-clusters"},{"key":"e_1_3_1_12_1","unstructured":"DuckDB Contributors. Window Functions. 2026. https:\/\/duckdb.org\/docs\/sql\/window_functions"},{"key":"e_1_3_1_13_1","doi-asserted-by":"publisher","unstructured":"Conal Elliott Sigbjorn Finne and Oege de Moor. Compiling Embedded Languages. In Proc. International Workshop on Semantics Applications and Implementation of Program Generation 2000. http:\/\/dx.doi.org\/10.1007\/3-540-45350-4_5 10.1007\/3-540-45350-4_5","DOI":"10.1007\/3-540-45350-4_5"},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(91)90036-W"},{"key":"e_1_3_1_15_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796806006010"},{"key":"e_1_3_1_16_1","doi-asserted-by":"publisher","unstructured":"Sigbjorn Finne and Simon Peyton Jones. Pictures: A Simple Structured Graphics Model. In Proc. Glasgow Workshop on Functional Programming 1995. doi:10.14236\/ewic\/FP1995.6","DOI":"10.14236\/ewic\/FP1995.6"},{"key":"e_1_3_1_17_1","doi-asserted-by":"publisher","unstructured":"Matthew Flatt Taylor Allred Nia Angle Stephen De Gabrielle Robert Bruce Findler Jack Firth Kiran Gopinathan Ben Greenman Siddhartha Kasivajhula Alex Knauth Jay McCarthy Sam Phillips Sorawee Porncharoenwase Jens Axel S\u00f8gaard and Sam Tobin-Hochstadt. Rhombus: A New Spin on Macros Without All the Parentheses. In Proc. Object-Oriented Programming Systems Languages and Applications 2023. doi:10.1145\/3622818","DOI":"10.1145\/3622818"},{"key":"e_1_3_1_18_1","doi-asserted-by":"publisher","unstructured":"Matthew Flatt and Robert Bruce Findler. Modular Object-Oriented Programming with Units and Mixins. In Proc. International Conference on Functional Programming 1998. doi:10.1145\/291251.289432","DOI":"10.1145\/291251.289432"},{"key":"e_1_3_1_19_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.20329086"},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","unstructured":"Jeremy Gibbons and Nicolas Wu. Folding Domain-Specific Languages: Deep and Shallow Embeddings (Functional Pearl). In Proc. International Conference on Functional Programming 2014. doi:10.1145\/2692915.2628138","DOI":"10.1145\/2692915.2628138"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","unstructured":"Peter Henderson. Functional Geometry. In Proc. Lisp and Functional Programming 1982. doi:10.1145\/800068.802148","DOI":"10.1145\/800068.802148"},{"key":"e_1_3_1_22_1","unstructured":"Paul Hudak. Modular Domain Specific Languages and Tools. In Proc. International Conference on Software Reuse 1998."},{"key":"e_1_3_1_23_1","doi-asserted-by":"publisher","unstructured":"Vojin Jovanovic Amir Shaikhha Sandro Stucki Vladimir Nikolaev Christoph Koch and Martin Odersky. Yin-Yang: Concealing the Deep Embedding of DSLs. In Proc. Generative Programming: Concepts and Experiences 2014. doi:10.1145\/2658761.2658771","DOI":"10.1145\/2658761.2658771"},{"key":"e_1_3_1_24_1","unstructured":"Samuel N. Kamin and David Hyatt. A Special-Purpose Language for Picture-Drawing. In Proc. USENIX Conference on Domain-Specific Languages 1997."},{"key":"e_1_3_1_25_1","volume-title":"PIC \u2014 a Graphics Language for Typesetting, User Manual","author":"Kernighan Brian W.","year":"1991","unstructured":"Brian W. Kernighan. PIC \u2014 a Graphics Language for Typesetting, User Manual. AT&T Bell Laboratories, CSTR-116, 1991."},{"key":"e_1_3_1_26_1","doi-asserted-by":"crossref","unstructured":"Shriram Krishnamurthi Matthias Felleisen and Daniel P. Friedman. Synthesizing Object-Oriented and Functional Design to Promote Re-Use. In Proc. European Conference on Object-Oriented Programming 1998.","DOI":"10.1007\/BFb0054088"},{"key":"e_1_3_1_27_1","doi-asserted-by":"publisher","unstructured":"Siu Kwan Lam Antoine Pitrou and Stanley Seibert. Numba: A LLVM-based Python JIT Compiler. In Proc. Workshop on the LLVM Compiler Infrastructure in HPC 2015. doi:10.1145\/2833157.2833162","DOI":"10.1145\/2833157.2833162"},{"key":"e_1_3_1_28_1","doi-asserted-by":"publisher","unstructured":"Kevin Matlage and Andy Gill. Every Animation Should Have a Beginning a Middle and an End. In Proc. Trends in Functional Programming 2010. doi:10.1007\/978-3-642-22941-1_10","DOI":"10.1007\/978-3-642-22941-1_10"},{"key":"e_1_3_1_29_1","doi-asserted-by":"publisher","unstructured":"Kazutaka Matsuda Samantha Frohlich Meng Wang and Nicolas Wu. Embedding by Unembedding. In Proc. International Conference on Functional Programming 2023. doi:10.1145\/3607830","DOI":"10.1145\/3607830"},{"key":"e_1_3_1_30_1","unstructured":"Meta Platforms Inc. React: A JavaScript Library for Building User Interfaces. 2013. https:\/\/react.dev\/"},{"key":"e_1_3_1_31_1","unstructured":"Dan Moldovan James Decker Fei Wang Andrew Johnson Brian Lee Zachary Nado D. Sculley Tiark Rompf and Alexander B. Wiltschko. AG: Imperative-style Coding with Graph-based Performance. In Proc. Machine Learning and Systems 2019. https:\/\/proceedings.mlsys.org\/paper_files\/paper\/2019\/hash\/e31cef6b735cf838db79202dbee7b093-Abstract.html"},{"key":"e_1_3_1_32_1","unstructured":"Observable. D3. 2011. https:\/\/d3js.org\/"},{"key":"e_1_3_1_33_1","unstructured":"Adam Paszke Sam Gross Francisco Massa Adam Lerer James Bradbury Gregory Chanan Trevor Killeen Zeming Lin Natalia Gimelshein Luca Antiga Alban Desmaison Andreas K\u00f6pf Edward Yang Zach DeVito Martin Raison Alykhan Tejani Sasank Chilamkurthy Benoit Steiner Lu Fang Junjie Bai and Soumith Chintala. PyTorch: An Imperative Style High-Performance Deep Learning Library. In Proc. Neural Information Processing Systems 2019."},{"key":"e_1_3_1_34_1","doi-asserted-by":"publisher","unstructured":"Gregory F. Pfister. A High Level Language Extension for Creating and Controlling Dynamic Pictures. In Proc. ACM SIGPLAN\/SIGGRAPH Symposium on Graphical Languages 1976. doi:10.1145\/800143.804725","DOI":"10.1145\/800143.804725"},{"key":"e_1_3_1_35_1","doi-asserted-by":"publisher","unstructured":"Mark Raasveldt and Hannes M\u00fchleisen. DuckDB: an Embeddable Analytical Database. In Proc. SIGMOD Conference 2019. doi:10.1145\/3299869.3320212","DOI":"10.1145\/3299869.3320212"},{"key":"e_1_3_1_36_1","unstructured":"John C. Reynolds. User-Defined Types and Procedural Data Structures as Complementary Approaches to Data Abstraction. In Proc. New Directions in Algorithmic Languages 1975."},{"key":"e_1_3_1_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10990-013-9096-9"},{"key":"e_1_3_1_38_1","doi-asserted-by":"publisher","DOI":"10.1109\/TVCG.2016.2599030"},{"key":"e_1_3_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/965161.806799"},{"key":"e_1_3_1_40_1","unstructured":"WC3 Group. CSS Snapshot 2024. 2024. https:\/\/www.w3.org\/TR\/2025\/NOTE-css-2024-20250225\/"},{"key":"e_1_3_1_41_1","unstructured":"Matei Zaharia Mosharaf Chowdhury Michael J. Franklin Scott Shenker and Ion Stoica. Resilient Distributed Datasets: A Fault-Tolerant Abstraction for In-Memory Cluster Computing. In Proc. Networked Systems Design and Implementation 2012."},{"key":"e_1_3_1_42_1","doi-asserted-by":"publisher","unstructured":"Jonathan Zong Josh Pollock Dylan Wootton and Arvind Satyanarayan. Animated Vega-Lite: Unifying Animation with a Grammar of Interactive Graphics. In Proc. IEEE Transactions on Visualization and Computer Graphics 2022. doi:10.1109\/TVCG.2022.3209369","DOI":"10.1109\/TVCG.2022.3209369"},{"key":"e_1_3_1_43_1","doi-asserted-by":"publisher","unstructured":"Douglas E. Zongker and David H. Salesin. On Creating Animated Presentations. In Proc. Eurographics\/SIGGRAPH Symposium on Computer Animation 2003. doi:10.2312\/SCA03\/298-308","DOI":"10.2312\/SCA03\/298-308"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3828692","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3828692","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T08:10:38Z","timestamp":1790410238000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3828692"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8,17]]},"references-count":42,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2026,8,17]]}},"alternative-id":["10.1145\/3828692"],"URL":"https:\/\/doi.org\/10.1145\/3828692","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,8,17]]},"assertion":[{"value":"2026-02-19","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-05-13","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-08-17","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}