logoalt Hacker News

moi2388last Sunday at 11:03 AM2 repliesview on HN

“ How do you speed up computational Python code? A common, and useful, starting point is”

A better starting point is: use a better language. Python is terrible and unbearably slow. If you need anything serious or performant, switch to something else.


Replies

wrsh07today at 3:24 PM

Literally bullet 2:

> 2. Use a compiled language to write a Python extension.

It's fine to be grumpy about languages, but python is the de facto standard in many industries, and a lot of people don't get to choose.

So, yes, asking "how do you speed up computational python code?" is a good, fine, normal question.

dekdroptoday at 5:25 PM

The point of python is to be a scripting language. Writing the main code in a systems languages and making it available to python is a very promising way of using it.