News for hackers. Stuff that matters.
Re:Nim v2.0 Released by arc619 on Tuesday August 01, 2023 @12:40PM (#36958459)
Types are stack allocated by default.

"var data: MyObject" is on the stack. "var arr: array[1000, MyObject]" is allocated on the stack sequentially.

Only dynamic seq or ref types use the heap by default.

Re:Nim v2.0 Released by pavlov on Tuesday August 01, 2023 @01:00PM (#36958807)
So, same as C++.