5 ms·
It's very clear what Go is for. Go is for the kind of stuff Google runs on their servers. C++ is too complex, too unsafe, and too hard to maintain, and Python
by Animats 11y ago
It's very clear what Go is for. Go is for the kind of stuff Google runs on their servers. C++ is too complex, too unsafe, and too hard to maintain, and Python is too slow. (Remember that "slow" at that scale means "we have to add another acre of servers.")
Go is an OK language for server-side stuff. It's not perfect. The concurrency isn't as airtight as its proponents originally claimed. Reflection and type "interface{}" tend to be needed too often. Other than that, there are few killer problems with the language when doing server-side stuff.
The libraries for doing web server type stuff are available and well debugged. When you use a Go library that came from Google, you're probably using code that's executing a few million times a second on Google servers. (As I mentioned on here a few months back, I recently ported a medium-sized production Python program from Python 2 to Python 3. I found library bugs which would have been found long ago were the code heavily used.)
So yes, Go is doomed to succeed. That's not a bad thing.
As for Rust, while I like Rust personally, it may be too complex. The borrow checker concept is brilliant, and a huge advance in understanding how to avoid a big class of bugs. We'll see that again in future languages. The type and generic system, though, pick up where C++ left off, and seem to lead library developers to develop very complex interfaces.
Rust is for people who debate language semantics on Lambda the Ultimate and program in Haskell for fun. Go is for people who have a job to do.
- ads_are_shite 11y agoSo, if we tread the same well worn steps as Google, drink from the same fountains we see their guilded staff drink from, we will be ok, but anything off the beaten path, we will be fucked? And good luck getting anything else as go is basically what Google say (see versioning and generics for examples).
- neverminder 11y agoI brought Rust into my job for some non-essential stuff and so far it obliterated my usual tools (Scala, Python to be more specific) in shear speed and low memory consumption. I've written no more than a thousand LOC of it and most of it is still clumsy bearing it mind the fact that I'm new to it, but the potential that it has cannot be denied. To me it's a missing link I was waiting for - a low level language that feels like a high level one.
- kibwen 11y agoI'm currently reaching out to people using Rust for their jobs so that we can establish a more formal relationship with corporate users, and I'd love to hear more about your use cases. :) My email is on my profile page here.
- octatoan 11y ago> shear speed Do you write tools for a woollens manufacturer?
- biggerbob 11y ago> Rust is for people who […] program in Haskell for fun. Go is for people who have a job to do. Typical condescending PL bullshit. So many programmers like to say that their PL of choice is meant for work and the rest are cute toys. Such widespread ignorance and stupidity saddens me.
- serge2k 11y ago> C++ is too complex, too unsafe, and too hard to maintain, and Python is too slow. (Remember that "slow" at that scale means "we have to add another acre of servers.") Which is why Java gets used instead.
- reagency 11y agoOften Java is too slow too. (Slow == overhead from GC of unwanted object metadata and heap allocated objects)
- Gurkenmaster 11y agoGo has a gc. That doesn't seem to be the problem. Google also uses Java quite often.
- threeseed 11y agoIn those Techempower benchmarks Java destroyed Go for web app style requests. And given that the JVM is so dominant in big data (e.g. Spark, Storm), online betting and applications like high frequency trading you could make the reasonable assumption that Java is anything but slow.
- laumars 11y agoIn some situations, yes. But Java can suffer from similar complexity and maintainability issues too. Go, for all it's short comings and missing features, is closer to the "instant gratification" state that Python and it's ilk enjoy while having performance closer to that of Java. I'm not trying to say one language is better or worse than the other though. Just my observations as to why Go is gaining popularity.
- lucidguppy2000 11y agoHow does go prevent complexity?
- laumars 11y ago
- reagency 11y agoDoes Google use Go in any high-load services?
- dkuntz2 11y agodownload.google.com is completely powered by Go at this point, iirc.
- thiagowfx 11y agoIndeed: https://talks.golang.org/2013/oscon-dl.slide https://talks.golang.org/2013/oscon-dl.slide
- rakoo 11y agoVitess (https://github.com/youtube/vitess https://github.com/youtube/vitess) scales mysql for youtube level of usage.
- codygman 11y ago> program in Haskell for fun. What about the people who program in Haskell for work? > Go is for people who have a job to do. People use Go for fun.
- pcwalton 11y agoThat last paragraph is ridiculous. Name one feature in Rust that you think is too much complexity and I'll tell you where I need it to get my job done in Servo. Without generics and traits, for example, there would literally be no reason for Servo to exist, because it would be too slow. Performance is not optional. Safety is not optional. They are my job. If I opposed language features that are needed for competitive performance or safety on the grounds of complexity, I would be failing to do my job. I'm responsible for a lot of Rust's features. I have never posted on LTU, and I've never written more than 50 lines of Haskell. I find most of the Rust community's philosophical language debates tiring and pointless; languages to me are tools, not philosophies. The entire core team is largely with me here. I think you have a deep misunderstanding of the language design if you believe Rust has features "just because".
- mentat 11y agoI don't read his/her criticism that way. It's that users of Rust tend to make over complex systems.
- pcwalton 11y agoThen let me be clear: contrary to the parent comment, Rust is not "for" people who do that. Rust is for people who have a job to do.
- kibwen 11y agoCan you provide an example of Rust users making overly-complex systems? Rust is a systems language, and systems themselves have intrinsic complexity that language designers must either choose to ignore or tackle. Scripting languages have the luxury of removing complexity by ignoring systems concerns so you don't have to care that your language is, say, copying strings around like a maniac behind your back. But somebody has to compete at the bottom of the stack, and while you can still seek ergonomic wins there's an enormous amount of essential complexity that can't be abstracted away.
- Merovius 11y agoI find it counterintuitive, that generics and traits improve speed. I would enjoy a deeper explanation of that :)
- kibwen 11y ago> Rust is for people who debate language semantics on > Lambda the Ultimate and program in Haskell for fun. Go > is for people who have a job to do. This is a mischaracterization of Rust to the point of incredulity. I've been talking to companies experimenting with Rust and all the engineers I've spoken to have praised Rust for its ability to let them do their jobs with confidence. These engineers are in domains where GC is intolerable and C++ is considered too much of a risk (in fact, one of my biggest surprises in this current endeavor is discovering how few people in industry will describe themselves as comfortable with C++ to the point of being willing to use it in greenfield projects with confidence). Without Rust, these companies would be forced to buy more hardware to throw hardware at the problem or hire C++ specialists to throw at the problem; fortunately Rust threads the needle and provides extreme business value. Rust was created to solve a specific pain point. It's not some language that sprang fully-formed and perfectly-designed out of the ether. It solves problems that no other language even attempts to solve (no, Ada doesn't do what Rust does (and likewise, Rust doesn't do what Ada does)), and the mechanisms that it uses to do that took years of iteration and concerted effort on large codebases. Not everyone needs to be working at the level that Rust does, and I think that's great. I'm a polyglot programmer myself, and I like Rust because at last there exists a language that lets me perform at the level of C with the same level of memory correctness that I expect from Python (or really, any language designed post-1995).
- jrcii 11y agoI never heard that phrase "thread the needle" before that's good
- octatoan 11y ago> Rust is for people who debate language semantics on Lambda the Ultimate and program in Haskell for fun. Very smooth. /s
- ngrilly 11y ago> Other than that, there are few killer problems with the language when doing server-side stuff. Which ones?