{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T11:08:47Z","timestamp":1790075327389,"version":"4.0.1"},"reference-count":38,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T00:00:00Z","timestamp":1780876800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CCF-2143061"],"award-info":[{"award-number":["CCF-2143061"]}],"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,6,8]]},"abstract":"<jats:p>\n                    We describe a comprehensive compilation approach for relational algebra, centered on an abstract loop-based intermediate representation (IR) that can express fused implementations of relational algebra operators on both sets and multisets. The loops are abstracted away from physical data structures thus making it easier to optimize. We show how to lower relational algebra query plan trees to the IR, including the complex operators that are used in production database systems, such as outer joins, non-equi joins, and differences. We then show how to compile this IR to efficient C++ code that co-iterates over the physical data structures present in relational algebra expressions. Finally, we show that our approach is portable across data structures. Since our approach can fuse across disparate operators, it achieves a\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>3.8<\/mml:mn>\n                          <mml:mtext>\u00d7\u00a0speedup<\/mml:mtext>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    (\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>0.8<\/mml:mn>\n                          <mml:mtext>\u2013<\/mml:mtext>\n                          <mml:mn>12.1<\/mml:mn>\n                          <mml:mtext>\u00d7<\/mml:mtext>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    ) compared to Hyper on selected LSQB benchmarks and worst-case optimal triangle queries. Our compiler also generates code of high quality: it has similar sequential performance to Hyper on TPC-H with a\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>1.0<\/mml:mn>\n                          <mml:mtext>\u00d7\u00a0speedup<\/mml:mtext>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    (\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>0.4<\/mml:mn>\n                          <mml:mtext>\u2013<\/mml:mtext>\n                          <mml:mn>4.3<\/mml:mn>\n                          <mml:mtext>\u00d7<\/mml:mtext>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    ) and is approaching their parallel performance with a\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>0.6<\/mml:mn>\n                          <mml:mtext>\u00d7\u00a0speedup<\/mml:mtext>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mfenced>\n                            <mml:mrow>\n                              <mml:mn>0.2<\/mml:mn>\n                              <mml:mtext>\u2013<\/mml:mtext>\n                              <mml:mn>1.8<\/mml:mn>\n                              <mml:mtext>\u00d7<\/mml:mtext>\n                            <\/mml:mrow>\n                          <\/mml:mfenced>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    .\n                  <\/jats:p>","DOI":"10.1145\/3808283","type":"journal-article","created":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T18:04:09Z","timestamp":1780941849000},"page":"904-927","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["A Compiler for Fused Relational Operations on Multisets"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9281-4156","authenticated-orcid":false,"given":"James","family":"Dong","sequence":"first","affiliation":[{"name":"Stanford University, Stanford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2267-903X","authenticated-orcid":false,"given":"Fredrik","family":"Kjolstad","sequence":"additional","affiliation":[{"name":"Stanford University, Stanford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,6,8]]},"reference":[{"key":"e_1_3_2_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1376616.1376712"},{"key":"e_1_3_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3129246"},{"key":"e_1_3_2_4_1","first-page":"225","article-title":"MonetDB\/X100: Hyper-Pipelining Query Execution","volume":"5","author":"Boncz Peter A","year":"2005","unstructured":"Peter A Boncz, Marcin Zukowski, and Niels Nes. 2005. MonetDB\/X100: Hyper-Pipelining Query Execution.. In Cidr, Vol. 5. 225\u2013237. https:\/\/www.cidrdb.org\/cidr2005\/papers\/P19.pdf","journal-title":"Cidr"},{"key":"e_1_3_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/358769.358784"},{"key":"e_1_3_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/275487.275492"},{"key":"e_1_3_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276493"},{"key":"e_1_3_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/362384.362685"},{"key":"e_1_3_2_9_1","unstructured":"Transaction Processing Performance Council. 2022. TPC Benchmark\u2122 H. https:\/\/www.tpc.org\/tpch\/"},{"key":"e_1_3_2_10_1","doi-asserted-by":"publisher","unstructured":"James Dong and Fredrik Berg Kjolstad. 2026. Artifact for A Compiler for Fused Relational Operations on Multisets. https:\/\/doi.org\/10.5281\/zenodo.19662739 10.5281\/zenodo.19662739","DOI":"10.5281\/zenodo.19662739"},{"key":"e_1_3_2_11_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407797"},{"key":"e_1_3_2_12_1","volume-title":"Database Systems: The Complete Book","author":"Garcia-Molina Hector","year":"2008","unstructured":"Hector Garcia-Molina, Jeffrey D. Ullman, and Jennifer Widom. 2008. Database Systems: The Complete Book (2 ed.). Prentice Hall Press, USA.","edition":"2"},{"key":"e_1_3_2_13_1","doi-asserted-by":"publisher","DOI":"10.1109\/69.273032"},{"key":"e_1_3_2_14_1","doi-asserted-by":"publisher","DOI":"10.1561\/1900000002"},{"key":"e_1_3_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485505"},{"key":"e_1_3_2_16_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2011.5767867"},{"key":"e_1_3_2_17_1","doi-asserted-by":"publisher","DOI":"10.14778\/3275366.3284966"},{"key":"e_1_3_2_18_1","doi-asserted-by":"publisher","DOI":"10.5555\/3314872.3314894"},{"key":"e_1_3_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3133901"},{"key":"e_1_3_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3591268"},{"key":"e_1_3_2_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45523-X_9"},{"key":"e_1_3_2_22_1","doi-asserted-by":"publisher","DOI":"10.14778\/3151113.3151114"},{"key":"e_1_3_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3461837.3464516"},{"key":"e_1_3_2_24_1","unstructured":"Thomas Neumann and Michael J. Freitag. 2020. Umbra: A Disk-Based System with In-Memory Performance. In 10th Conference on Innovative Data Systems Research CIDR 2020 Amsterdam The Netherlands January 12-15 2020 Online Proceedings. www.cidrdb.org. http:\/\/cidrdb.org\/cidr2020\/papers\/p29-neumann-cidr20.pdf"},{"key":"e_1_3_2_25_1","doi-asserted-by":"publisher","unstructured":"Hung Ngo Ely Porat Christopher R\u00e9 and Atri Rudra. 2012. Worst-case Optimal Join Algorithms. Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems 37\u201348. https:\/\/doi.org\/10.1145\/2213556.2213565 10.1145\/2213556.2213565","DOI":"10.1145\/2213556.2213565"},{"key":"e_1_3_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2590989.2590991"},{"key":"e_1_3_2_27_1","unstructured":"Shoumik Palkar. 2017. TPC-H Benchmarks. https:\/\/github.com\/sppalkia\/tpch-benches"},{"issue":"1","key":"e_1_3_2_28_1","article-title":"Self-Driving Database Management Systems","volume":"4","author":"Pavlo Andrew","year":"2017","unstructured":"Andrew Pavlo, Gustavo Angulo, Joy Arulraj, Haibin Lin, Jiexi Lin, Lin Ma, Prashanth Menon, Todd C Mowry, Matthew Perron, Ian Quah, 2017. Self-Driving Database Management Systems. In CIDR, Vol. 4. 1. https:\/\/www.cidrdb.org\/cidr2017\/papers\/p42-pavlo-cidr17.pdf","journal-title":"CIDR"},{"key":"e_1_3_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3320212"},{"key":"e_1_3_2_30_1","doi-asserted-by":"publisher","unstructured":"Alexander J Root Bobby Yan Peiming Liu Christophe Gyurgyik Aart J.C. Bik and Fredrik Kjolstad. 2024. Compilation of Shape Operators on Sparse Arrays. Proc. ACM Program. Lang. 8 OOPSLA2 Article 312 (Oct. 2024) 27 pages. https:\/\/doi.org\/10.1145\/3689752 10.1145\/3689752","DOI":"10.1145\/3689752"},{"key":"e_1_3_2_31_1","unstructured":"Benedek Rozemberczki and Rik Sarkar. 2021. Twitch Gamers: a Dataset for Evaluating Proximity Preserving and Structural Role-based Node Embeddings. arXiv:2101.03091 [cs.SI]"},{"key":"e_1_3_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/582095.582099"},{"key":"e_1_3_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428226"},{"key":"e_1_3_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3527333"},{"key":"e_1_3_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/320473.320476"},{"key":"e_1_3_2_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45523-x_17"},{"key":"e_1_3_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2764946"},{"key":"e_1_3_2_38_1","unstructured":"Todd L. Veldhuizen. 2013. Leapfrog Triejoin: a worst-case optimal join algorithm. arXiv:1210.0481 [cs.DB]"},{"key":"e_1_3_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3589295"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808283","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808283","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T10:50:48Z","timestamp":1790074248000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3808283"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,8]]},"references-count":38,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2026,6,8]]}},"alternative-id":["10.1145\/3808283"],"URL":"https:\/\/doi.org\/10.1145\/3808283","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,8]]},"assertion":[{"value":"2025-11-13","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-03","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-06-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}