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 548484
To read all comments associated with this story, please click here.
RE[4]: C -> Go
by voidlogic on Sat 12th Jan 2013 07:11 UTC in reply to "RE[3]: C -> Go"
Member since:

“Go is like a better C, from the guys that didn’t bring you C++” — Ikai Lan

Ken Thompson, Rob Pike & Robert Griesemer set out at Google to create a modern C. Go is an extremely simple language compared a multi-paradigm language like D. For some people this means worse, for many it means better. For me being simple, yet providing all the tools needed is perfect. IMHO sufficient simplicity is elegance, and leads to maintainable code.

If you Google D vs Go you will find many threads, take a look the discussion; It is much broader than we could hope to cover here. (Keep in mind most results are 3 years out of date)

If I had to make you a short list I would say I like Go because:

* For me personally I have never had a more productive language experience than Go. (I have mostly used C,C++,C#,Java,VB/.net with some Javascript,Perl,PHP,Haskell,Prolog)

* Go makes is easy to get concurrency right on the first pass, and has extremely powerful concurrency features built-in. In Go there is no writing a single threaded version and having come back and multithread it later.

* The entire language spec is small enough to read in one sitting and understand and know by heart in less than one month.

* The Go compiler is extremely fast, faster than C or D

* Go performs very well:

* Language formatting is standardized (gofmt). No more newline flame wars for example.

* While D appeared in 2001 and Go in 2009 D and Go are now neck and neck on stack overflow and github. On OSnews, hacker news, slashdot etc you see many more Go stories. While this does not in and of itself make Go better, if this means Go has a stronger faster growing community, that is positive for developers that choose Go.

I'll stop here and for the sake of brevity. In short D is a better C++ and Go is a better C that believes C++ was a wrong turn.

Reply Parent Score: 3