logoalt Hacker News

bertyliciousyesterday at 6:34 PM3 repliesview on HN

Nice! That's (seems) so simple yet also so very effective. Shouldn't other memory-managed languages be able to profit from this as well?


Replies

KolmogorovCompyesterday at 11:58 PM

It’s a very well known pattern, as someone else mentioned it’s used in CPP in smallstring, Rust smallvec, C usually hand rolled etc.

lionkoryesterday at 7:26 PM

C# has `stackalloc`

show 1 reply