5 ms·
Yet another piece of Go advocacy from someone who seems to have never heard of any modern functional languages. If the only alternatives were perl/python/ruby/j
by lmm 12y ago
Yet another piece of Go advocacy from someone who seems to have never heard of any modern functional languages. If the only alternatives were perl/python/ruby/javascript/java/C then Go would probably be a good choice for some problems. But what about OCaml, F#, Haskell or Scala?
- xyproto 12y agoHe mentions both Haskell and C#, but I agree with your overall point. Nimrod, Rust, D, C++11 and Julia are also missing from the comparison. (and more)
- VeejayRampay 12y agoWell, I understand your point, but there's a limit to how much namedropping you can do in one article. There are hundreds of programming languages, each with their own little niche of enthusiasts ready to get outraged that their raison de vivre language hasn't been mentioned. The fact that Nimrod, D or Julia weren't mentioned isn't necessarily relevant in the overall estimation of the quality of the contents of the article.
- NateDad 12y agoRust is not a stable language, so no long running project can safely use it. Is Julia a stable language with backwards compatibility? It's v0.2.1 right now, which doesn't fill me with confidence. He mentions C++, pretty sure he knows about C++11. And yeah, you can only drop so many names.
- cnbuff410 12y agoA lot of FP people tend to think people don't use FP are those who have "never heard of any modern functional languages". I don't know where does this kind of arrogance come from. Sure, functional language can be used in almost all the programming related projects. But are they really a good fit or not is not decided by FP advocacy, but the people who actually tackle these problems. Go for now shines in a pretty niche market, it is extremely good fit for this niche market, and this fact is not advocated by Go fans or Go team, but by large amount of open source projects and emerging usage in quite a few serious companies/startups. You can certainly go ahead and ask them "Why not use OCaml, F#, Haskell or Scala", or you can use FP to make a better project in this field to show people FP is indeed much better fit. To some of us, programming language is merely a tool to solve a problem, not to show off the shining design concept. For us, Go hits a incredibly sweet point on the balance of coding efficiency and running efficiency. Note that, coding efficiency has nothing to do with "how beautiful and elegant this code snippet is", it has everything to do with "if this project is easy to read, easy to maintain and easy to expand"
- cgag 12y agoWhat's the niche Go occupies and what makes go better than those other languages you mentioned for that niche? Those languages are better tools for solving problems in a lot of cases, the problem is people just choose tools that are similar to ones they already know rather than the best tools available.
- stcredzero 12y agoI ported a game server from Clojure to Go. Go was simply a better fit. When you need to make sure that memory in structs is laid out a certain way to avoid cache line clobbering with high parallelism and ensure arithmetic is using 64 bit ints, Go does this more easily. It would have the same advantages over Scala. Not sure about Haskell or OCaml. (Suspect not.)
- cnbuff410 12y agoYou don't even know what kind of project I'm talking about and you are saying "rather than the best tools available"? I don't get it. Do you really believe that problem field doesn't matter, and FP is "best tools available by default" for any field anyway? Go to github and see the rank of project written in Go, you will see clearly what is the niche market(not that niche I would say) I'm talking about.
- NateDad 12y agoWriting servers is a pretty big niche, don't you think?
- cgag 12y agoThat niche seems to be web servers, which is a gigantic niche, but yes I largely think its a worse tool than Haskell/Ocaml/Erlang/etc in that niche. The point stcredzero about manually laying out memory is fair, though much less important in writing web servers than in a game.
- lmm 12y ago> A lot of FP people tend to think people don't use FP are those who have "never heard of any modern functional languages". A lot of the slides are about why he wouldn't use Perl, why he wouldn't use Java, and the like. His whole argument is that there's no other language in the efficient / nice to program quadrant. To make that kind of argument you have to cover all the options, and at least place those languages somewhere on the diagram (or acknowledge why you aren't). > You can certainly go ahead and ask them "Why not use OCaml, F#, Haskell or Scala", or you can use FP to make a better project in this field to show people FP is indeed much better fit. Well, that's what I do. But Go seems to get a disproportionate amount of coverage on HN, particularly compared with what people I've met in real life are using. (at least here in London. Maybe it's much more popular in SV?)
- stcredzero 12y agoHe mentions Clojure, Haskell, and Erlang. Did you read the whole presentation? I concur with his fun vs. efficiency graph. It strikes me as quite accurate. Also, I concur that it's a big win to not need nginx/Haproxy as a reverse proxy/SSL terminator. I suspect that a great deal of my server performance gain going from Clojure to Go resulted from this alone. Also concur that getting off the JVM has improved programmer fun by eliminating initial wait times.
- threeseed 12y agoRemind me again why you need HAProxy/Nginx ? SSL support in the JVM space is first class and there are plenty of libraries that negate any need for a separate infrastructure piece. Also the argument about initial wait times is bizarre considering you are talking about server side applications. Plus there is always Drip.
- stcredzero 12y agoRemind me again why you need HAProxy/Nginx ? SSL support in the JVM space is first class and there are plenty of libraries that negate any need for a separate infrastructure piece. Clojure community at the time was still recommending using a reverse proxy as an SSL terminator. Are you going to say that the JVM SSL implementation is as fast as using nginx? It's also supposed to give some measure of DOS immunity. Also the argument about initial wait times is bizarre considering you are talking about server side applications. Yeah...Java guys were saying that back when I was working with app servers on Smalltalk VMs, which also had a tremendous advantage in startup times. (Take away the splash and herald, and VisualWorks used to start faster than Perl 5.) All of those several second wait times nickel and dime you to distraction. Plus there is always Drip. I did use it. About halved my wait times. The wait was still too long. Using Go is better for me.
- lmm 12y ago> Clojure community at the time was still recommending using a reverse proxy as an SSL terminator. Are you going to say that the JVM SSL implementation is as fast as using nginx? It's also supposed to give some measure of DOS immunity. The question isn't whether it's as fast as nginx so much as whether it's as fast as go.
- zura 12y agoAgree. If only Go had generics, it would be so much more pleasant to use. I could deal with the absent of other constructs (exceptions, sum types, etc...). Yet, I'm anyway moving into Go (for back-end) for pragmatic reasons - availability of remote jobs and my preference of using it over j2ee or python/ruby/etc...
- threeseed 12y agoClojure and Pulsar would be a good fit as well. I don't mind Go. But I would hardly consider it "fun". The error handling is a chore, it's lack of libraries frustrating and you don't get the more interesting constructs of a FP language.
- NateDad 12y agoI wonder what you're doing that you find a lack of libraries. I have had no such problem, but I could imagine math or scientific libraries being in short supply... it's not really a language those fields have found suitable for their needs. Most stuff you'd use in a networked server application or command line tool exists.
- drsintoma 12y agoThe real difference IMHO is the very low cognitive load that Go requires. It's a very minimal language very easy to reason about. This translates into 2 things: 1. Most programers (above and below average) can just pick-up Go and be productive without much hand-holding. 2. Most programers can, without much experience, pick anyone's Go code and understand what it's doing. Working in a company where we introduced Go for backend services without anyone knowing much about it, I know first hand those 2 are true for Go. But I'm not so sure about how OCaml, F#, Haskell or Scala would do with some of my colleagues in that sense.
- NateDad 12y agoThat's an awesome thing about Go, there's nearly no ramp-up time. On Juju, we hire like 65% devs who've never used Go, spend nearly zero time teaching it to them, and they're still instantly productive.
- pjmlp 12y agoA language to be loved by managers it seems, specially when high attrition and off-shoring are the rules of the game.
- NateDad 12y agoSo, you enjoy spending months ramping up new developers in your language of choice? That's not a task that falls to managers, it falls to the other developers on the team. There's still ramp up on the codebase, but at least I don't have to ramp people up on the basics of the language itself. That's a huge win. If you think team productivity only matters to managers, that's kind of sad.
- pjmlp 12y agoNo, because in our projects only developers skilled in the required technologies get hired.
- 12y ago
- pjmlp 12y agoBecause the language is easier to sell, if you assume there aren't better alternatives. If it wasn't for Google sponsoring, it would have joined Limbo already.