Login
You're viewing the functional.cafe public feed.
  • Nov 13, 2026, 2:07 PM

    @xentrac I don't think we've measured that yet, but we've minimized overhead where we can. For example if we didn't need to borrow a page in order to load the DLL, we self-modify the return trampoline to an RTS, and the DLL stays cached until evicted. So it squashes down nicely in the optimal case. We do not support storing function pointers outside the DLL code itself. Cache invalidation is already hard enough!

    💬 1🔄 0⭐ 0

Replies

  • Nov 13, 2026, 2:28 PM

    @a2_4am Cache invalidation is famously one of the two unsolved problems of computer science!

    I don't think I understand the RTS case you're describing. I had assumed that RTS would be how far-called exported subroutines normally transfer control back to the return trampoline, whose entry point would have been pushed onto the return stack during the far-call process. But it sounds like that isn't the mechanism?

    💬 0🔄 0⭐ 0