While suffering may lead to enlightenment, enlightenment guarantees having to suffer fools.
... BTW, the gopher says "you're welcome"
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
My life is ruined and it's on you.
In my opinion, the process of you learning Go made your brain forget how to efficiently see through the rules of C++ in order to express computation.
On Friday, July 24, 2015 at 10:17:59 AM UTC+2, ⚛ wrote:In my opinion, the process of you learning Go made your brain forget how to efficiently see through the rules of C++ in order to express computation.I also had a C++ professor. An academic with a passion for "performance." His classes are full of friends and inheritance is just another tool to touch other classes' privates. "Because abstraction is expensive."
I showed him Go, he dismissed it and said that I wouldn't understand how inefficient the idea of a garbage collector is.
On Friday, July 24, 2015 at 10:17:59 AM UTC+2, ⚛ wrote:In my opinion, the process of you learning Go made your brain forget how to efficiently see through the rules of C++ in order to express computation.I also had a C++ professor. An academic with a passion for "performance."
His classes are full of friends and inheritance is just another tool to touch other classes' privates. "Because abstraction is expensive."
I showed him Go, he dismissed it and said that I wouldn't understand how inefficient the idea of a garbage collector is.
Guys the post was kinda a joke, I'm not blaming Go for anything and I didn't forget how to program in C++, I just find it uglier than ever :)
I showed him Go, he dismissed it and said that I wouldn't understand how inefficient the idea of a garbage collector is.
--
Go just keeps getting better. Check out the performance gains in Go 1.5: https://talks.golang.org/2015/state-of-go-may.slide#8It'll take the large companies much longer to catch on. In the meantime, the smaller companies will build better software, faster in Go.Like was said previously, if you want to be another cog in the machinery of a large corporation, there are lot's of C++ and Java jobs available.Thank you, Go! What other language has it's own song? http://lexsheehan.blogspot.com/2014/12/javas-verbose-python-is-too-slow-its.html
On Thursday, July 23, 2015 at 6:19:29 PM UTC-4, Roberto Zanotto wrote:I have to work on a project for an university exam and the professor highly recommends doing it in C++ with (his) FastFlow library. Now, because of Go, I can't stand looking at object oriented code anymore. The way the code is structured... class hierarchies... you can't even tell what the program _does_. My eyes cross and I feel like crying.
I was meant to be a successful C++/Java programmer, now that is ruined forever. And nobody listens to me! A friend of mine recently graduated, we bought him "Design Patterns: Elements of Reusable Object-Oriented Software" and "Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14". He wanted those books and said that they are what he needs to learn for job interviews. And everybody agreed.My life is ruined and it's on you.
--
Guys the post was kinda a joke, I'm not blaming Go for anything and I didn't forget how to program in C++, I just find it uglier than ever :)
--
I get raised eyebrows at my work if I mention Go, Clojure or upgrading our tools in general.
I have to work on a project for an university exam and the professor highly recommends doing it in C++ with (his) FastFlow library. Now, because of Go, I can't stand looking at object oriented code anymore. The way the code is structured... class hierarchies... you can't even tell what the program _does_. My eyes cross and I feel like crying.
I was meant to be a successful C++/Java programmer, now that is ruined forever. And nobody listens to me! A friend of mine recently graduated, we bought him "Design Patterns: Elements of Reusable Object-Oriented Software" and "Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14". He wanted those books and said that they are what he needs to learn for job interviews. And everybody agreed.My life is ruined and it's on you.
The biggest argument against GC comes from folks who have exacting timing requirements, such as video playback, encoding, real time applications, animation and games, where there is a need to be able to have each algorythm used have exactly known run time budgets. GC introduces a non-deterministic element to the execution time. Java is famous for its GC initiated "pauses" while the garbage collector runs off and cleans up memory.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/ghu1Zpc88io/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
On Jul 25, 2015 05:20, "Andrew Chambers" <andrewc...@gmail.com> wrote:
> There are garbage collectors that have hard real time worst case delays. C++ programs tend to use things like smart pointers which are pretty unpredictable themselves. There is no guarantee a ref count decrement frees one or a thousand items if it triggers a chain reaction.
There is - you as a programmer can or should anticipate that. Also nothing holds you from using a custom allocator with a shared pointer that has different behavior.
This touches exactly on the difference: C++ provides fine-grained control over construction and destruction, whereas Go, Java, etc. try to provide sensible defaults. You can write GC-friendly code, but it pretty much ends there.
(In principle a GC could be faster, because it can optimize for the allocation patterns that actually occur at runtime, rather than those anticipated by the programmer.)
Daniël
On Friday, July 24, 2015 at 6:04:57 PM UTC+2, adam willis wrote:I recently watched this video: https://www.youtube.com/watch?v=BBbv1ej0fFo
I have to work on a project for an university exam and the professor highly recommends doing it in C++ with (his) FastFlow library.
(In principle a GC could be faster, because it can optimize for the allocation patterns that actually occur at runtime, rather than those anticipated by the programmer.)
On Tuesday, 28 July 2015 07:31:25 UTC+2, Ian Dawes wrote:
> And you wouldn't be the first to make that argument... Jamie Zawinski --- back in 1998: http://www.jwz.org/doc/gc.htmlExcept that the essay assumes that the law of averages holds. I would counter-claim that "I" can do a better job of memory management, in "my" code or any well-documented code than "any" general-purpose GC, by treating each instance as a special code, something that a GC built into a runtime or compiler cannot be expected to do.
On Tuesday, 28 July 2015 07:31:25 UTC+2, Ian Dawes wrote:
> And you wouldn't be the first to make that argument... Jamie Zawinski --- back in 1998: http://www.jwz.org/doc/gc.htmlExcept that the essay assumes that the law of averages holds. I would counter-claim that "I" can do a better job of memory management, in "my" code or any well-documented code than "any" general-purpose GC, by treating each instance as a special code, something that a GC built into a runtime or compiler cannot be expected to do.
I have to work on a project for an university exam and the professor highly recommends doing it in C++ with (his) FastFlow library. Now, because of Go, I can't stand looking at object oriented code anymore. The way the code is structured... class hierarchies... you can't even tell what the program _does_. My eyes cross and I feel like crying.
I was meant to be a successful C++/Java programmer, now that is ruined forever. And nobody listens to me! A friend of mine recently graduated, we bought him "Design Patterns: Elements of Reusable Object-Oriented Software" and "Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14". He wanted those books and said that they are what he needs to learn for job interviews. And everybody agreed.My life is ruined and it's on you.