logoalt Hacker News

malisper • yesterday at 9:08 PM • 0 replies • view on HN

This is roughly what I do in Rust. I use different static types for values based on how long they'll live. Temporary values get one type; cached values get another. The allocator allocates each value in a different location based on how long the value will live.