Join Nostr
2026-10-21 20:29:29 UTC
in reply to

solo on Nostr: also, he claimed that arrays with a constant & known size are stack allocated and ...

also, he claimed that arrays with a constant & known size are stack allocated and ones without it are heap allocated

according to some random SO post, this is not true and is more just an implementation detail

like, I'd be *quite* surprised if<code>int[1'000'000'000] foo;<br></code>

were allocated on the stack