←back to thread

33 points ashishb | 1 comments | | HN request time: 0s | source
Show context
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 #
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 #
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 #
andag ◴[] No.43298803[source]
... Adding a step in CICD that catches this is extremely trivial though.
replies(1): >>43301465 #
1. ashishb ◴[] No.43301465{3}[source]
Which tools would you recommend for that?