interesting comments about reallocation APIs!
https://lobste.rs/s/hgtpg0/why_is_there_no_realloc_takes_number_bytes
Weirdly, I feel like the main article is mostly an unimportant edge case. Like I want it, but if I had it, I wouldn't expect it to make a practice difference in performance in essentially any software.
I do like the explicit nature of the zig API as well.
Last updated: Jul 06 2025 at 12:14 UTC