<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/2011.13127/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/2011.13127/feed.xml" rel="self" type="application/rss+xml" /><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by darkamaul</title><link>https://news.ycombinator.com/item?id=45383956</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:45383956</guid><pubDate>Fri, 26 Sep 2025 07:59:05 GMT</pubDate><description>&lt;p&gt;I think the _copy-and-patch_ approach [0] is probably the best compromise here. You get many of the guarantees of compiled code (strong correctness, reduced mismatch between interpreter vs JIT semantics, etc.), while still being very close to native performance. In fact, Python is already moving in that direction: the new bytecode-based copy-and-patch JIT in Python 3.13 shows correct results even before heavy performance tuning. So to me this seems like a very promising road: I wonder how practical this is if the base language is not C/C++ but Rust (or any kind of memory safe language). [0]…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by UncleEntity</title><link>https://news.ycombinator.com/item?id=43831413</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:43831413</guid><pubDate>Tue, 29 Apr 2025 12:02:30 GMT</pubDate><description>&lt;p&gt;I&amp;#x27;ve been messing with Claude pretty heavily the last week or so and found if I guide it in the right direction it (mostly) does the right thing. I&amp;#x27;ve been having it reproduce the lua peg parser thingie (plus utf-8 support)[0] from the paper they wrote about it while also using the &amp;#x27;musttail&amp;#x27; interpreter pattern [1] just because that sounded like a good idea. Once I got over the fact that Claude is really bad at debugging and Deepseek, while much better at it, isn&amp;#x27;t very reliable due to &amp;#x27;server busy&amp;#x27; timeouts things have been going swimmingly. While I don&amp;#x27;t do very much debugging once in a…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by ris</title><link>https://news.ycombinator.com/item?id=41038032</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:41038032</guid><pubDate>Mon, 22 Jul 2024 18:36:52 GMT</pubDate><description>&lt;p&gt;Read the paper which fully explains the subtle cleverness that sets it apart: https://arxiv.org/abs/2011.13127&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by alserio</title><link>https://news.ycombinator.com/item?id=40555796</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:40555796</guid><pubDate>Sun, 02 Jun 2024 17:28:36 GMT</pubDate><description>&lt;p&gt;Link to the HTML version for those who need it and to help spread the knowledge of the wonderful arxiv ar5iv tool: https://ar5iv.labs.arxiv.org/html/2011.13127&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — HN submission</title><link>https://news.ycombinator.com/item?id=40553448</link><guid isPermaLink="false">urn:hackerpapers:submission:2011.13127:40553448</guid><pubDate>Sun, 02 Jun 2024 12:07:07 GMT</pubDate><description>&lt;p&gt;Copy-and-Patch: Fast compilation for high-level languages and bytecode (2020)&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;182 points; 50 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by AlexErrant</title><link>https://news.ycombinator.com/item?id=39743589</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:39743589</guid><pubDate>Mon, 18 Mar 2024 12:45:15 GMT</pubDate><description>&lt;p&gt;Not quite fresh, but &amp;gt; A paper from 2020 [0] showed that Cranelift was an order of magnitude faster than LLVM, while producing code that was approximately twice as slow on some benchmarks. [0] https://arxiv.org/pdf/2011.13127.pdf&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by vanderZwan</title><link>https://news.ycombinator.com/item?id=38924826</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:38924826</guid><pubDate>Tue, 09 Jan 2024 11:20:11 GMT</pubDate><description>&lt;p&gt;I think it&amp;#x27;s really cool that Haoran Xu and Fredrik Kjolstad&amp;#x27;s copy-and-patch technique[0] is catching on, I remember discovering it through Xu&amp;#x27;s blog posts about his LuaJIT remake project[1][2], where he intends to apply these techniques to Lua (and I probably found those through a post here). I was just blown away by how they &amp;quot;recycled&amp;quot; all these battle-tested techniques and technologies, and used it to synthesize something novel. I&amp;#x27;m not a compiler writer but it felt really clever to me. I highly recommend the blog posts if you&amp;#x27;re into learning how languages are implemented, by the way.…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by nickpsecurity</title><link>https://news.ycombinator.com/item?id=38776609</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:38776609</guid><pubDate>Tue, 26 Dec 2023 22:06:40 GMT</pubDate><description>&lt;p&gt;Arxiv version: https://arxiv.org/abs/2011.13127&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by Qem</title><link>https://news.ycombinator.com/item?id=38761749</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:38761749</guid><pubDate>Mon, 25 Dec 2023 11:30:42 GMT</pubDate><description>&lt;p&gt;I think this is the copy and patch JIT paper mentioned: https://arxiv.org/pdf/2011.13127.pdf&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by fsfod</title><link>https://news.ycombinator.com/item?id=33713712</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:33713712</guid><pubDate>Wed, 23 Nov 2022 00:59:02 GMT</pubDate><description>&lt;p&gt;The author also worked on the Copy-and-Patch Compilation paper[1], I wonder if they are going to use the same idea for ones of tiers of the JIT idk if it would beat LuaJIT&amp;#x27;s JIT for code compilation speed but the machine code could be faster. [1] https://arxiv.org/abs/2011.13127&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — mentioned by cfallin</title><link>https://news.ycombinator.com/item?id=32914994</link><guid isPermaLink="false">urn:hackerpapers:mention:2011.13127:32914994</guid><pubDate>Tue, 20 Sep 2022 17:29:57 GMT</pubDate><description>&lt;p&gt;The perf blogpost actually uses SpiderMonkey-compiled-to-Wasm as a benchmark rather than a comparison (peer) of Wasmtime. However, there are some good comparisons done by a third party in this paper: https://arxiv.org/pdf/2011.13127.pdf See Figs. 20-22 on page 19. They found Wasmtime to be quite competitive to V8 and others. (disclosure: I work on Wasmtime + Cranelift)&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item><item><title>Copy-and-Patch Compilation: A fast compilation algorithm for high-level languages and bytecode — HN submission</title><link>https://news.ycombinator.com/item?id=28547057</link><guid isPermaLink="false">urn:hackerpapers:submission:2011.13127:28547057</guid><pubDate>Thu, 16 Sep 2021 02:01:41 GMT</pubDate><description>&lt;p&gt;Copy-and-Patch: Fast JIT Compilation for SQL, WebAssembly, and Others&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;30 points; 7 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/2011.13127/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.PL</category></item></channel></rss>
