by shawnz · 5y ago · 0 comments
I have my criticisms of Golang and Rust as well, but Go is finally getting generics. It's not that they were never open to it, but the proposal needed to be good.
Rust seriously needs to stop this rustup, curl | sh nonsense as an install method though. It's really embarrassing for a language that goes around beating everyone over the head about how secure it is. Rustup.rs is an enormous target if you want to go and sneak malicious code out into the world.
Furthermore it's often not obvious what the results will be until the design is used in practice. There are lots of decisions that Go has made where I don't see them as clear and obvious wins, but I could be convinced after seeing how developers incorporate the ideas into their code.
Newer languages have an advantage here, because if their opinions turn out to be unsuccessful, then people will just forget about the language. They won't feel like a language they previously liked was made worse, like some felt with the Python 2->3 transition. But as languages like Go age, there will be more people to get upset with each change. So I worry that simply switching to a newer language doesn't really solve the problem, even if you feel like its opinions align well with your own at the current time.
You decide that you're going to write a new HTTP request library in Python.
Do you a) wrap libcurl, a blindingly fast and complete library that has had more man-hours of effort put into it than most other codebases on the planet, or b) write something from scratch?
Because out of the 8 or 9 popular Python libraries in use for solving this problem, only PycURL chose a.
Not my favorite language, but definitely a stable one.
Go is very opinionated but the focus is strong on pragmatism and engineering. One could say that this strong focus makes for a very cohesive language. It doesn't support all the bell and whistles but that's not necessarily bad, if it doesn't detract from its purpose. Looking at the engineering landscape today, one can definitely say that Python missed the mark by a very wide margin and Go nailed it.
(Which is not to say that Python is going away, research and data science are its bread & butter)