Re:Why did OKCupid write their own web server?
by maxtaco on Thursday March 10, 2011 @02:13PM
(#2310305)
Manual memory management is for the birds. Use something like Boost's shared pointers and you never need to worry about it.
Re:Why did OKCupid write their own web server?
by Peaker on Thursday March 10, 2011 @05:07PM
(#2311014)
That's not entirely honest.
A) You still have to worry about it when interfacing with libraries that use plain pointers
B) Shared pointers incur runtime penalties (larger data pushes things off the cache, spurious inc/dec-refs messing said cache. If you don't care about that, why do you use a language like C++ in the first place?
C) Reference counting is a poor form of automatic memory management, you still have to worry about cycles, and use weak references or such to break the cycles.
(I wrote some C++ webapps myself)