30 ms·
It's pretty horrifying from a performance perspective.
by baguasquirrel 17y ago
It's pretty horrifying from a performance perspective.
- jrockway 17y agoIt's pretty nice from a correctness perspective. If you cared about performance, you would not be using Python (or Ruby, or Perl).
- nudded 17y agoIf you cared about type constraints you would not be using Python (or Ruby, or Perl).
- kingkilr 17y agoFar more interesting (IMO), would be a constrains based library based on predicates (iterable, hashable, arithmatic-able?)
- dagw 17y agoJust because you are using python doesn't mean that you have no interest in performance. Most apps don't need to be as fast as possible, but only fast enough. Adding a bunch of stuff that slows down python will decrease the set of problems where python is fast enough and thus usable. A large app I recently worked on is a python app interacting with a bunch of C++ libraries. The faster I could make my python code the more I can move stuff from C++ to python, which greatly decreases the time it takes to develop and change the app.
- baguasquirrel 17y agoI will concede this point. Well put.