Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ekimekim
on Jan 24, 2021
|
parent
|
context
|
favorite
| on:
But how, exactly, do databases use mmap?
I'm still learning Rust, but iiuc you could do this by creating an OffsetPtr type that implements the Deref trait (
https://doc.rust-lang.org/std/ops/trait.Deref.html
). This is exactly a "fancy pointer" as you describe.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: