{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:59:33Z","timestamp":1790423973049,"version":"4.1.0"},"reference-count":76,"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"}],"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>Building a high-performance JIT-capable VM for a dynamic language has traditionally required a tremendous amount of time, money, and expertise. We present Deegen, a meta-compiler that allows users to generate a high-performance JIT-capable VM for their own language at an engineering cost similar to writing a simple interpreter. Deegen takes in the execution semantics of the bytecodes implemented as C++ functions, and automatically generates a two-tier VM execution engine with a state-of-the-art interpreter, a state-of-the-art baseline JIT, and the tier-switching logic that connects them into a self-adaptive system.<\/jats:p>\n                  <jats:p>We are the first to show how to automatically generate a baseline JIT compiler that rivals the current state of the art, and an interpreter that outperforms the current state of the art. Our performance comes from Deegen\u2019s ability to automatically apply many state-of-the-art optimizations that previously had to be hand-implemented. These optimizations include bytecode specialization and quickening, register pinning, tag register optimization, call inline caching, generic inline caching, JIT polymorphic IC, JIT IC inline slab, type-check removal and strength reduction, type-based slow-path extraction and outlining, JIT hot-cold code splitting, and JIT OSR-entry. As a result, the performance of the Deegen-generated interpreter and baseline JITs matches or surpasses state-of-the-art interpreters and baseline JITs.<\/jats:p>\n                  <jats:p>To evaluate Deegen, we use it to implement two languages: a Lua 5.1 VM called LuaJIT Remake (LJR) and a SOM VM called DSOM. Across 44 benchmarks, LJR\u2019s interpreter is on average 2.79\u00d7 faster than the official PUC Lua interpreter, and 1.31\u00d7 faster than LuaJIT\u2019s interpreter. LJR\u2019s baseline JIT has negligible compilation cost, and its execution performance is on average 4.60\u00d7 faster than PUC Lua and only 33% slower (but faster on 13\/44 benchmarks) than LuaJIT\u2019s optimizing JIT. Across 13 benchmarks, DSOM\u2019s interpreter is 4.28\u00d7-5.82\u00d7 faster than the five existing SOM interpreters, and DSOM\u2019s baseline JIT compiles 25.84\u00d7 faster than 2SOM\u2019s baseline JIT, while also generating code that runs 15.46\u00d7 faster.<\/jats:p>","DOI":"10.1145\/3798246","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"1266-1294","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Deegen: A JIT-Capable VM Generator for Dynamic Languages"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9943-6423","authenticated-orcid":false,"given":"Haoran","family":"Xu","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,4,10]]},"reference":[{"key":"e_1_3_1_2_1","unstructured":"Apple. 2003. WebKit JavaScriptCore JIT. Apple. https:\/\/github.com\/WebKit\/WebKit\/tree\/main\/Source\/JavaScriptCore"},{"key":"e_1_3_1_3_1","unstructured":"Apple. 2009. Baseline JIT Hot-Cold Splitting in JavaScriptCore. Apple. https:\/\/github.com\/WebKit\/WebKit\/blob\/safari-7614-branch\/Source\/JavaScriptCore\/jit\/JIT.cpp#L487"},{"key":"e_1_3_1_4_1","unstructured":"Edd Barrett Laurence Tratt Lukas Diekmann Bj\u00f6rn Pavel Durov and Jake Hughes. 2023. The yk meta-tracing system. King\u2019s College London. https:\/\/github.com\/ykjit\/yk"},{"key":"e_1_3_1_5_1","unstructured":"Jeff Bezanson Alan Edelman Stefan Karpinski and Viral B. Shah. 2012. The Julia Programming Language. Julia. https:\/\/julialang.org\/"},{"key":"e_1_3_1_6_1","doi-asserted-by":"publisher","DOI":"10.5555\/1795822"},{"key":"e_1_3_1_7_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2013.02.001"},{"key":"e_1_3_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1565824.1565827"},{"key":"e_1_3_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/1899661.1869633"},{"key":"e_1_3_1_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-31985-6_18"},{"key":"e_1_3_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3617651.3622982"},{"key":"e_1_3_1_12_1","unstructured":"CLBG. 2008. The Computer Language Benchmarks Game. CLBG. https:\/\/benchmarksgame-team.pages.debian.net\/benchmarksgame\/"},{"key":"e_1_3_1_13_1","unstructured":"Chris Cummins. 2020. Deep Learning for Compilers. University of Edinburgh. See Table 1.1 of the thesis (page 18). https:\/\/chriscummins.cc\/u\/ed\/phd-thesis.pdf"},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","DOI":"10.1002\/spe.434"},{"key":"e_1_3_1_15_1","unstructured":"Yoshihiko Futamura. 1971. Partial Evaluation of Computation Process \u2014 An approach to a Compiler-Compiler. No.8 of Transactions of the Institute of Electronics and Communication Engineers of Japan. https:\/\/fi.ftmr.info\/PE-Museum\/PE-Original-English1971.pdf"},{"key":"e_1_3_1_16_1","unstructured":"Alex Gaynor. 2013. Your tests are not a benchmark. PyPy. https:\/\/alexgaynor.net\/2013\/jul\/15\/your-tests-are-not-benchmark\/"},{"key":"e_1_3_1_17_1","unstructured":"GCC. 2010. Extended Asm - Assembler Instructions with C Expression Operands. GCC. https:\/\/gcc.gnu.org\/onlinedocs\/gcc\/Extended-Asm.html#:~:text=6.47.2.7%20Goto%20Labels"},{"key":"e_1_3_1_18_1","unstructured":"GHC. 2010. Register Pinning in the Design of GHC. Glasgow Haskell Compiler. https:\/\/gitlab.haskell.org\/ghc\/ghc\/-\/wikis\/commentary\/compiler\/backends\/llvm\/design#register-pinning"},{"key":"e_1_3_1_19_1","unstructured":"Google. 2008. V8 JavaScript Engine. Google. https:\/\/v8.dev\/"},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","DOI":"10.5555\/646149.679193"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3555776.3577712"},{"key":"e_1_3_1_22_1","unstructured":"Christian Humer and Nikola Bebi\u0107. 2022. Operation DSL: How We Learned to Stop Worrying and Love Bytecodes again. The 2022 Graal Workshop: Science Art Magic: Using and Developing The Graal Compiler (April 2022). https:\/\/2022.ecoop.org\/details\/truffle-2022\/3\/Operation-DSL-How-We-Learned-to-Stop-Worrying-and-Love-Bytecodes-again"},{"key":"e_1_3_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/2658761.2658776"},{"key":"e_1_3_1_24_1","unstructured":"Roberto Ierusalimschy Luiz Henrique de Figueiredo and Waldemar Celes. 2012. Lua 5.1 Reference Manual. Pontifical Catholic University of Rio de Janeiro (PUC-Rio). https:\/\/www.lua.org\/manual\/5.1\/manual.html"},{"key":"e_1_3_1_25_1","unstructured":"Intel. 2025. Intel VTune Profiler. Intel. https:\/\/www.intel.com\/content\/www\/us\/en\/developer\/tools\/oneapi\/vtune-profiler.html"},{"key":"e_1_3_1_26_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2025.16"},{"key":"e_1_3_1_27_1","unstructured":"Robert Gabriel Jakabosky and Dennis Schridde. 2008. LLVM Lua. LLVM Lua. https:\/\/github.com\/Neopallium\/llvm-lua"},{"key":"e_1_3_1_28_1","article-title":"Yacc: Yet Another Compiler-Compiler","author":"Johnson Stephen","year":"2001","unstructured":"Stephen Johnson. 2001. Yacc: Yet Another Compiler-Compiler. Unix Programmer\u2019s Manual 2 (11 2001).","journal-title":"Unix Programmer\u2019s Manual 2"},{"key":"e_1_3_1_29_1","unstructured":"Reid Kleckner. 2009. Unladen Swallow. Google. https:\/\/code.google.com\/archive\/p\/unladen-swallow\/"},{"key":"e_1_3_1_30_1","unstructured":"Reid Kleckner. 2011. Unladen Swallow Retrospective. Google. https:\/\/qinsb.blogspot.com\/2011\/03\/unladen-swallow-retrospective.html"},{"key":"e_1_3_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3359061.3361077"},{"key":"e_1_3_1_32_1","doi-asserted-by":"publisher","unstructured":"Leverett Cattell Hobbs Newcomer Reiner Schatz and Wulf. 1980. An Overview of the Production-Quality Compiler-Compiler Project. Computer 13 8 (1980) 38\u201349. doi:10.1109\/MC.1980.1653748","DOI":"10.1109\/MC.1980.1653748"},{"key":"e_1_3_1_33_1","unstructured":"Gabriel de Quadros Ligneul. 2017. Lua Benchmarks. Lua. https:\/\/github.com\/gligneul\/Lua-Benchmarks"},{"key":"e_1_3_1_34_1","unstructured":"LLVM. 2018. Implementing asm-goto support in Clang\/LLVM. LLVM. https:\/\/lists.llvm.org\/pipermail\/llvm-dev\/2018-October\/127239.html"},{"key":"e_1_3_1_35_1","unstructured":"LLVM. 2020. LLVM Documentation on GHC Calling Convention. The Glasgow Haskell Team and LLVM Team. https:\/\/releases.llvm.org\/10.0.0\/docs\/LangRef.html?highlight=ghc#calling-conventions"},{"key":"e_1_3_1_36_1","unstructured":"Lua. 2012. PUC Lua 5.1 Implementation Download Page. PUC Rio Lua. See lua-5.1.5.tar.gz. https:\/\/www.lua.org\/ftp\/"},{"key":"e_1_3_1_37_1","unstructured":"Stefan Marr. 2001. SOM: Simple Object Machine. SOM. https:\/\/som-st.github.io\/"},{"key":"e_1_3_1_38_1","unstructured":"Stefan Marr. 2010. SOM++ - C++ implementation of the Simple Object Machine Smalltalk. SOM. https:\/\/github.com\/SOM-st\/SOMpp"},{"key":"e_1_3_1_39_1","unstructured":"Stefan Marr. 2013a. PySOM - The Simple Object Machine Smalltalk implemented in Python. SOM. https:\/\/github.com\/SOM-st\/PySOM"},{"key":"e_1_3_1_40_1","unstructured":"Stefan Marr. 2013b. A SOM Smalltalk implemented on top of Oracle\u2019s Truffle Framework. SOM. https:\/\/github.com\/SOM-st\/TruffleSOM"},{"key":"e_1_3_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093334.2989232"},{"key":"e_1_3_1_42_1","unstructured":"Stefan Marr Octave Larose Sophie Kaleba and Chris Seaton. 2022. Truffle Interpreter Performance without the Holy Graal. The 2022 Graal Workshop: Science Art Magic: Using and Developing The Graal Compiler (April 2022). The Truffle interpreter vs Node.js interpreter\/CPython\/CRuby performance comparison is on page 17. https:\/\/kar.kent.ac.uk\/93938\/1\/Truffle_Interpreter_Performance_without_the_Holy_Graal.pdf"},{"key":"e_1_3_1_43_1","unstructured":"Michael Matz Jan Hubi\u010dka Andreas Jaeger and Mark Mitchell. 2020. System V Application Binary Interface. LinuxBase. https:\/\/refspecs.linuxbase.org\/elf\/x86_64-abi-0.98.pdf"},{"key":"e_1_3_1_44_1","doi-asserted-by":"publisher","DOI":"10.14778\/3151113.3151114"},{"key":"e_1_3_1_45_1","unstructured":"Mozilla. 2000. SpiderMonkey JavaScript Engine. Mozilla. https:\/\/spidermonkey.dev\/"},{"key":"e_1_3_1_46_1","unstructured":"Mozilla. 2020. Components of SpiderMonkey. Mozilla. https:\/\/firefox-source-docs.mozilla.org\/js\/index.html#components-of-spidermonkey"},{"key":"e_1_3_1_47_1","doi-asserted-by":"crossref","unstructured":"Thomas Neumann. 2011. Efficiently compiling efficient query plans for modern hardware. Proceedings of the VLDB Endowment 4 9 (2011) 539\u2013550.","DOI":"10.14778\/2002938.2002940"},{"key":"e_1_3_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-18625-5_71"},{"key":"e_1_3_1_49_1","unstructured":"Travis Oliphant. 2012. Numba \u2013 A Just-In-Time Compiler for Numerical Functions in Python. Anaconda. https:\/\/github.com\/numba\/numba"},{"key":"e_1_3_1_50_1","doi-asserted-by":"publisher","DOI":"10.1109\/CGO51591.2021.9370314"},{"key":"e_1_3_1_51_1","unstructured":"Mike Pall. 2005. A Just-In-Time Compiler for Lua. LuaJIT. https:\/\/luajit.org\/"},{"key":"e_1_3_1_52_1","unstructured":"Mike Pall. 2016. LuaJIT Benchmarks. LuaJIT. https:\/\/github.com\/LuaJIT\/LuaJIT-test-cleanup\/tree\/master\/bench"},{"key":"e_1_3_1_53_1","unstructured":"Mike Pall. 2021. LuaJIT v2.1 \u2013 A Just-In-Time Compiler for Lua. LuaJIT. https:\/\/luajit.org\/status.html"},{"key":"e_1_3_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/582153.582178"},{"key":"e_1_3_1_55_1","unstructured":"Nicolas B. Pierron. 2017. HolyJit: Generic purpose Just-In-time compiler for Rust. Mozilla. https:\/\/github.com\/nbp\/holyjit"},{"key":"e_1_3_1_56_1","unstructured":"Filip Pizlo. 2014. Introducing the WebKit FTL JIT. Apple. https:\/\/webkit.org\/blog\/3362\/introducing-the-webkit-ftl-jit\/"},{"key":"e_1_3_1_57_1","unstructured":"Filip Pizlo. 2016. Introducing the B3 JIT Compiler. Apple. https:\/\/webkit.org\/blog\/5852\/introducing-the-b3-jit-compiler\/"},{"key":"e_1_3_1_58_1","unstructured":"Filip Jerzy Pizlo. 2020. Speculation in JavaScriptCore. Apple. https:\/\/webkit.org\/blog\/10308\/speculation-in-javascriptcore\/"},{"key":"e_1_3_1_59_1","unstructured":"PostgresSQL. 2020. Postgres Documentation - Why JIT. PostgresSQL. https:\/\/www.postgresql.org\/docs\/11\/jit-decision.html"},{"key":"e_1_3_1_60_1","unstructured":"Armin Rigo Maciej Fija\u0142kowski Carl Friedrich Bolz Antonio Cuni Benjamin Peterson Alex Gaynor H\u00e5kan Ard\u00f6 Holger Krekel and Samuele Pedroni. 2007. A fast compliant alternative implementation of Python. PyPy. https:\/\/www.pypy.org\/"},{"key":"e_1_3_1_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/1868294.1868314"},{"key":"e_1_3_1_62_1","unstructured":"Mark Shannon. 2011. The Construction of High-Performance Virtual Machines for Dynamic Languages. University of Glasgow. https:\/\/theses.gla.ac.uk\/2975\/1\/2011shannonphd.pdf"},{"key":"e_1_3_1_63_1","unstructured":"Brian Shirai Dirkjan Bussink Evan Phoenix Eric Hodel John Firebaugh Kenichi Kamiya and many others. 2008. Rubinius. Rubinius. https:\/\/github.com\/rubinius\/rubinius"},{"key":"e_1_3_1_64_1","unstructured":"SingleStore. 2013. SingleStore Database. SingleStore. https:\/\/www.singlestore.com\/"},{"key":"e_1_3_1_65_1","unstructured":"Matt Souza. 2023. Operation DSL. Oracle. https:\/\/github.com\/oracle\/graal\/pull\/6697"},{"key":"e_1_3_1_66_1","doi-asserted-by":"publisher","DOI":"10.1145\/800179.810196"},{"key":"e_1_3_1_67_1","unstructured":"Leszek Swirski. 2021. Sparkplug \u2014 a non-optimizing JavaScript compiler. Google. https:\/\/v8.dev\/blog\/sparkplug"},{"key":"e_1_3_1_68_1","doi-asserted-by":"publisher","DOI":"10.1145\/258366.258408"},{"key":"e_1_3_1_69_1","unstructured":"Laurence Tratt. 2022. HAMLET: Hardware Enabled Meta-Tracing. King\u2019s College London. https:\/\/soft-dev.org\/projects\/hamlet\/"},{"key":"e_1_3_1_70_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.cola.2019.01.003"},{"key":"e_1_3_1_71_1","unstructured":"Kannan Vijayan. 2010. The Baseline Compiler Has Landed. Mozilla. https:\/\/hacks.mozilla.org\/2010\/03\/improving-javascript-performance-with-jagermonkey\/"},{"key":"e_1_3_1_72_1","doi-asserted-by":"publisher","DOI":"10.1145\/103135.103136"},{"key":"e_1_3_1_73_1","unstructured":"Wikipedia. 2023. Source lines of code (Measurement methods). https:\/\/en.wikipedia.org\/wiki\/Source_lines_of_code#Measurement_methods"},{"key":"e_1_3_1_74_1","doi-asserted-by":"publisher","DOI":"10.1145\/2509578.2509581"},{"key":"e_1_3_1_75_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384577.2384587"},{"key":"e_1_3_1_76_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485513"},{"key":"e_1_3_1_77_1","unstructured":"Haoran Xu and Fredrik Kjolstad. 2026. Artifact for Deegen: A JIT-Capable VM Generator for Dynamic Languages. Stanford University. https:\/\/zenodo.org\/records\/18503844"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798246","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:17:37Z","timestamp":1790421457000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798246"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":76,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798246"],"URL":"https:\/\/doi.org\/10.1145\/3798246","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-10","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"}}]}}