Live data from Hacker News

C++11 Makes Competitors Go Rusty

nerds-central.blogspot.com

1–10 of 69 posts

Re: C++11 Makes Competitors Go Rusty

#3
I have fun when I write code with Go. I love the syntax, type inference and standard libraries. I wrote a transcoding video http server with html frontend in like a hundred lines of code and it doesn't make my eyes bleed. I don't think Go needs to replace C++ but I certainly prefer it. I think there are tons of uses for C++ still obviously (least of which is Go's GC-nature), but I don't think C++11 makes redundant the space that Go can occupy.

I know it's personal preference (but frankly, so is the article's position) but that C++11 code looks terrifying to me, I'm still guessing at what several of the pieces of code do. A python programmer looked at my go-code and very easily deduced what it was doing and made good suggestions immediately.

edit: s/VM/GC

Re: C++11 Makes Competitors Go Rusty

#4
C++ is great if used with care, the problem is that it has too many features and many things are quite braindead. Features are hardly ever removed (I like the Python approach better) But for complex, high performance applications it is still the best choice.

Re: C++11 Makes Competitors Go Rusty

#5
Of course C++ can do what Go and Rust do, C++ can do everything, but that is the problem with it. C++ tries to do everything and it leaves it not being very good at nearly anything. Also, C++ code-bases are all using different subsets of functionality. It makes becoming a product commiter to a code-base to longer than it should.

Re: C++11 Makes Competitors Go Rusty

#6

I have fun when I write code with Go. I love the syntax, type inference and standard libraries. I wrote a transcoding video http server with html frontend in like a hundred lines of code and it doesn't make my eyes bleed. I don't think Go needs to replace C++ but I certainly prefer it. I think there are tons of uses for C++ still obviously (least of which is Go's GC-nature), but I don't think C++11 makes redundant th…

Just a small nit, Go does not use a VM. It's compiled to machine code.

Re: C++11 Makes Competitors Go Rusty

#7
post #6

I have fun when I write code with Go. I love the syntax, type inference and standard libraries. I wrote a transcoding video http server with html frontend in like a hundred lines of code and it doesn't make my eyes bleed. I don't think Go needs to replace C++ but I certainly prefer it. I think there are tons of uses for C++ still obviously (least of which is Go's GC-nature), but I don't think C++11 makes redundant th…

Just a small nit, Go does not use a VM. It's compiled to machine code.

You're absolutely right, I thought GC and wrote VM.

Re: C++11 Makes Competitors Go Rusty

#8
Your freaking enormous ball of mud accreted some more mud. Quelle surprise. It's probably doing it by sheer gravitational attraction at this point. I do not think that removes the need for languages that have the capabilities of C++, yet aren't freaking enormous balls of mud.

The reader may mentally replace my use of the word "freaking" with other choice terms at his or her discretion.

Re: C++11 Makes Competitors Go Rusty

#9
Sure C++ can do what Go and Rust do. In fact any language that is turing complete can do anything that any other turing complete language can do. It just matters how easy to do it and how the syntax is. It's all about warts, and C++ has a lot of them.

Re: C++11 Makes Competitors Go Rusty

#10
Let us think about the big ideas behind Go: It is simple, clean and has garbage collection.

That's quite a bit of an oversimplification. Goroutines and channels are two big ideas in Go, and the author pretty much ignored those completely.

Post reply on HN