Get the latest tech news

Ointers: A library for representing pointers where bits have been stolen (2021)


What do you call a pointer we stole the high bits off? An ointer. - irrustible/ointers

It's common in parallel programming to pad data to a cache line by increasing its alignment requirements in order eliminate false sharing. BitsMin alignment12b24b38b416b532b664b7128b8256b9512b101k112k124k138k1416k1532k1664k17128k18256k19512k201m212m224m238m2416mStealing bits from alignment is relatively innocuous, but we can only get the compiler to check it for you in dev mode as things stand in rust today. aarch64, linux with 3PT is probably not widely deployed Intel's new 5PT is of incredibly niche interest - if you want us to test it, you'll have to sponsor it because I don't have access to the hardware..

Get the Android app

Or read this on Hacker News

Read more on:

Photo of high bits

high bits

Photo of Rust pointer

Rust pointer