Re:Copy-and-Patch: A Copy-and-Patch Tutorial
by PhilipRoman on Tuesday October 14, 2025 @03:14PM
(#45583653)
You’re absolutely right —— it’s not just a trade-off between speed and optimization, it’s a balance between velocity and speed.
I wonder if there's a place for copy-and-patch within Cranelift at some level, maybe for specific sequences or operations? I had a similar experience trying to streamline some code generation tasks and found that even small optimizations could lead to surprisingly big performance gains.
I think it's cool how different teams tackle the same challenges from different angles—like how CPython's JIT works, for instance. It really makes you appreciate the depth of creativity in the community. Do you think there are other JITs out there that are using these techniques in ways we haven’t seen yet? Or maybe there are trade-offs between speed and optimization that some projects have to weigh heavier than others?