I have a background on 20+ years of coding java/php/swift/Js etc. And i was so excited to know more abt tensors and neuron networks, so i finally decided to dig into python which i always found ugly (too used to the C coding style) But i was happy and found that it works!! Panda library makes arrays like an excel sheet. And lot of cool stuff.
Of course i directly went into the object oriented style and making my own packages and classes.
And very quickly i wanted to make GUI as i was tired of running my code in console and writing parameters by hand… and there is when things started to get disappointing.
After many readings i tried the pyside6 library, wich was working but dunno why it was a variant of pyqt and there were some licensing weird details. But i figured out how to make it run.
Then, i of course came to the point where i need my gui to make async calls for some cpu intensive tasks. And this was hell… no documentation, no straight forward way to make it work. And especially so many libraries exists that are abandonned and not maintained wich start making me feel i was on the bad path.
And in this trial and error step i discovered that python is basically mono-cpu language and since it’s interpreted it makes it half the speed of the same php code and up to 500 slower than a C code. (Something i discovered when i found out Cython).
Then all of the sudden i was confused, why people chose this language for neuron networks wich is one of the most cpu intensive coding thing??
I was also digging pytorch and the CUDA library and also found that everything work in some sort of tweaks here and there (wich is nornal since the core of python is moni-cpu).
And finally, i came accross the venv folder, (i started with conda) and realized this folder can reach many gigs of bytes, it reminded me of the node_module in js coding. And there knew that it would be a hell to make a lightweight portable exe file out of my python script. While it was one of the main motivation to start python is to be able to build offline desktop apps
So thats where i am. I hope i am wrong with all the disappointments i listed and that i can find my initial enthusiasm for coding python.
All of your comments are welcomed
UPDATE: Thx for all your inputs it really helped a lot. I figured out that PySide6 used natively async threads with QThread and i have tested it and seems great. Ui does not freeze and the code could detect all the 16cores of my macos and run parallel tasks on them. I am going to stress test the tool to check its limitations. Pyinstaller could generate a 60mb one executable file that runs a ui with all the pyside6 code.
Tutorial found here if anybody is interested: https://realpython.com/python-pyqt-qthread/