When you should use Go
-
Continuing the discussion from C# is going to be even more awesome:
@ben_lubar said:
Ever hear of Docker? This server is running on it. It's written in Go.
Dropbox, CloudFlare, SoundCloud, and of course, Google, use it too.
Thanks. To be clear, I honestly want to know.
Because I see people flouting their favorite esoteric language, and while those are good and they expose flaws and the big languages pick up on those features and incorporate them, I don't feel comfortable dedicating time to a language that doesn't have real, practical, business use.
It's like the green party. Thanks for showing us where we both screwed up, now I'm going to take your policies. This is a good thing, because those problems wouldn't have gotten attention otherwise. But we both know, the green party is never getting the Whitehouse.
But without some examples of actual business use, because of all the hype for everyone's pet language, I cannot tell which language would be worth my time for building my career. I mean, if I want a fun pet language, I'll just use LISP. If I want to hurt myself, I'll use R. I don't need a hipster language.
So, any information on how these languages are used, in an actual business context, is extremely useful.
So, thank you for honestly answering.
I'm writing a websockets server for FrankerFaceZ. It's written in Go. Why?
- The previous Python implementation started to crash & burn when the client count increased over ~9-11K.
- The expected peak concurrent users today is ~30K.
- Go does really well at handling services with lots of clients.
Here's the memory use for the server, it's servicing around 5K users at peak, 3.5K as of screenshot..
-
Just to add one more data point. InfluxDB is written in Go. From what I have seen it is pretty good at handling huge amount of IO in parallel. If you have SSD it puts it into good use.
-
Yeah, the GFE - Google FrontEnd - servers run Go. Basically all they do is recognize the url, route the request, and
io.Copy(...)
-
Pretty much anything's good when compared to Python.
Let's see a comparison to C#.
-
Let's see a comparison to C#.
Well, performance isn't the only metric. It also has to be maintainable, and if they can find more Go programmers, then Go may be the best fit for them.
<sarcasm>
-
The previous Python implementation started to crash & burn when the client count increased over ~9-11K.
It's an interpreted language with quite possibly the worst concurrency support in existence. What did you expect?
-
Just to add one more data point. InfluxDB is written in Go. From what I have seen it is pretty good at handling huge amount of IO in parallel. If you have SSD it puts it into good use.
Hmm, that name sounds familiar. Where did I hear that before?
-
Do you have a comparesment with C# and node.js? From some other charts I've seen, I think node should lag a little bit behind, and C# about 50%.
Well, performance isn't the only metric. It also has to be maintainable, and if they can find more Go programmers, then Go may be the best fit for them.
Yes, go has some powerful features, but also a lot of stupid quirks and problems at the language level. Too many IMO for a fresh new language, where they had an open field and plenty of time to smooth everything over before 1.0.
-
Well, performance isn't the only metric. It also has to be maintainable, and if they can find more Go programmers, then Go may be the best fit for them.
In the abstract, fair enough.
But if you're asserting that there's more Go programmers than C# programmers in circulation, you're taking crazy-pills. That's probably not even true on the Google campus.
-
ell, performance isn't the only metric. It also has to be maintainable, and if they can find more Go programmers, then Go may be the best fit for them.
Hahahahaha
-
-
Well, @ben_lubar doesn't have a job yet, so that's at least 25% of Go programmers up for reaping...
-
When you should use Go:
- Never. Unless you're hanging out with Ben Lubar.
-
I am now almost tempted to learn Go or some other moon language just so I can annoy you all with it.
Almost.
-
-
Then when should you use ogle?
-
As far as moon languages go, I can highly recommend Lua.
-
Then when should you use ogle?
When you're the inventor of it and you get hired by Google.
-
@Spanky587 said:
When you
shouldpossibly are forced to use Go, probably and hopefully against your will:2. When you work at Google
FTFY.
-
Unless you're hanging out with Ben Lubar.
Has he trapped you in his basement? Blink twice for yes.
-
He can't blink. There's an UNSETTLING PICTURE OF MORBIUSWILTERS staring at him...
-
How about studying for the moon bar exam and becoming a moon lawyer?
-
-
For those who haven't seen it, this thread is worth a read: http://forums.thedailywtf.com/forums/p/26436/299209.aspx#299209
Also, the old forum had PAGES, so if you're used to Discourse you might be a bit confused when you get to the end of a page and the scrollbar doesn't jump three feet in the air.
-
There is? I wasn't sure whether the precedent was binding or not...
-
-
We need likes per-selection, because you deserve 2 for this: one for digging out the thread (I always forget what the actual name was and have trouble finding it), and one for joke.
-
Also, the old forum had PAGES, so if you're used to Discourse you might be a bit confused when you get to the end of a page and the scrollbar doesn't jump three feet in the air.
Oh, I was starting to wonder whether the Infinispinner was broken or if old topics never contained more than 50 posts. Thanks for the heads-up. /s
-
Dark or light side? There's a difference.
THERE IS NO DARK SIDE OF THE MOON!
THERE IS A NEAR SIDE AND A FAR SIDE, AND A FEW CANYONS NEAR THE POLES THAT ARE DEEP ENOUGH THAT NEVER GET SUN! THE REST OF THE MOON GETS ABOUT TWO WEEKS OF SUNLIGHT A MONTH REGARDLESS OF WHICH SIDE OF THE MOON IT IS!!!!!
GAH!
SCIENCE ISN'T THAT HARD TO GET RIGHT!
-
Tell that to the politicians up here.
-
SCIENCE ISN'T THAT HARD TO GET RIGHT!
Who's talking about science? This is naming things.
-
I don't know what's worse, than retarded-ass game, or the one Acccccccccccccccccclia posted where the "game" is you type a number then feel like you're not a worthless idiot for a few seconds afterwards.
-
-
I don't know what's worse, than retarded-ass game, or the one Acccccccccccccccccclia posted where the "game" is you type a number then feel like you're not a worthless idiot for a few seconds afterwards.
You seem fixated on that thread for some reason.
/me pulls up a leather chair and reclining couch, sits down in the chair and picks up a tobacco pipe
Why don't you tell me how that thread makes you feel?
-
THERE IS NO DARK SIDE OF THE MOON!
If that's true, what album do stoners sync up with the Wizard of Oz?
-
If that's true, what album do stoners sync up with the Wizard of Oz?
well that's obvious. Pink Floyd's famous album "The Currently Shaded Side of the Moon"
-
You seem fixated on that thread for some reason.
Too much work to keep the insult pool fresh, probably. Plus, algae sequesters carbon or something.
-
you must be fun at parties
-
-
the things you get tossed out because you keep blabbing about not so dark sides and centrifugal forces
-
the things you get tossed out because you keep blabbing about not so dark sides and centrifugal forces
OOOOH!
Party = Pub.
got it.
Thanks, i was wondering why i kept getting thrown out of those places. I mean i suppose a fox is not a common patron, but if you're not going to serve me you could at least shoo me out the door instead of throwing me out through your plate glass window....
-
The fox is at the gay bar across the street.
-
The fox is at the gay bar across the street.
Hmm, that's rather precise location of the person in question. Am i to assume that this is first hand knowledge?
-
This just made me miss @dhromed more. :(
-
LOOK INVENTORY
Your bag has one DOG RESIDUE in it.
-
-
You need to know your enemies!
-
Came across this post, which at least partially sums up my feelings on Go : https://www.quora.com/Which-language-has-the-brightest-future-in-replacement-of-C-between-D-Go-and-Rust-And-Why/answer/Andrei-Alexandrescu
Go is famously simple - there are anecdotes of people picking it up quickly. However, that becomes problematic as time goes by; Go code is hopelessly pedestrian - Go coders find themselves writing again and again the same things from an ant's vantage point because Go cannot abstract even the simplest notions or algorithms. Domains that are not already served by easy to glue libraries are difficult to get into. There is backlash from coders who have used Go for one project and wouldn't want to ever use it again.
-
USE DOG RESIDUE
Stop judging my body, Discourse!
-
Stop judging my body, Discourse!
Everyone who's seen your picture judges your body, Ben.
I had another joke I was going to make but now I forgot what it was. Oh wait, "Go".