{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T12:00:04Z","timestamp":1790424004621,"version":"4.1.0"},"reference-count":29,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA1","license":[{"start":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T00:00:00Z","timestamp":1775779200000},"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":["2216964"],"award-info":[{"award-number":["2216964"]}],"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,4,10]]},"abstract":"<jats:p>\n                    We present a new pure functional language and type system with borrows with lifetimes, and a corresponding fully-automatic type inference procedure. Inference provides users the performance benefits of borrows with lifetimes without requiring user annotation. If the user\u2019s program cannot be typed, inference inserts a handful of reference count operations so that it can be typed. We provide a heap semantics for our borrowing language and prove a soundness theorem, guaranteeing that well-typed programs do not violate memory safety. We implement our memory management strategy as part of the Morphic language stack and compare it to Perceus, a state-of-the-art reference-counting technique based on linear type inference. We find that our system is able to eliminate almost all reference count operations across a range of programs, reducing reference count increments by 75\u2013100% on all benchmarks with reference count increments under the baseline. As a result, we achieve a 1\n                    <jats:italic toggle=\"yes\">.<\/jats:italic>\n                    48\u00d7 geomean speedup overall on all benchmarks.\n                  <\/jats:p>","DOI":"10.1145\/3798221","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"597-623","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Fully-Automatic Type Inference for Borrows with Lifetimes"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-9478-8757","authenticated-orcid":false,"given":"William","family":"Brandon","sequence":"first","affiliation":[{"name":"Massachusetts Institute of Technology, Cambridge, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1901-1880","authenticated-orcid":false,"given":"Benjamin","family":"Driscoll","sequence":"additional","affiliation":[{"name":"Stanford University, Stanford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-9486-4060","authenticated-orcid":false,"given":"Frank","family":"Dai","sequence":"additional","affiliation":[{"name":"Unaffiliated, San Francisco, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6243-9543","authenticated-orcid":false,"given":"Jonathan","family":"Ragan-Kelley","sequence":"additional","affiliation":[{"name":"Massachusetts Institute of Technology, Cambridge, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3126-7771","authenticated-orcid":false,"given":"Mae","family":"Milano","sequence":"additional","affiliation":[{"name":"Princeton University, Princeton, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3723-9555","authenticated-orcid":false,"given":"Alex","family":"Aiken","sequence":"additional","affiliation":[{"name":"Stanford University, Stanford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"publisher","DOI":"10.1145\/3517804.3524140"},{"key":"e_1_3_2_3_2","volume-title":"Ideal Hash Trees","author":"Bagwell Phil","year":"2001","unstructured":"Phil Bagwell. 2001. Ideal Hash Trees. Technical Report EPFL-REPORT-64398. \u00c9cole Polytechnique F\u00e9d\u00e9rale de Lausanne. https:\/\/infoscience.epfl.ch\/record\/64398"},{"key":"e_1_3_2_4_2","volume-title":"RRB-Trees: Efficient Immutable Vectors","author":"Bagwell Phil","year":"2011","unstructured":"Phil Bagwell and Tiark Rompf. 2011. RRB-Trees: Efficient Immutable Vectors. Technical Report EPFL-REPORT-169879. \u00c9cole Polytechnique F\u00e9d\u00e9rale de Lausanne. https:\/\/infoscience.epfl.ch\/record\/169879"},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3485516"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380180902"},{"key":"e_1_3_2_7_2","unstructured":"William Brandon Benjamin Driscoll Frank Dai and Wilson Berkow. 2020. Morphic Research Language. https:\/\/morphic-lang.org [Online; accessed 29-July-2025]."},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3591260"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","unstructured":"William Brandon Benjamin Driscoll Frank Dai Jonathan Ragan-Kelley Mae Milano and Alex Aiken. 2025. Fully- Automatic Type Inference for Borrows with Lifetimes. doi:10.5281\/zenodo.16605090","DOI":"10.5281\/zenodo.16605090"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/155090.155113"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.5555\/3002812"},{"key":"e_1_3_2_12_2","unstructured":"Rich Hickey. 2006. Clojure. https:\/\/clojure.org [Online; accessed 29-July-2025]."},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/318593.318660"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/503502.503505"},{"key":"e_1_3_2_15_2","first-page":"275","volume-title":"Proceedings of the General Track of the Annual Conference on USENIX Annual Technical Conference (ATEC \u201902)","author":"Jim Trevor","year":"2002","unstructured":"Trevor Jim, J. Greg Morrisett, Dan Grossman, Michael W. Hicks, James Cheney, and Yanling Wang. 2002. Cyclone: A Safe Dialect of C. In Proceedings of the General Track of the Annual Conference on USENIX Annual Technical Conference (ATEC \u201902). USENIX Association, USA, 275\u2013288."},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","unstructured":"Ralf Jung Hoang-Hai Dang Jeehoon Kang and Derek Dreyer. 2019. Stacked Borrows: An Aliasing Model for Rust. Proc. ACM Program. Lang. 4 POPL Article 41 (dec 2019) 32 pages. doi:10.1145\/3371109","DOI":"10.1145\/3371109"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/3158154"},{"key":"e_1_3_2_18_2","volume-title":"The Rust Programming Language","author":"Klabnik Steve","year":"2019","unstructured":"Steve Klabnik and Carol Nichols. 2019. The Rust Programming Language. No Starch Press, San Francisco, CA."},{"key":"e_1_3_2_19_2","volume-title":"Optimizing Reference Counting with Borrowing","author":"Lorenzen Anton Felix","year":"2021","unstructured":"Anton Felix Lorenzen. 2021. Optimizing Reference Counting with Borrowing. Master\u2019s thesis. Rhenish Friedrich Wilhelm University of Bonn."},{"key":"e_1_3_2_20_2","unstructured":"Ivan Maidanski. 2025. Boehm-Demers-Weiser Garbage Collector. https:\/\/github.com\/bdwgc\/bdwgc"},{"key":"e_1_3_2_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/3443420"},{"key":"e_1_3_2_22_2","volume-title":"Patina: A Formalization of the Rust Programming Language","author":"Reed Eric","year":"2015","unstructured":"Eric Reed. 2015. Patina: A Formalization of the Rust Programming Language. Technical Report UW-CSE-15-03-02. University of Washington. https:\/\/dada.cs.washington.edu\/research\/tr\/2015\/03\/UW-CSE-15-03-02.pdf"},{"key":"e_1_3_2_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3453483.3454032"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.2140\/pjm.1955.5.285"},{"key":"e_1_3_2_25_2","unstructured":"The Rust Project Developers. 2018. Rust Compiler Development Guide (rustc-dev-guide). https:\/\/github.com\/rustlang\/rustc-dev-guide\/tree\/06424769ca1ec2dee8d80a4be0ea25d563b4f86d"},{"key":"e_1_3_2_26_2","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1996.2613"},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3412932.3412935"},{"key":"e_1_3_2_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3735592"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292545"},{"key":"e_1_3_2_30_2","unstructured":"Aaron Weiss Olek Gierczak Daniel Patterson and Amal Ahmed. 2021. Oxide: The Essence of Rust. arXiv:1903.00982 [cs.PL]"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798221","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798221","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:21:24Z","timestamp":1790421684000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798221"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":29,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798221"],"URL":"https:\/\/doi.org\/10.1145\/3798221","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-09","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-10","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}