Comment

Comment by 10000truths

Yep, virtual memory aliasing comes in handy when you’re working with data structures that can have page-level granularity. One of my favorite tricks is to create a ‘magic ring buffer’ by mapping two contiguous virtual pages to the same physical page, so that the wraparound is handled transparently by the MMU at no extra cost.
parent 10000truths 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton