1,687 karma · joined Feb 7, 2015 (11y ago) · 449 submissions
comment 8y ago · link · parent
What did they do with it? Do they not regression test? Are they letting each new intern add a new feature while nobody really cares about quality? Did they just replace the old software with a new bug-riddled software that's getting pushed out the door without quality checks? Is it some manager trying to earn a medal by using that new MS-framework to rebuild everything and needing to push it out fast to declare success and move up while leaving the ruins behind?
comment 8y ago · link · parent
I don't see a way around this mess with the current structure of python. You would have to reimplement the data heavy part completely in another language that provides proper threading models.
comment 8y ago · link · parent
comment 8y ago · link · parent
As I understood the GIL simplifies data structures by removing any regard for concurrent access.
If you remove the GIL you must move your synchronization (mutexes) into the data structures and immediately get a big performance penalty.
If you wanted to avoid this overhead you run into swamplands where the programmer must take care of concurrent access patterns and everything. Also many CPython modules would stop working because they assume the GIL.
It can be done but last time I read about the GILectomy there was no clear way forward.
comment 8y ago · link · parent
Simply try something like unpickling a 10 GB data structure while keeping your GUI in the main thread responsive. You cannot do that because the GIL locks up everything while modifying data structures. Move the data to another process instead of another thread. Great, your GUI is responsive but you can't access the data from the main thread.
You can say that such a humongous data structure is wrong or that a GUI isn't meant to be responsive or programmed in Python or that I'm holding it wrong. Probably right.
comment 8y ago · link · parent
comment 8y ago · link · parent
Edit: I'm aware that there are solutions that put everything a program touches into a kind of executable archive. A single file several hundred Megabytes in size. I've tested it. It doesn't really pre-compile the modules. The startup time was exactly the same.
comment 8y ago · link · parent
Imagine you import tons of modules which often are only available in Python. This gets you going really quickly with your project and it runs very smoothly. Transferring this to C++ would probably take so long you won't even finish to find out before you run out of funding.
I have hopes that Rust or some descendant of Rust will get us there in maybe 10 years but in the meantime it would be better to get Python up to speed as good as possible.
comment 8y ago · link · parent
"ultra-high resolution" doesn't mean much if you can't see the problem.
"advanced machine learning" sounds dangerous once the machine damaged itself or killed a bunch of people trying to figure out things.
comment 8y ago · link · parent
Humans are in many conditions surprisingly fast, accurate, flexible, space saving and cheap when compared to a special robot that does the same thing.
comment 8y ago · link · parent
comment 8y ago · link · parent
You would make a killing with a CPU twice or ten times as fast. Many algorithms are only suited for single-core operation. I don't know if this will ever change. The focus has shifted to other architectures mostly because we've reached a ceiling for single-core CPU.
comment 8y ago · link · parent
If your signals are not "full entropy" or "white noise", you can do all sorts of funny tricks to increase the SNR to some extent. These tricks sure are nice but they veil the true issue at hand which is about information and capacity.