Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some key quotes

"Previously, these operations people would write these in Python, but they're finding that Go is much faster in terms of performance and time to actually write the code."

Go beating Python in time to code?

"[Node.js is] a single thread. In a very similar amount of code, you could write a goroutine-heavy server that could handle tens of thousands of requests and use all the cores on your machine, so that if the requests were expensive – if they were CPU-intensive – you'd have a chance of keeping up," Pike says.

"Node.js shows great numbers for heavy numbers of clients, and they've done a really good job. But if those clients are CPU-intensive, they've got no place to go. You can't get the parallelism you need. With Go, you get the best of both worlds: You get many clients easily handled, and if they're CPU intensive, you can imagine scaling to a much larger number of requests."

What's more, Gerrand argues, Go doesn't force developers to embrace the asynchronous ways of event-driven programming. ... "That lets you write asynchronous code in a synchronous style. As people, we're much better suited to writing about things in a synchronous style."

Not quite true about CPU-intensive tasks. Node can use webworkers and leave the main thread for handling small requests. Obviously JavaScript is slower, webworkers open up heavy OS level threads (at least in browsers, not sure about node), but there is somewhere to go.

I like the competitiveness either way. Go deserves more popularity.

I wonder, is it possible to do some syntax rewrite to make it look like a weak/dynamic typed language and only use static types when you need the performance? That would give them a popularity boost from superficial Ruby/Python devs traumatized by systems programming.



> Go beating Python in time to code?

Yes, that's what they tell me. Among other reasons, static typing means catching programmer errors faster.


> I wonder, is it possible to do some syntax rewrite to make it look like a weak/dynamic typed language

Go already in practice feels very much as light as a weak/dynamic-typed language thanks to (implicit) interfaces, type inference and the plain simplicity of the type system and syntax.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: