top | item 47183854

(no title)

bertylicious | 2 days ago

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?

discuss

order

KolmogorovComp|2 days ago

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.

lionkor|2 days ago

C# has `stackalloc`

bertylicious|2 days ago

But that requires an explicit declaration and isn't done automatically under the hood, or am I missing something?