For me Python is the ultimate glue code - it's the duck tape of my programming world. If I know multi-core performance is going to be an issue up front, I would pick another language.
For me Python is the ultimate glue code - it's the duck tape of my programming world. If I know multi-core performance is going to be an issue up front, I would pick another language.
Dunno if that'll work in practice, but it seems like the best possible plan going forward to get the change without causing strife.
This is why I have shifted most of my code (I work in data warehousing) to Go. Python is handy for little scripts and data mining.
No other language really does it right like Go - unifying event based and traditional multi-threading paradigms in a way that transparently utilizes all the cores on your system, while allowing you to write plain old iterative, blocking code.
Go may be less than ideal in many other regards (i.e. the rest of the language), but it gets this right.
Not trying to start a war but... Erlang, Haskell, F#, and a few others abstracted Evented IO and parallelism before Go even existed.
I would never consider Go mainstream myself though. Erlang is practically more mainstream.
Erlang is mainstream, but being functional probably not open to consideration for 99% of developers.
If so, I'll use it today!
So even though I work in a majority Go company, and I feel like Go is quite mainstream, I firmly believe that Rust is the future!
Btw, sorry if this Rust enthusiasm comes across as a bit over the top, I'm quite tired. I just really like it is all.
Rust definitely does things Go doesn't, but Go also offers things Rust doesn't: builtin concurrency and parallelism with goroutines and channels, garbage collection (which is useful when your app can tolerate its moderate overhead), very fast compilation, and great tooling.
Green Threads is one of the most important features in golang - to pretend that "Rust offers almost everything that Go does", but ignore the number 1 feature is dishonest.
It is cool you like Go, it is a nice language. But before you claim "it is the only language that does X", you should learn about other langues as well.
And I don't consider any functional language as a viable choice for the vast majority of mainstream users.