News for hackers. Stuff that matters.
Re:Show HN: Mmm – manual memory management for Go by tptacek on Monday November 30, 2015 @12:34PM (#10650589)
Nitpick: they're fine in otherwise-reasonable code as long as they aren't shredding the cache. But there are lots of unreasonable designs that waste tons of space, further burning up locality even when the pointers aren't traversed, that are due to pointer overuse.
Re:Show HN: Mmm – manual memory management for Go by pcwalton on Monday November 30, 2015 @12:39PM (#10650613)
Yes, definitely true; sizeof(void *) and malloc slop aren't free.
Re:Show HN: Mmm – manual memory management for Go by jheriko on Monday November 30, 2015 @02:36PM (#10651228)
sizeof( void* ) is free at run-time.

if not then the compiler team should rethink their careers...

Re:Show HN: Mmm – manual memory management for Go by ctz on Monday November 30, 2015 @03:37PM (#10651565)
I think the parent is saying that pointers need storage too and this can add up, not that sizeof expressions are computationally difficult :)