Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18433
| Date | 2012-01-03 13:03 -0600 |
|---|---|
| From | David Harks <dave@dwink.net> |
| Subject | Re: python philosophical question - strong vs duck typing |
| References | <CAOFf2a0dG1tR1-2sJnqCCGqVXocqvzGScGeDJXeXwKdfdvuT-Q@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4369.1325617422.27778.python-list@python.org> (permalink) |
On 1/3/2012 12:13 PM, Sean Wolfe wrote: > if we are coding in python but looking for > more performance, Are you in fact in this situation? Despite years of folks mentioning how Python is 'slower than C++', I've seen a project where a developer churned out a feature using Python's generators that performed much faster than the C++ implementation it replaced. It wasn't because the C++ was slower by nature; it's because it was harder to express the optimal algorithm in C++ so the C++ developer chose a sub-optimal approach in the interest of meeting a deadline. There's always a tradeoff. Making a language less expressive (constraining ourselves) in favor of runtime performance is not always the right tradeoff.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: python philosophical question - strong vs duck typing David Harks <dave@dwink.net> - 2012-01-03 13:03 -0600 Re: python philosophical question - strong vs duck typing Neil Cerutti <neilc@norwich.edu> - 2012-01-03 19:40 +0000
csiph-web