{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,4]],"date-time":"2026-10-04T11:43:00Z","timestamp":1791114180460,"version":"4.1.0"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2009,4,1]],"date-time":"2009-04-01T00:00:00Z","timestamp":1238544000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2009,4]]},"abstract":"<jats:p>Interoperability is big business, a fact to which .NET, the JVM, and COM can attest. Language designers are well aware of this, and they are designing programming languages that reflect it\u2014for instance, SML.NET, F#, Mondrian, and Scala all treat interoperability as a central design feature. Still, current multi-language research tends not to focus on the semantics of these features, but only on how to implement them efficiently. In this article, we attempt to rectify that by giving a technique for specifying the operational semantics of a multi-language system as a composition of the models of its constituent languages. Our technique abstracts away the low-level details of interoperability like garbage collection and representation coherence, and lets us focus on semantic properties like type-safety, equivalence, and termination behavior. In doing so it allows us to adapt standard theoretical techniques such as subject-reduction, logical relations, and operational equivalence for use on multi-language systems. Generally speaking, our proofs of properties in a multi-language context are mutually referential versions of their single language counterparts.<\/jats:p><jats:p>We demonstrate our technique with a series of strategies for embedding a Scheme-like language into an ML-like language. We start by connecting very simple languages with a very simple strategy, and work our way up to languages that interact in sophisticated ways and have sophisticated features such as polymorphism and effects. Along the way, we prove relevant results such as type-soundness and termination for each system we present using adaptations of standard techniques.<\/jats:p><jats:p>Beyond giving simple expressive models, our studies have uncovered several interesting facts about interoperability. For example, higher-order function contracts naturally emerge as the glue to ensure that interoperating languages respect each other's type systems. Our models also predict that the embedding strategy where foreign values are opaque is as expressive as the embedding strategy where foreign values are translated to corresponding values in the other language, and we were able to experimentally verify this behavior using PLT Scheme's foreign function interface.<\/jats:p>","DOI":"10.1145\/1498926.1498930","type":"journal-article","created":{"date-parts":[[2009,4,15]],"date-time":"2009-04-15T13:37:07Z","timestamp":1239802627000},"page":"1-44","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":62,"title":["Operational semantics for multi-language programs"],"prefix":"10.1145","volume":"31","author":[{"given":"Jacob","family":"Matthews","sequence":"first","affiliation":[{"name":"University of Chicago"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Robert Bruce","family":"Findler","sequence":"additional","affiliation":[{"name":"University of Chicago"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2009,4,21]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/103135.103138"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1085114.1085118"},{"key":"e_1_2_1_3_1","volume-title":"Proceedings of the Workshop on Scheme and Functional Programming.","author":"Barzilay E.","unstructured":"Barzilay , E. and Orlovsky , D . 2004. Foreign interface for PLT Scheme . In Proceedings of the Workshop on Scheme and Functional Programming. Barzilay, E. and Orlovsky, D. 2004. Foreign interface for PLT Scheme. In Proceedings of the Workshop on Scheme and Functional Programming."},{"key":"e_1_2_1_4_1","volume-title":"Proceedings of the 4th Tcl\/Tk Workshop. 129--139","author":"Beazley D.","year":"1996","unstructured":"Beazley , D. 1996 . SWIG: An easy to use tool for integrating scripting languages with C and C++ . In Proceedings of the 4th Tcl\/Tk Workshop. 129--139 . Beazley, D. 1996. SWIG: An easy to use tool for integrating scripting languages with C and C++. In Proceedings of the 4th Tcl\/Tk Workshop. 129--139."},{"key":"e_1_2_1_5_1","unstructured":"Beazley D. 1997. Pointers constraints and typemaps. In SWIG 1.1 Users Manual. Beazley D. 1997. Pointers constraints and typemaps. In SWIG 1.1 Users Manual."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796804005398"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/317636.317791"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1013963.1013987"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1571-0661(05)80452-9"},{"key":"e_1_2_1_10_1","volume-title":"Combinators and functional programming languages, G. Cousineau, P.-L","author":"Cardelli L.","unstructured":"Cardelli , L. 1986. Amber . In Combinators and functional programming languages, G. Cousineau, P.-L . Curien, and B. Robinet, Eds. Vol. 242. Springer-Verlag . Cardelli, L. 1986. Amber. In Combinators and functional programming languages, G. Cousineau, P.-L. Curien, and B. Robinet, Eds. Vol. 242. Springer-Verlag."},{"key":"e_1_2_1_11_1","unstructured":"Chakravarty M. M. T. 2002. The Haskell 98 foreign function interface 1.0. Chakravarty M. M. T. 2002. The Haskell 98 foreign function interface 1.0."},{"key":"e_1_2_1_12_1","unstructured":"Chambers C. and The Cecil Group. 2004. The Cecil language: Specification and rationale version 3.2. Tech. rep. Department of Computer Science and Engineering University of Washington. February. Chambers C. and The Cecil Group. 2004. The Cecil language: Specification and rationale version 3.2. Tech. rep. Department of Computer Science and Engineering University of Washington. February."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(91)90036-W"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(87)90109-5"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(92)90014-7"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/11737414_16"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/581478.581484"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/317636.317790"},{"key":"e_1_2_1_19_1","volume-title":"Proceedings of the Workshop on Multi-Language Infrastructure and Interoperability (BABEL).","author":"Fisher K.","unstructured":"Fisher , K. , Pucella , R. , and Reppy , J . 2001. A framework for interoperability . In Proceedings of the Workshop on Multi-Language Infrastructure and Interoperability (BABEL). Fisher, K., Pucella, R., and Reppy, J. 2001. A framework for interoperability. In Proceedings of the Workshop on Multi-Language Infrastructure and Interoperability (BABEL)."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111059"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065019"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/1377492.1377493"},{"key":"e_1_2_1_23_1","volume-title":"Proofs and Types. Cambridge Tracts in Theoretical Computer Science","volume":"7","author":"Girard J.-Y.","unstructured":"Girard , J.-Y. , Lafont , Y. , and Taylor , P . 1989 . Proofs and Types. Cambridge Tracts in Theoretical Computer Science , vol. 7 . Cambridge University Press. Girard, J.-Y., Lafont, Y., and Taylor, P. 1989. Proofs and Types. Cambridge Tracts in Theoretical Computer Science, vol. 7. Cambridge University Press."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/360204.360228"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1094811.1094830"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/371880.371887"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)00004-2"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/224164.224203"},{"key":"e_1_2_1_29_1","volume-title":"Tech. Rep. FIT-TR-97-06","author":"Ibrahim R.","year":"1997","unstructured":"Ibrahim , R. and Szyperski , C . 1997 . The COMEL language. Tech. Rep. FIT-TR-97-06 , Faculty of Information Technology, Queensland University of Technology , Brisbane, Australia . Ibrahim, R. and Szyperski, C. 1997. The COMEL language. Tech. Rep. FIT-TR-97-06, Faculty of Information Technology, Queensland University of Technology, Brisbane, Australia."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2006.08.014"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1571-0661(05)80451-7"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796800000125"},{"key":"e_1_2_1_34_1","unstructured":"Matthews J. and Ahmed A. 2008. Parametric polymorphism through run-time sealing or theorems for low low prices&excl; In Proceedings of the European Symposium on Programming (ESOP). Matthews J. and Ahmed A. 2008. Parametric polymorphism through run-time sealing or theorems for low low prices&excl; In Proceedings of the European Symposium on Programming (ESOP)."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190220"},{"key":"e_1_2_1_36_1","volume-title":"Proceedings of the International Conference on Rewriting Techniques and Applications (RTA).","author":"Matthews J.","unstructured":"Matthews , J. , Findler , R. B. , Flatt , M. , and Felleisen , M . 2004. A visual environment for developing context-sensitive term rewriting systems . In Proceedings of the International Conference on Rewriting Techniques and Applications (RTA). Matthews, J., Findler, R. B., Flatt, M., and Felleisen, M. 2004. A visual environment for developing context-sensitive term rewriting systems. In Proceedings of the International Conference on Rewriting Techniques and Applications (RTA)."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.5555\/646158.680011"},{"key":"e_1_2_1_38_1","volume-title":"Proceedings of the 4th Workshop on Scheme and Functional Programming. 24--29","author":"Meunier P.","unstructured":"Meunier , P. and Silva , D . 2003. From Python to PLT Scheme . In Proceedings of the 4th Workshop on Scheme and Functional Programming. 24--29 . Meunier, P. and Silva, D. 2003. From Python to PLT Scheme. In Proceedings of the 4th Workshop on Scheme and Functional Programming. 24--29."},{"key":"e_1_2_1_39_1","unstructured":"Odersky M. Altherr P. Cremet V. Emir B. Micheloud S. Mihaylov N. Schinz M. Stenman E. and Zenger M. 2005. An Introduction to Scala. http:\/\/scala.epfl.ch\/docu\/files\/ScalaIntro.pdf. Odersky M. Altherr P. Cremet V. Emir B. Micheloud S. Mihaylov N. Schinz M. Stenman E. and Zenger M. 2005. An Introduction to Scala. http:\/\/scala.epfl.ch\/docu\/files\/ScalaIntro.pdf."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/158511.158529"},{"key":"e_1_2_1_41_1","unstructured":"Pierce B. and Sumii E. 2000. Relating cryptography and polymorphism. Unpublished manuscript. Pierce B. and Sumii E. 2000. Relating cryptography and polymorphism. Unpublished manuscript."},{"key":"e_1_2_1_42_1","volume-title":"Types and Programming Languages","author":"Pierce B. C.","unstructured":"Pierce , B. C. 2002. Types and Programming Languages . The MIT Press . Pierce, B. C. 2002. Types and Programming Languages. The MIT Press."},{"key":"e_1_2_1_43_1","volume-title":"Proceedings of the Workshop on Scheme and Functional Programming.","author":"Pinto P.","year":"2003","unstructured":"Pinto , P. 2003 . Dot-Scheme: A PLT Scheme FFI for the .NET framework . In Proceedings of the Workshop on Scheme and Functional Programming. Pinto, P. 2003. Dot-Scheme: A PLT Scheme FFI for the .NET framework. In Proceedings of the Workshop on Scheme and Functional Programming."},{"key":"e_1_2_1_44_1","doi-asserted-by":"crossref","unstructured":"Plotkin G. D. 1977. LCF considered as a programming language. Theor. Comput. Sci. 223--255. Plotkin G. D. 1977. LCF considered as a programming language. Theor. Comput. Sci. 223--255.","DOI":"10.1016\/0304-3975(77)90044-5"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/582419.582449"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/858570.858571"},{"key":"e_1_2_1_47_1","volume-title":"Proceedings of the IFIP Congress. 513--523","author":"Reynolds J. C.","year":"1983","unstructured":"Reynolds , J. C. 1983 . Types, abstraction and parametric polymorphism . In Proceedings of the IFIP Congress. 513--523 . Reynolds, J. C. 1983. Types, abstraction and parametric polymorphism. In Proceedings of the IFIP Congress. 513--523."},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01019462"},{"key":"e_1_2_1_49_1","doi-asserted-by":"crossref","unstructured":"Steckler P. 1999. MysterX: A Scheme toolkit for building interactive applications with COM. In Technology of Object-Oriented Languages and Systems (TOOL). 364--373. Steckler P. 1999. MysterX: A Scheme toolkit for building interactive applications with COM. In Technology of Object-Oriented Languages and Systems (TOOL). 364--373.","DOI":"10.1109\/TOOLS.1999.787565"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.5555\/959088.959091"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964015"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.2307\/2271658"},{"key":"e_1_2_1_53_1","volume-title":"Proceedings of the European Symposium on Programming (ESOP). 128--146","author":"Trifonov V.","unstructured":"Trifonov , V. and Shao , Z . 1999. Safe and principled language interoperation . In Proceedings of the European Symposium on Programming (ESOP). 128--146 . Trifonov, V. and Shao, Z. 1999. Safe and principled language interoperation. In Proceedings of the European Symposium on Programming (ESOP). 128--146."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1093"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/317636.317799"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1498926.1498930","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1498926.1498930","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T13:38:39Z","timestamp":1750253919000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1498926.1498930"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2009,4]]},"references-count":54,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2009,4]]}},"alternative-id":["10.1145\/1498926.1498930"],"URL":"https:\/\/doi.org\/10.1145\/1498926.1498930","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2009,4]]},"assertion":[{"value":"2007-05-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2008-05-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-04-21","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}