Better HN
topnewbestaskshowjobs
Log inSign up

std_throwaway

1,687 karma · joined Feb 7, 2015 (11y ago) · 449 submissions

Submissions

comment 8y ago · link · parent

Wouldn't a central proxy service as fallback be enough then?

comment 8y ago · link · parent

I don't understand how software can get this much worse. Having done absolutely nothing would have left Skype in a better shape than what we have now.

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

Does the methane get released after the cow has finished digestion and the manure is left to rot? The carbon has to go somewhere if it's not turned into methane inside the cow.

comment 8y ago · link · parent

PyQt is not PySide. Qt (the foundation) does not officially support PyQt. PySide (the old one) did not support Qt5. PySide2 does support Qt5.

comment 8y ago · link · parent

This seems to be the successor for PySide that supports Qt 5. The old PySide died some years ago and only PyQt was offering Qt 5 support. Due to some details PyQt was never officially supported by Qt. Is PySide2 now officially supported by Qt?

comment 8y ago · link · parent

So you're basically building a distributed application just because you can't share memory properly. This can be very efficient if little communication is involved or a total nightmare if you have gigabytes of data where you need lots of random read access to walk the data structures at high speed. If you're not careful you spend most of your time pickling and unpickling the stuff you send over your pipes while requiring duplication of your gigabyte data structures in order to gain at least some parallelism.

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

Thanks, I will try that!

comment 8y ago · link · parent

When was the last time you've tried it?

comment 8y ago · link · parent

Can't you use CPython for development and Nuitka for deployment?

comment 8y ago · link · parent

It was around 150..300 MB if I remember right. Admittedly, I do import a lot of modules. Program startup for me is in the seconds, not milliseconds. I maybe could cut it down 50% or even 80% but then that would cost a few weeks or a few months. Having a quick and robust solution to be implemented in a single week to cut down startup times by that amount would be highly preferable.

comment 8y ago · link · parent

> The GIL is an implementation detail, not poor language design.

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

The GIL is a pretty nasty problem once you try to scale things beyond one core.

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

This is different from the package that I've tested (PyInstaller or py2exe).

Is Nuikta compatible with numpy, pickle, etc? I remember that numpy was very problematic with compilers like pypy for a long time.

comment 8y ago · link · parent

People who are importing numpy usually are also not inverting massive matrices. These libraries provide tons of functionality that you would like to use in a short script. For people accustomed to these libraries the code is quick to write in a reliable fashion, easy to read but not quick to run. Everything is great except the startup time (and speed when you have more data).

comment 8y ago · link · parent

I imagine this could be handled by some kind of "fork". Where you instantly duplicate the whole process with copy-on-write.

comment 8y ago · link · parent

Do we have numpy, matplotlib, scipy, pickle etc. for Go?

comment 8y ago · link · parent

This is truly a problem. Even more so if you host your application on a network directory. Loading all the small files takes ages. I really wish there would be a good way to compile the whole application with all the modules into one package once you're ready to release. I really wish the creators of Python would have given such use-cases more consideration.

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

But what else do you switch to?

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

The whole line stops if a single process has problems.

Given a 99% chance of working for every single process for hundreds of processes you end up with... well... not much output.

comment 8y ago · link · parent

It's not that other auto-makers were sleeping all this time. They build new factories every now and then and increase automation where appropriate.

"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

Some things are surprisingly hard to automate. When your parts are hard to grip and have high tolerances and some are broken, good luck in getting a robot working reliably.

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

You have to pay most up-front for solar. If you don't have the money at hand, forget about getting a credit when recession strikes. It's a good investment if you expect money devaluation without high interest rates but in a recession you expect deflation first and cash is king.

comment 8y ago · link · parent

...and references the good old Reiser file system.

comment 8y ago · link · parent

For transmission of data yes, but you still need "lots" of energy to drive the loudspeakers.

comment 8y ago · link · parent

Coming from C++ it feels really weird that you can simply assign instance.new_name = value from anywhere without properly declaring it beforehand. You also never really know what you get or if somebody modified your instance members from the outside.

comment 8y ago · link · parent

I don't actually see this as a problem; as long as you're only running one application like that.

comment 8y ago · link · parent

They are supposedly not directly x86 compatible and thus will need to emulate it at a performance penalty. Not something you'd want in a "pro" machine.

comment 8y ago · link · parent

> There are now architectures other than CPUs that matter.

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

This is a tautology.

comment 8y ago · link · parent

Similar to the conservation of energy in physics you can ask yourself "is there enough space for the information?". If somebody tries pulls two signals out of one signal, they better don't have too much entropy each. For a given bandwidth (number of independent samples), a given signal energy, and a given noise energy, there is a hard limit to the amount of information you can pull out.

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.

1
789
15