News for hackers. Stuff that matters.
Re:How memory maps (mmap) deliver faster file access in Go by gpderetta on Friday October 24, 2025 @04:41AM (#45692360)
you can longjmp, swapcontext or whatever from a signal handler into another lightweight fiber. The problem is that there is no "until the page arrive" notification. You would have to poll mincore which is awful.

You could of course imagine an ansychronous "mmap complete notification" syscal, but at that point why not just use io_uring, it will be simpler and it has the benefit of actually existing.

There are no comments on this comment yet.