3 ms·
This seems lazy. You could write this same article about any language just with different criticisms. * Performance is not as dire as the author suggests. It’s
by Spivak 5y ago
This seems lazy. You could write this same article about any language just with different criticisms.
* Performance is not as dire as the author suggests. It’s just not the biggest priority compared to say V8. There’s a good amount of low hanging fruit, and hot paths in high-perf libraries are typically written in C and just instrumented in Python.
* Whitespace syntax is a non-issue to anyone but beginners in their first week of programming.
* Lambdas being not very good syntax most of the time doesn’t affect anything since you never are required to use them. Just create a function or any other Callable.
* Python being dynamically typed is a style choice, not a deficiency. There are trade-offs but “dynamic with statically checked type annotations” whether it’s Hack, Typescript, or Python is insanely productive.
Nothing to really say about mobile. Totally valid and there’s not a whole lot of work being done on getting it there.
- jakobnissen 5y agoPerformance in native Python really is bad. Nine out of ten times, you can get away with it by figuring out how to push all the computation into the layer of C that Python rests on, but sometimes you just can't, and then Python becomes essentially unusable. From my own experience, implementing Needleman-Wunch or k-mer counting is literally >100x slower in Python than Julia or C. Meaning a two-minute task turns into a 3 hour task - at least. At this point you can begin coding in Rust, but it feels bitter to learn Python, get into it, and then realize you've learned an entire programming language just to use it as wrapper for your actual business code.
- xf1cf 5y agoAgree, after using python for work on research for one of my papers it was wholly insufficient. I ended up writing more Cython than Python to achieve the performance I needed on a mere 100,000 points of data. My performance metrics were similar but I think it was 200-300x slower for me due to all the extra cruft that gets carried around with data structures. That being said I use Python in my professional life without complaint. It’s performant for 99% of that work. I will just never use Python for novel research again unless there are already libraries I can lean on. You’ll find a lot of the big FAANGs using Python have their own implementation of it. Famously Dropbox hired GVR to implement a special performant LLVM based Python.