News for hackers. Stuff that matters.
Re:C++ and the Culture of Complexity by fhd2 on Friday August 23, 2013 @07:50PM (#6266894)
> Personally I think the notion that C++ offers "precise control" as you call it is overrated. For instance flexiblememory allocation is touted as an advantage, but in practice this is limited by the fact that there is only one global implementation of new the operator.

I don't quite follow, who's stopping you from using sbrk(), mmap() and all the other low level allocation system calls if you really have to? AFAIK, many high performance applications have their own allocation mechanism. Furthermore, new/malloc is worlds apart from GC when it comes to precise memory management.

Now, to be fair, I have no experience implementing high performance servers. But speaking for games, GC gets in the way a lot. You can make it work by essentially avoiding allocation altogether, at least on systems where you can use tons of memory, but that's just a very crude workaround.

Re:C++ and the Culture of Complexity by mpyne on Friday August 23, 2013 @10:52PM (#6267381)
> I don't quite follow, who's stopping you from using sbrk(), mmap() and all the other low level allocation system calls if you really have to?

From a pure language perspective, nothing.

From a standard library perspective... it's probably more difficult. I won't say impossible, as the STL allocator concept certainly seems general enough to allow this, but definitely more difficult.