{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:57:14Z","timestamp":1790927834246,"version":"4.1.0"},"reference-count":31,"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>Relaxed Radix Balanced Trees (RRB-Trees) is one of the latest members in a family of persistent tree based data-structures that combine wide branching factors with simple and relatively flat structures. Like the battle-tested immutable sequences of Clojure and Scala, they have effectively constant lookup and updates, good cache utilization, but also logarithmic concatenation and slicing. Our goal is to bring the benefits of persistent data structures to the discipline of systems programming via generic yet efficient immutable vectors supporting transient batch updates. We describe a C++ implementation that can be integrated in the runtime of higher level languages with a C core (Lisps like Guile or Racket, but also Python or Ruby), thus widening the access to these persistent data structures.<\/jats:p>\n          <jats:p>\n            In this work we propose (1) an\n            <jats:italic>Embedding RRB-Tree<\/jats:italic>\n            (ERRB-Tree) data structure that efficiently stores arbitrary unboxed types, (2) a technique for implementing tree operations orthogonal to optimizations for a more compact representation of the tree, (3) a\n            <jats:italic>policy-based<\/jats:italic>\n            design to support multiple memory management and reclamation mechanisms (including automatic garbage collection and reference counting), (4) a model of\n            <jats:italic>transience<\/jats:italic>\n            based on move-semantics and reference counting, and (5) a definition of transience for confluent\n            <jats:italic>meld<\/jats:italic>\n            operations. Combining these techniques a performance comparable to that of mutable arrays can be achieved in many situations, while using the data structure in a functional way.\n          <\/jats:p>","DOI":"10.1145\/3110260","type":"journal-article","created":{"date-parts":[[2017,8,29]],"date-time":"2017-08-29T18:19:41Z","timestamp":1504030781000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":14,"title":["Persistence for the masses: RRB-vectors in a systems language"],"prefix":"10.1145","volume":"1","author":[{"given":"Juan Pedro Bol\u00edvar","family":"Puente","sequence":"first","affiliation":[{"name":"n.n., n.n."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,8,29]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44777-2_3"},{"key":"e_1_2_2_2_1","unstructured":"Andrei Alexandrescu. 2001. Modern C++ design: generic programming and design patterns applied. Addison-Wesley Longman Publishing Co. Inc. Boston MA USA.  Andrei Alexandrescu. 2001. Modern C++ design: generic programming and design patterns applied. Addison-Wesley Longman Publishing Co. Inc. Boston MA USA."},{"key":"e_1_2_2_3_1","volume-title":"Selected Papers from the International Seminar on Generic Programming","author":"Austern Matthew H."},{"key":"e_1_2_2_5_1","unstructured":"Phil Bagwell. 2001. Ideal Hash Trees. Es Grands Champs 1195 (2001).  Phil Bagwell. 2001. Ideal Hash Trees. Es Grands Champs 1195 (2001)."},{"key":"e_1_2_2_6_1","volume-title":"14th International Workshop. 34","author":"Bagwell Phil","year":"2002"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/381694.378821"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380180902"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380251203"},{"key":"e_1_2_2_11_1","unstructured":"H-J Boehm M Spertus and C Nelson. 2008. N2670: Minimal support for garbage collection and reachability-based leak detection (revised. (2008).  H-J Boehm M Spertus and C Nelson. 2008. N2670: Minimal support for garbage collection and reachability-based leak detection (revised. (2008)."},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611973099.50"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-008-9274-z"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/12130.12142"},{"key":"e_1_2_2_16_1","unstructured":"Richard Fabian. 2013. Data-Oriented Design. (2013). http:\/\/www.dataorienteddesign.com\/dodmain\/dodmain.html  Richard Fabian. 2013. Data-Oriented Design. (2013). http:\/\/www.dataorienteddesign.com\/dodmain\/dodmain.html"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.5555\/365411.365528"},{"key":"e_1_2_2_18_1","volume-title":"Reference: Racket. Technical Report PLT-TR-2010-1","author":"Flatt Matthew","year":"2010"},{"key":"e_1_2_2_19_1","unstructured":"Mark Galassi Jim Blandy Gary Houston Tim Pierce Neil Jerram Martin Grabm\u00fcller and Andy Wingo. 2002. Guile Reference Manual. (2002). https:\/\/www.gnu.org\/software\/guile\/manual\/guile.html  Mark Galassi Jim Blandy Gary Houston Tim Pierce Neil Jerram Martin Grabm\u00fcller and Andy Wingo. 2002. Guile Reference Manual. (2002). https:\/\/www.gnu.org\/software\/guile\/manual\/guile.html"},{"key":"e_1_2_2_20_1","unstructured":"Erich Gamma Richard Helm Ralph E. Johnson and John Vlissides. 1995. Design Patterns. Elements of Reusable ObjectOriented Software. Addison-Wesley.  Erich Gamma Richard Helm Ralph E. Johnson and John Vlissides. 1995. Design Patterns. Elements of Reusable ObjectOriented Software. Addison-Wesley."},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1297105.1297033"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2724525.2728790"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1408681.1408682"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796805005769"},{"key":"e_1_2_2_26_1","volume-title":"Handbook On Data Structures And applications","author":"Kaplan Haim","year":"2001"},{"key":"e_1_2_2_27_1","unstructured":"Jean Niklas L\u2019orange. 2014. Improving RRB-Tree Performance through Transience. Master\u2019s thesis. Norwegian University of Science and Technology.  Jean Niklas L\u2019orange. 2014. Improving RRB-Tree Performance through Transience. Master\u2019s thesis. Norwegian University of Science and Technology."},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2692956.2663188"},{"key":"e_1_2_2_29_1","doi-asserted-by":"crossref","unstructured":"C. Okasaki. 1999. Purely Functional Data Structures. Cambridge University Press. https:\/\/books.google.de\/books?id= SxPzSTcTalAC  C. Okasaki. 1999. Purely Functional Data Structures. Cambridge University Press. https:\/\/books.google.de\/books?id= SxPzSTcTalAC","DOI":"10.1017\/CBO9780511530104"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.5075\/epfl-thesis-6264"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/1542431.1542438"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/2858965.2814312"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/2993236.2993251"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2858949.2784739"},{"key":"e_1_2_2_35_1","volume-title":"Advanced Topics in Types and Programming Languages","author":"Walker D"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3110260","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3110260","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\/3110260"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,8,29]]},"references-count":31,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2017,8,29]]}},"alternative-id":["10.1145\/3110260"],"URL":"https:\/\/doi.org\/10.1145\/3110260","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"}}]}}