6 ms·
Python always made it possible to use C, that's a design feature. It's ridiculous to characterize this as untrustworthy.
by pekk 10y ago
Python always made it possible to use C, that's a design feature. It's ridiculous to characterize this as untrustworthy.
- jsd1982 10y agoI only meant trustworthiness in terms of predictability of performance. The point was that Go's http stack and standard library and runtime being written all in Go gives me confidence that any Go code I write on top will enjoy the same performance characteristics and that there will be very few surprises. It's predictable due to its uniformity.
- gpderetta 10y agoI assume your OS and hardware firmware is also written in GO...
- throwawayish 10y agoPerformance is a non-predictable good on macroscopic (application) scales.
- IndianAstronaut 10y agoThis is also why I am looking into more analytics work in Go. Uniformity of performance across different data analysis processes.
- didibus 10y agoI wouldn't say untrustworthy, but it's definitly misleading to say python achieves those performances, when it's actually calling into C for most of it.
- kibwen 10y agoIt may be misleading to imply that this is pure Python, but if the C is encapsulated well enough that someone can write their server solely in Python then it's easy to argue that this is Python. After all, Go has bits that are written in assembly, but we don't have to qualify every Go benchmark with an asterisk and a footnote to mention that.
- didibus 10y agoWell, I guess that's a good argument. Though I feel like unless it's part of the base language implementation, you'd have to consider it an extension to the language. So CPYTHON can not in fact deliver those performances. But CPYTHON can be extended through Japronto to achieve them. I'd say it's still misleading, since casually when we refer to Python, it means CPYTHON. Go's primary implementation provides all the fast goodies needed for fast performance. There could be a slow Go compiler which didn't, but when you say Go, it refers to Google's implementation. You could argue that at least, CPYTHON makes it easy to extend the language with C. So Python language extensions are trivial to use compared to some other languages. So at least I'll give you that.
- makapuf 10y agomany parts of the stdlib in python are written in C, so C and python are really working close together in python.
- BuckRogers 10y agoThat's how scripting languages have always worked. Typically the reason one language is considered scripting while another like Go is not. I tend to like the Python arrangement more because it's almost as high level as you can go and even pure Python performance suits me. But they're both good setups.