News for hackers. Stuff that matters.
Re:Open Sourcing Our Go Libraries (2014) by wnevets on Tuesday January 06, 2015 @11:48AM (#8845303)
when/where is Go faster than Python?
Re:Open Sourcing Our Go Libraries (2014) by voidlogic on Tuesday January 06, 2015 @12:38PM (#8845681)
1. Go, being a statically compiled language/having a closer to the metal memory model, generally has higher single threaded performance.

2. Go allows true concurrency in many situations Python cannot (due to GIL etc); Go also supports lightweight threads that are multiplexed over actual OS threads.

3. Go makes it easier to control and reason about heap allocations.

4. Go is even easier than Python to integrate with C/ASM code.

Re:Open Sourcing Our Go Libraries (2014) by dragonwriter on Tuesday January 06, 2015 @12:44PM (#8845724)
> 2. Go allows true concurrency in many situations Python cannot (due to GIL etc);

It would be more accurate to say that Go allows parallelism in situations where Python (in the standard implementation, at least) does not. Calling parallelism (what the GIL prevents) "true concurrency" isn't particularly helpful.

Re:Open Sourcing Our Go Libraries (2014) by voidlogic on Tuesday January 06, 2015 @01:15PM (#8845985)
True, I was imprecise. Thanks.
Re:Open Sourcing Our Go Libraries (2014) by scott_s on Tuesday January 06, 2015 @12:07PM (#8845446)
Since they mention "scalability", I think they're more concerned with the fact that Go has concurrency baked into the language. Python does not.
Re:Open Sourcing Our Go Libraries (2014) by nkozyra on Tuesday January 06, 2015 @11:59AM (#8845397)
It's a statically-typed and compiled language, by most accounts you can expect it to be faster in a lot of places.

This has more to do with the interpreter, of course, you can compete with PyPy.

Re:Open Sourcing Our Go Libraries (2014) by alexbardas on Tuesday January 06, 2015 @12:41PM (#8845708)
Go has a much better runtime system than Python (can spawn lots of green threads in parallel using goroutines), but it's also broken in so many ways (e.g.: type system).