Linked by MOS6510 on Thu 10th Jan 2013 23:25 UTC
General Development "For years I've tried my damnedest to get away from C. Too simple, too many details to manage, too old and crufty, too low level. I've had intense and torrid love affairs with Java, C++, and Erlang. I've built things I'm proud of with all of them, and yet each has broken my heart. They've made promises they couldn't keep, created cultures that focus on the wrong things, and made devastating tradeoffs that eventually make you suffer painfully. And I keep crawling back to C."
Permalink for comment 548502
To read all comments associated with this story, please click here.
RE: Point by point
by Valhalla on Sat 12th Jan 2013 14:23 UTC in reply to "Point by point"
Member since:

Would Couchbase have been written at all if it hadn't started in Erlang? Sure, when it got big and successful and they needed speed improvements they re-coded in C. But could they have gotten that far without a higher level language to start with? The whole idea of "rapid prototyping" isn't just good because it makes programmers' lives easier, but also because get up and running with something functional quickly.

Hmm... I don't see your point. Prototyping in a higher-level language doesn't take away the usefulness of C. Judging by this thread I'm hardly the only one combining C and Python in my daily work, and yes I pretty much always write new code in Python first and then translate performance hotspots to C.

That said I'm certain Couchbase could have been written directly in C without prototyping in a higher level language, I think the initial thought was to have it running in Erlang but the performance was found lacking which prompted a rewrite in C.

The Linux kernel devs wrote git straight off in C during a very fast development phase and it's been a huge success in no small part due to it's much-lauded performance, but also it's stability.

Reply Parent Score: 3