{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T19:07:59Z","timestamp":1760123279567,"version":"3.41.0"},"reference-count":58,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","license":[{"start":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T00:00:00Z","timestamp":1697414400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Swiss National Science Foundation","award":["200429"],"award-info":[{"award-number":["200429"]}]},{"name":"Basic Research Fund of the University of St. Gallen","award":["IPF 1031569"],"award-info":[{"award-number":["IPF 1031569"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2023,10,16]]},"abstract":"<jats:p>Several distributed programming language solutions have been proposed to reason about the placement of data, computations, and peers interaction. Such solutions include, among the others, multitier programming, choreographic programming and various approaches based on behavioral types. These methods statically ensure safety properties thanks to a complete knowledge about placement of data and computation at compile time. In distributed systems, however, dynamic placement of computation and data is crucial to enable performance optimizations, e.g., driven by data locality or in presence of a number of other constraints such as security and compliance regarding data storage location. Unfortunately, in existing programming languages, dynamic placement conflicts with static reasoning about distributed programs: the flexibility required by dynamic placement hinders statically tracking the location of data and computation.<\/jats:p>\n          <jats:p>In this paper we present Dyno, a programming language that enables static reasoning about dynamic placement. Dyno features a type system where values are explicitly placed, but in contrast to existing approaches, placed values are also first class, ensuring that they can be passed around and referred to from other locations. Building on top of this mechanism, we provide a novel interpretation of dynamic placement as unions of placement types. We formalize type soundness, placement correctness (as part of type soundness) and architecture conformance. In case studies and benchmarks, our evaluation shows that Dyno enables static reasoning about programs even in presence of dynamic placement, ensuring type safety and placement correctness of programs at negligible performance cost. We reimplement an Android app with \u223c 7 K LOC in Dyno, find a bug in the existing implementation, and show that the app's approach is representative of a common way to implement dynamic placement found in over 100 apps in a large open-source app store.<\/jats:p>","DOI":"10.1145\/3622873","type":"journal-article","created":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T15:41:29Z","timestamp":1697470889000},"page":"2142-2170","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Type-Safe Dynamic Placement with First-Class Placed Values"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-5042-1207","authenticated-orcid":false,"given":"George","family":"Zakhour","sequence":"first","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1288-1485","authenticated-orcid":false,"given":"Pascal","family":"Weisenburger","sequence":"additional","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9324-8894","authenticated-orcid":false,"given":"Guido","family":"Salvaneschi","sequence":"additional","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2023,10,16]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the 2000 USENIX Annual Technical Conference (USENIX ATC \u201900)","author":"Amiri Khalil","year":"2000","unstructured":"Khalil Amiri , David Petrou , Gregory R. Ganger , and Garth A. Gibson . 2000. Dynamic Function Placement for Data-Intensive Cluster Computing . In Proceedings of the 2000 USENIX Annual Technical Conference (USENIX ATC \u201900) . USENIX Association, San Diego, CA. 16 pages. https:\/\/www.usenix.org\/conference\/ 2000 -usenix-annual-technical-conference\/dynamic-function-placement-data-intensive-cluster Khalil Amiri, David Petrou, Gregory R. Ganger, and Garth A. Gibson. 2000. Dynamic Function Placement for Data-Intensive Cluster Computing. In Proceedings of the 2000 USENIX Annual Technical Conference (USENIX ATC \u201900). USENIX Association, San Diego, CA. 16 pages. https:\/\/www.usenix.org\/conference\/2000-usenix-annual-technical-conference\/dynamic-function-placement-data-intensive-cluster"},{"key":"e_1_2_1_2_1","unstructured":"AntennaPod Developers. 2011. AntennaPod \u2013 The Open Podcast Player. https:\/\/antennapod.org Accessed: 2023-07-30 Commit: 88289d0 \t\t\t\t  AntennaPod Developers. 2011. AntennaPod \u2013 The Open Podcast Player. https:\/\/antennapod.org Accessed: 2023-07-30 Commit: 88289d0"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-55814-7_20"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2022.20"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3285956"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2004.07.036"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.3929\/ethz-a-007086593"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2677004"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1109\/NOMS.2014.6838412"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-74792-5_12"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-39570-8_8"},{"key":"e_1_2_1_12_1","volume-title":"Java RMI: Remote Method Invocation","author":"Downing Troy Bryan","unstructured":"Troy Bryan Downing . 1998. Java RMI: Remote Method Invocation ( 1 st ed.). IDG Books Worldwide, Inc. , USA. isbn:978-0-7645-8043-7 Troy Bryan Downing. 1998. Java RMI: Remote Method Invocation (1st ed.). IDG Books Worldwide, Inc., USA. isbn:978-0-7645-8043-7","edition":"1"},{"key":"e_1_2_1_13_1","unstructured":"Saverio Giallorenzo Fabrizio Montesi and Marco Peressotti. 2020. Choreographies as Objects. arxiv:2005.09520. \t\t\t\t  Saverio Giallorenzo Fabrizio Montesi and Marco Peressotti. 2020. Choreographies as Objects. arxiv:2005.09520."},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2021.22"},{"key":"e_1_2_1_15_1","unstructured":"Ciaran Gultnieks. 2010. F-Droid \u2013 Free and Open Source Android App Repository. https:\/\/f-droid.org Accessed: 2023-07-30 \t\t\t\t  Ciaran Gultnieks. 2010. F-Droid \u2013 Free and Open Source Android App Repository. https:\/\/f-droid.org Accessed: 2023-07-30"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-11245-9_14"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328472"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1135777.1135865"},{"key":"e_1_2_1_19_1","unstructured":"Emilien Kenler and Federico Razzoli. 2015. MariaDB Essentials. Packt Publishing Ltd. isbn:978-1-78398-286-8 \t\t\t\t  Emilien Kenler and Federico Razzoli. 2015. MariaDB Essentials. Packt Publishing Ltd. isbn:978-1-78398-286-8"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.23638\/LMCS-13(1:13)2017"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/SEFM.2008.11"},{"issue":"4","key":"e_1_2_1_22_1","first-page":"20","article-title":"Akka Scala Documentation","volume":"2","author":"Lightbend Inc.","year":"2020","unstructured":"Lightbend Inc. 2020 . Akka Scala Documentation , Release 2 . 4 . 20 . Accessed: 2023-07-30 Lightbend Inc. 2020. Akka Scala Documentation, Release 2.4.20. Accessed: 2023-07-30","journal-title":"Release"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/233269.233346"},{"key":"e_1_2_1_24_1","volume-title":"Myers","author":"Liskov Barbara","year":"1995","unstructured":"Barbara Liskov , Dorothy Curtis , Mark Day , Sanjay Ghemawat , Robert Gruber , Paul Johnson , and Andrew C . Myers . 1995 . Theta Reference Manual. http:\/\/www.cs.cornell.edu\/andru\/papers\/thetaref.pdf Accessed : 2023-07-30 Barbara Liskov, Dorothy Curtis, Mark Day, Sanjay Ghemawat, Robert Gruber, Paul Johnson, and Andrew C. Myers. 1995. Theta Reference Manual. http:\/\/www.cs.cornell.edu\/andru\/papers\/thetaref.pdf Accessed: 2023-07-30"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.3233\/JCS-15805"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1629575.1629606"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-23165-5_20"},{"key":"e_1_2_1_28_1","volume-title":"Redis Cookbook: Practical Techniques for Fast Data Manipulation. O\u2019Reilly Media. isbn:978-1-4493-0504-8","author":"Macedo Tiago","year":"2011","unstructured":"Tiago Macedo and Fred Oliveira . 2011 . Redis Cookbook: Practical Techniques for Fast Data Manipulation. O\u2019Reilly Media. isbn:978-1-4493-0504-8 Tiago Macedo and Fred Oliveira. 2011. Redis Cookbook: Practical Techniques for Fast Data Manipulation. O\u2019Reilly Media. isbn:978-1-4493-0504-8"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/PERCOM.2004.1276864"},{"volume-title":"Mastodon: Your self-hosted, globally interconnected microblogging community. https:\/\/github.com\/mastodon\/mastodon Accessed: 2023-07-30","year":"2016","key":"e_1_2_1_30_1","unstructured":"Mastodon. 2016 . Mastodon: Your self-hosted, globally interconnected microblogging community. https:\/\/github.com\/mastodon\/mastodon Accessed: 2023-07-30 Mastodon. 2016. Mastodon: Your self-hosted, globally interconnected microblogging community. https:\/\/github.com\/mastodon\/mastodon Accessed: 2023-07-30"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44202-9_13"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-33612-1_1"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78663-4_9"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2004.1319623"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.22152\/programming-journal.org\/2018\/2\/3"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/2661136.2661146"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.23638\/LMCS-13(2:1)2017"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-47958-3_20"},{"key":"e_1_2_1_39_1","volume-title":"Opa: Language Support for a Sane, Safe and Secure Web","author":"Rajchenbach-Teller David","year":"2010","unstructured":"David Rajchenbach-Teller and Franois-R\u00e9gis Sinot . 2010 . Opa: Language Support for a Sane, Safe and Secure Web . http:\/\/owasp.org\/www-pdf-archive\/OWASP_AppSec_Research_2010_OPA_by_Rajchenbach-Teller.pdf In Proceedings of the OWASP AppSec Research. Accessed: 2023-07-30 David Rajchenbach-Teller and Franois-R\u00e9gis Sinot. 2010. Opa: Language Support for a Sane, Safe and Secure Web. http:\/\/owasp.org\/www-pdf-archive\/OWASP_AppSec_Research_2010_OPA_by_Rajchenbach-Teller.pdf In Proceedings of the OWASP AppSec Research. Accessed: 2023-07-30"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.22152\/programming-journal.org\/2020\/4\/6"},{"volume-title":"Companion to the 21th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA Companion \u201906)","author":"Serrano Manuel","key":"e_1_2_1_41_1","unstructured":"Manuel Serrano , Erick Gallesio , and Florian Loitsch . 2006. Hop , A Language for Programming the Web 2.0 . In Companion to the 21th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA Companion \u201906) . ACM , New York, NY, USA . Manuel Serrano, Erick Gallesio, and Florian Loitsch. 2006. Hop, A Language for Programming the Web 2.0. In Companion to the 21th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA Companion \u201906). ACM, New York, NY, USA."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951916"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/3607849"},{"key":"e_1_2_1_44_1","unstructured":"Alex K. Simpson. 1994. The Proof Theory and Semantics of Intuitionistic Modal Logic. Ph. D. Dissertation. http:\/\/hdl.handle.net\/1842\/407 \t\t\t\t  Alex K. Simpson. 1994. The Proof Theory and Semantics of Intuitionistic Modal Logic. Ph. D. Dissertation. http:\/\/hdl.handle.net\/1842\/407"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2509578.2509582"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2015.294"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1142\/S0218843017500010"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jlamp.2019.100486"},{"key":"e_1_2_1_49_1","unstructured":"Jim Waldo Geoff Wyant Ann Wollrath and Sam Kendall. 1994. A Note on Distributed Computing. https:\/\/scholar.harvard.edu\/waldo\/publications\/note-distributed-computing Sun Microsystems Laboratories Accessed: 2023-07-30 \t\t\t\t  Jim Waldo Geoff Wyant Ann Wollrath and Sam Kendall. 1994. A Note on Distributed Computing. https:\/\/scholar.harvard.edu\/waldo\/publications\/note-distributed-computing Sun Microsystems Laboratories Accessed: 2023-07-30"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276499"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2019.3"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/3397495"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1093"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.14778\/2876473.2876477"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.8148841"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/566340.566343"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2005.54"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1108\/IJWIS-06-2020-0032"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622873","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3622873","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T01:57:27Z","timestamp":1750298247000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622873"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,16]]},"references-count":58,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2023,10,16]]}},"alternative-id":["10.1145\/3622873"],"URL":"https:\/\/doi.org\/10.1145\/3622873","relation":{},"ISSN":["2475-1421"],"issn-type":[{"type":"electronic","value":"2475-1421"}],"subject":[],"published":{"date-parts":[[2023,10,16]]},"assertion":[{"value":"2023-10-16","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}