News for hackers. Stuff that matters.

fikovnik

Re:Copy-and-Patch: A Copy-and-Patch Tutorial on Tuesday October 14, 2025 @10:49PM (#45587594)
But not that is conceptually related, only that the copy-and-patch is faster than cranelift in that particular scenario.
Re:Copy-and-Patch: A Copy-and-Patch Tutorial on Tuesday October 14, 2025 @09:28AM (#45579787)
Featuring self-modifying code - it can repatch emitted instruction at runtime based on the current value type.
Here is a function that I use for exactly this:

https://gist.github.com/fikovnik/e0fa86aea29f761b6a4ddcfda46...