3 ms·
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 conc
by voidlogic 12y ago
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.
- dragonwriter 12y ago> 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.
- voidlogic 12y agoTrue, I was imprecise. Thanks.