4 ms·
It's amazing how Go caught on. It's not well designed -- lots of special cases reserved just for the compiler, some bizarro decisions, etc. It's not modern (w
by coldtea 11y ago
It's amazing how Go caught on.
It's not well designed -- lots of special cases reserved just for the compiler, some bizarro decisions, etc.
It's not modern (with the possitive associates of modern, not fadish, and modern being "the last 30 years of experience" which is still like a millenium in IT years).
It's implementation is not great either. Not a very good compiler, not a very good GC, not good tooling.
My theory is it caught on for 4 reasons:
1) It came from Google, and with some famous names to top. This got it initial publicity in programming sites and media, and Google then coughed for conferences, a spot on I/O etc -- so it caught lots of eyeballs, something independent languages don't have a chance to do.
2) It produces static binaries and this was a real need for lots of use cases.
3) It's easy to get started with, and made converts from scripting languages feel empowered, as if they were "real programmers" writing C, what with "pointers" and static types.
4) It makes writing parallel code for some uses cases easy, which is a good fit for some infrastructure/services apps.
(I don't think most teams outside of Google and some C++ or Scala shops have had any beef with "long compile times" for that to have been a major factor. Though it played to the hype of it being "just like a scripting language").
- djhworld 11y ago> It's easy to get started with, and made converts from scripting languages feel empowered, as if they were "real programmers" writing C, what with "pointers" and static types. What is wrong with this? Exposing people to pointers and static types might give them confidence when writing or reading in "real programmers" code in C I find the level of sneery nose turning in this thread quite abhorrent to be honest.
- nulltype 11y agoThere seems to be an idea that some ways of telling your computer what to do are too foppish and that if you are serious about it you use a language from 40 years ago. Of course that's probably what the assembly programmers said about C and there aren't many of those left anymore.
- pcwalton 11y ago> What is wrong with this? Exposing people to pointers and static types might give them confidence when writing or reading in "real programmers" code in C I don't see it as sneery nose-turning. Rather I see it as an acknowledgement that the real difficulty of C isn't pointers but rather is manual memory management, which Golang doesn't prepare you for.