This: https://darkf.github.io/posts/problems-i-have-with-python.html
Summary.
- Slow.
- Threads.
- Legacy Python 2 Code.
- Some Inconsistencies.
- Functional Programming.
- Class Definitions Don't Have Enough Features.
- Switch Statement.
Responses.
- Find the 20% that needs a speedup and write that in C. Most of the time that's already available in numpy. The rest of the time you may have found something useful.
- Generally, most folks make a hash of threaded programming. A focus on process-level parallelism is simpler and essentially guarantees success by avoiding shared data structures.
- Maybe stop using the legacy projects?
- Yup.
- Proper functional programming would requires an optimizer, something that doesn't fit well with easy-to-debug Python. It would also require adding some features to cope the optimization of functional code (e.g., monads.) It seems to be a net loss. And http://coconut-lang.org.
- Consider a metaclass that provides the missing features?
- I can't figure out why 'elif' is considered hard to use. The more complex matching rules are pretty easy to implement, but I guess this falls into the "awful hacks" category.
What causes me to write this is the lack of concrete "do this instead" for most of the points. It sounds too much like empty complaining.
I hope for some follow-on from this on Twitter:
"Problems I Have With Python" (from a long-time Python user) https://t.co/CWYTdsge70
—Dan Bader (@dbader_org) May 16, 2017
But I'm not optimistic. It's too easy to complain and too hard to solve.