4 ms·
>Rewriting libraries in C isn't making Python code run faster. No, but nobody cares for the purity of only-Python code. They care for running their calculation
by coldtea 9y ago
>Rewriting libraries in C isn't making Python code run faster.
No, but nobody cares for the purity of only-Python code. They care for running their calculation fast, and if that takes C-enabled modules they are totally fine with it. With things like numpy available, it's not like they have to write those calculations themselves.
Besides Numpy smokes PyPy for the same kind of calculations (not that one would care to rewrite the tons of stuff available in there in pure Python).
- srean 9y ago>No, but nobody cares for the purity of only-Python code. Let me call BS on that. I would prefer not to be forced to drop down to C if I could have it. I am quite sure many feel that way. I would definitely like the ease of calling an existing C or Fortran library that already does what I need. But that I need (almost to a fault) to context switch between languages is certainly not a high point especially when I am prototyping something new and for which there aren't any good libraries yet.
- bpicolo 9y agoNumpy doesn't force you to drop down to C, though. That it's C under the hood is almost entirely irrelevant when making use of it
- srean 9y agoYes it absolutely doesnt. I was talking about things when you have to reach beyond Numpy/Scipy/Pandas/Scikits. For C or Fortran libraries and tools like those that are already there, Python is very pleasant to use.
- pjmlp 9y agoIf people didn't care, they wouldn't be moving into Julia, Go, Chapel,...
- Majestic121 9y agoDo you have any source for this affirmation that people are moving from Python to Julia/Go/etc ? Those language are definitely growing, but so is Python and while there is movement between the languages I am not sure is a massive unilateral migration as you seem to imply.
- pjmlp 9y agoJust empirical information from the amount of talks we get to see at the respective LanguageConf, and which institutes are doing them.
- joshuamorton 9y agoConversely, clearly people are moving from Julia to python, since there are more and more larger and larger pyCon's each year.
- Daishiman 9y agoThere is no correlation whatsoever with the amount of talks in conferences and what's happening in real life. If conferences were a metric for anything you'd assume most of coding in the world is happening in Node.JS/React/JS-package-manager-of-the day. The reality is that the vast, vast majority of devs and code that's actually running the world are doing some combination of Java, C#, PHP, C++, C and COBOL. Those people aren't exactly going to conferences; they have regular old boring 9 to 5 jobs and are plenty busy trying to make shit work or diving in piles of legacy code or installing run-of-the-mill CMSes.
- pwang 9y agoThe whole point of programming language conferences is to focus on bleeding edge "what's new/potentially coming down the pike", instead of "what's being adopted massively". Of course the type of people who want to dabble with different languages are going to move around. Most of the rest of the world wants to learn the one language that mostly gets them where they need to go, and be done with it. There is a photo I recently saw of 1200 students starting in Berkeley's introductory data science class. They're doing Python. Are there even 1200 serious Chapel users in the world?! I mean, I love the ideas in Chapel (and even the early ZPL), and I drew inspiration from them. But the fate of a computer language is as much determined by the growth dynamics of its user community as by its differentiating features.
- imtringued 9y agoWhat if the existing libraries don't solve your problem? How do you make python fast without writing new C code?
- coldtea 9y agoUsing Cython, numba, caching annotations, better algorithms and so -- all things that the article also covered.