Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Garbage Collection is the only way

Name: Anonymous 2011-04-22 13:02

Shortly before Linus wrote this article in 2002, I wrote an XML-RPC library in C that used reference counting. By the time I was done, I'd written 7,000+ lines of extremely paranoid C code, and probably eliminated all the memory leaks. The project cost my client ~$5K.

The standard Python xmlrpc library was less than 800 lines of code, and it was probably written in a day or two.

Was my library about 50 times faster? Sure, I could parse 1,500+ XML-RPC requests/second. Did anybody actually benfit from this speed? Probably not.

But the real problem is even bigger: Virtually every reference-counting codebase I've ever seen was full of bugs and memory leaks, especially in the error-handling code. I don't think more than 5% of programmers are disciplined enough to get it right.

If I'm paying for the code, I'll prefer GC almost every time. I value correctness and low costs, and only worry about performance when there's a clear business need.

Name: Anonymous 2011-04-26 10:06

Name: Anonymous 2011-04-26 10:11

Name: Anonymous 2011-04-26 10:24

Name: Anonymous 2011-04-26 10:28

Name: Anonymous 2011-04-26 10:33

Name: Anonymous 2011-04-26 10:38

Name: Anonymous 2011-04-26 10:43

Name: Anonymous 2011-04-26 10:47

Name: Anonymous 2011-04-26 10:52

Name: Anonymous 2011-04-26 10:57

Name: Anonymous 2011-04-26 11:01

Name: Anonymous 2011-04-26 11:06

Name: Anonymous 2011-04-26 11:11

Name: Anonymous 2011-04-26 11:16

Name: Anonymous 2011-04-26 11:20

Name: Anonymous 2011-04-26 11:25

Name: Anonymous 2011-04-26 11:30

Name: Anonymous 2011-04-26 11:34

Name: Anonymous 2011-04-26 11:39

Name: Anonymous 2011-04-26 11:44

Name: Anonymous 2011-04-26 11:49

Name: Anonymous 2011-04-26 11:54

Name: Anonymous 2011-04-26 11:58

Name: Anonymous 2011-04-26 12:03

Name: Anonymous 2011-04-26 12:08

Name: Anonymous 2011-04-26 12:12

Name: Anonymous 2011-04-26 12:17

Name: Anonymous 2011-04-26 12:22

Name: Anonymous 2011-04-26 12:26

Name: Anonymous 2011-04-26 12:31

Name: Anonymous 2011-04-26 12:36

Name: Anonymous 2011-04-26 12:40

Name: Anonymous 2011-04-26 12:45

Name: Anonymous 2011-04-26 12:50

Name: Anonymous 2011-04-26 12:54

Name: Anonymous 2011-04-26 12:59

Name: Anonymous 2011-04-26 13:04

Name: Anonymous 2011-04-26 13:09

Name: Anonymous 2011-04-26 13:13

Name: Anonymous 2011-04-26 13:18


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List