Metraipolis › archive › dc_36cc94febe0c
Support Local Variables — arXiv:2609.01502
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.01502
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-17T07:20:11.534Z
- SHA-256 of the archived text
8409dca4f1876dcb8bdbd4d6247d190e2e5c991d384f7298fd33be5d09d5a4a8- Stable URL of this page
https://metraipolis.com/documento/dc_36cc94febe0c
How to cite
Support Local Variables — arXiv:2609.01502 — arXiv (en), https://arxiv.org/abs/2609.01502 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_36cc94febe0c (Metraipolis archive dc_36cc94febe0c, sha256 8409dca4f1876dcb8bdbd4d6247d190e2e5c991d384f7298fd33be5d09d5a4a8)
BibTeX
@misc{dc36cc94febe0c,
title = {Support Local Variables — arXiv:2609.01502},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.01502},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_36cc94febe0c; sha256 8409dca4f1876dcb8bdbd4d6247d190e2e5c991d384f7298fd33be5d09d5a4a8},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.01502. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Ruby is a dynamically typed and object-oriented programming language. Its primary implementation, CRuby, contains a bytecode virtual machine and a mature lazy basic block versioning (LBBV) just-in-time (JIT) compiler called YJIT. In order to both implement more advanced optimizations than YJIT supports and also encourage more outside contributions, we present a new method-based JIT called ZJIT. Like YJIT, ZJIT compiles from bytecode to machine code. Unlike YJIT, ZJIT has multiple global and local optimization passes. ZJIT's high-level intermediate representation is in static single assignment (SSA) form. In order to optimize Ruby's local variables, ZJIT lifts local variables into SSA values. This is a departure from how other Ruby compilers handle locals: other JIT compilers either leave local variables as memory loads and stores or do advanced partial evaluation to recover SSA values from memory. While implementing locals, we (re-)discovered what features make local variables in Ruby especially challenging to compile correctly and efficiently. We demonstrate these features and illustrate how we solved these problems in ZJIT. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-02 in cs.PL). Categorie arXiv: Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2609.01502 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-17T07:10:28.030Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-09-02?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).