3 ms·
Which is error prone and often actually slower depending on calling patterns between C and Python. There are many languages today that offer better ergonomics t
by weberc2 9y ago
Which is error prone and often actually slower depending on calling patterns between C and Python. There are many languages today that offer better ergonomics than Python/C, and a few (like Go) which offer better ergonomics than Python by itself, all while besting it in performance by one or more orders of magnitude.
I like Python; I just wish I could say the same for its developers...
- dragonwriter 9y ago> There are many languages today that offer better ergonomics than Python/C Including Cython. I mean, if you've got a C library, sure, interface it with Python; but unless you want something to be called from something else in addition to Python, dropping to C for performance needn't be the default choice in Python; that's the whole reason Cython exists. > and a few (like Go) which offer better ergonomics than Python by itself I find Go’s ergonomics to be worse than Python but better, mostly, than Java. > all while besting it in performance by one or more orders of magnitude. And, still, including Cython.
- weberc2 9y agoI would consider Cython if the particular bottlenecks were amenable to calling into a lower level language and if the alternative were porting a large application from Python to something else wholesale, but I would probably never start a new application in Python/Cython if there was any chance that performance would ever matter. The alternatives are simply too good. > I find Go’s ergonomics to be worse than Python but better, mostly, than Java. This is surprising. I'm a Python developer, and I still prototype new features in Go.