Show HN: DemandMap – Memory Mapping S3 into Polars on macOS Without FUSE(github.com)
github.com
Show HN: DemandMap – Memory Mapping S3 into Polars on macOS Without FUSE
https://github.com/sonthonaxrk/demandmap
2 comments
Someone do something of all the AI slops in Hackernews!
[deleted]
This allows you to "download" a multi-gigabyte file on S3 into a Polars DataFrame in <100ms.
# Demo
It's one of those problems that manages to be both simple and difficult. I'd wager <5% of devs know what a memory map is (higher on HN) and I'd wager 1% of devs who know what mmap is know you can catch page faults in user-space, and yet another 1% of those devs know that it's possible to do userfaultfd in macOS with truly obscure mach_send_msg calls.
I'd really like to build a cross platform user faulting library covering Linux and Windows too, because nearly everyone who's touched a dataframe has had this exact problem.