nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d

Agreed, while python's biggest shame-to-fame is its inability to leverage multiple cpus through multithreading (or coroutines).. the flip side is that it is so trivial to interact with C-code that it makes up for that in a unique way that has its own value.

IF you need a language where you need to do a lot in C but what the convience of high-level language where you can get away with it, python is great... if you need a high level language that is cpu-intensive and effecient and easy to write without wanting to touch C, then python is a horrible choice.

Me personally, I use python a lot (just finished a 2-year project in python)... but over the years have found it just isnt a suitable language for most things, because of these very reasons.

nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs

nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d

And to your other comment.. usng a thread pool to run coroutines doesnt get you anything here because multi-threading in python wont spam multipleCPUs.. youd have to use multiporcesses still.

nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs

Reply to this note

Please Login to reply.

Discussion

No replies yet.