News for hackers. Stuff that matters.
Re:The NSA advises move to memory-safe languages by LoganDark on Tuesday December 12, 2023 @10:07AM (#38613097)
Do "references" even exist in C? Aren't they a C++ thing?

How do you manage heap allocations without ever touching a pointer?

Re:The NSA advises move to memory-safe languages by munk-a on Tuesday December 12, 2023 @10:11AM (#38613163)
Edited for correctness - I was indeed talking about C++ and references are relevant only in C++. C absolutely has stack allocations which can make things a fair bit safer but if you're passing around collections it's usually done by pointer just to avoid copy actions.
Re:The NSA advises move to memory-safe languages by LoganDark on Wednesday December 13, 2023 @01:45AM (#38623533)
C has VLA, but I think C++ can still use alloca, although that returns a pointer still.