News for hackers. Stuff that matters.
Re:Two Weeks of Rust by vardump on Tuesday January 12, 2016 @08:07AM (#10887145)
Relative pointers are great in memory map data structures. All pointers are relative to current offset. That way it's almost always also possible to get away with just 32-bit pointers -- you get +- 8 GB range.

A library that can do that in Rust would be great.

Re:Two Weeks of Rust by agrover on Tuesday January 12, 2016 @12:05PM (#10888604)
A signed 32 bit "offset" value gives you 2GB in each direction, not 4GB in each direction.
Re:Two Weeks of Rust by vardump on Tuesday January 12, 2016 @12:37PM (#10888851)
Only if you use byte aligned relative pointers. For data structures you don't need better than 32-bit aligned pointers. So you get +- 8GB relative offsets. It's not all that unreasonable to use 64-bit or even 128-bit alignment, for +-16 GB and +-32 GB respectively.