Hacker News
new
past
comments
ask
show
jobs
points
by
bertylicious
6 hours ago
|
comments
by
KolmogorovComp
47 minutes ago
|
next
[-]
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.
reply
by
5 hours ago
|
prev
|
next
[-]
deleted
reply
by
lionkor
5 hours ago
|
prev
|
[-]
C# has `stackalloc`
reply
by
bertylicious
4 hours ago
|
parent
|
[-]
But that requires an explicit declaration and isn't done automatically under the hood, or am I missing something?
reply
by
Smaug123
4 hours ago
|
parent
|
[-]
The JIT does this automatically in some cases as of .NET 10 (
https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotn...
).
reply