←back to thread

33 points ashishb | 8 comments | | HN request time: 0.921s | source | bottom
1. randomNumber7 ◴[] No.43298214[source]
Idk why such noob stuff is upvoted on HN.

The only thing this tells you that you should try to avoid a billon nested loop iterations in python. In case you didnt know.

On the other hand I would also see python as a bit questionable for bigger procejts, just because at some point a type system does more help than harm. But I have never really worked with pythons type extension so nowadays even this might be good enough.

replies(3): >>43298410 #>>43301782 #>>43305332 #
2. ashishb ◴[] No.43298410[source]
> The only thing this tells you that you should try to avoid a billon nested loop iterations in python. In case you didnt know.

Where does the article talk about the billion nested loop at all? It uses that as an illustration.

I mentioned the problems related to speed and performance of a simple web server as well as code maintainability issues.

replies(1): >>43298605 #
3. ashishb ◴[] No.43298605[source]
> But I have never really worked with pythons type extension so nowadays even this might be good enough.

I have used Python type system extensively, it is unfortunately, still an honor-code based system. So, you have to catch it during code reviews.

replies(1): >>43298803 #
4. andag ◴[] No.43298803{3}[source]
... Adding a step in CICD that catches this is extremely trivial though.
replies(1): >>43301465 #
5. ashishb ◴[] No.43301465{4}[source]
Which tools would you recommend for that?
6. BuckRogers ◴[] No.43305332[source]
I'd argue it's noob to use Python for anything other than where it has actual strengths like data science. Even AI can't help Python performance issues, you're stuck. AI can help verify C code, for example, is memory safe. There's just nothing you can do to fix Python's biggest problems. Wrong tool for the job.
7. randomNumber7 ◴[] No.43307104[source]
Most people seem to agree with my "hot" takes. Why should I invest so much time for a random comment? I just clarified what are the limits of my opinion.

On the other hand it doesn't seem you read the article? It is mostly focused on performance, which often shouldnt be the main focus when selecting the language. And even if you need performance (e.g. data science) it can be very fast if you source out the billion iterations to a library.

replies(1): >>43307979 #
8. ashishb ◴[] No.43307979{3}[source]
The article did talk about maintainability issues with Python as well.