4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 6y ago · link · parent
Encrypt and sign the data via NaCL or similar, send via UDP duplicated 5-10 times, no response at all from the server (it's analytics, it doesn't matter if very few events are lost and you can even estimate the rate).
As for the REST API, deprecate it and if still needed place it on whatever 3 VPS services have the lowest costs, and use low TTL DNS round-robin with something removing from DNS hosts that are down.
comment 6y ago · link · parent
For instance, it may be applied to "protect the people currently in power in the country" instead of "protect the [people living in the] country".
Business surveillance might be less problematic because laws and government are supposed to make businesses acting for their own interest not be a problem (or be less of a problem), while the same mechanism for governments (constitution and supreme courts) is less restrictive.
comment 6y ago · link · parent
Are there any results on the length (or maybe Kolmogorov complexity) of the shortest proof for provable propositions of length N? (in a specific logic system, I suppose)
I.e. how hard to prove is the hardest proposition of length of N and how does it grow with N? how about the average random provable proposition?
comment 6y ago · link · parent
comment 6y ago · link · parent
If so, why? Have there been leaks? Is there a plan to hire a bunch of new less vetted employees?
Or maybe it's a manipulative attempt to make those with undesirable cultural traits (including a desire for internal openness) leave the company without saying so explicitly?
comment 6y ago · link · parent
Instead, explain at length and let people discuss, but at some point explain that the decision is final unless some major new elements come up.
comment 6y ago · link · parent
It only caused problems because some kernels used to expect that all physical memory is mapped at all times (and some hardware could only DMA to 32-bit physical addresses, but that's a problem with 64-bit CPUs as well).
comment 6y ago · link · parent
In general OSes, the commonly used thread priorities are not realtime, and you need admin/root to set realtime thread priorities.
Also indefinite deadlock can only happen if realtime threads want to take up more CPU than available (which in particular requires to not have more cores than realtime threads), since otherwise they will eventually all be sleeping/waiting, allowing any threads waiting on the mutex to run.
comment 6y ago · link · parent
Of course it needs to actually work though, which is not clear from the article (categories like "comfy" aren't going to cut it, you probably need a sophisticated deep learning approach on product images plus brand identity data and maybe Instagram posts with a lot of training data).
Obviously you can also run a store or an affiliate-based site yourself with it, but the problem is that you are going to be missing data on customer's taste; maybe you could exclusively cater to people who love posting their photos on Instagram, connect to their Instagram account and understand their fashion taste from their posted photos - or you could even support imitating someone else fashion's taste by looking at their Instagram profile.
comment 6y ago · link · parent
This avoids having to introduce the extra interface, having to code the mock, sometimes having to change the mock or tests when changing the code and also lets you catch bugs in the dependencies that the tests on the dependency itself missed and that would otherwise show up in production.
One might have to do some work to partially replicate the production setup in testing and making it fast to start and run, but that's usually less work and gives a much better result.
comment 6y ago · link · parent
comment 6y ago · link · parent
It's only a problem if you try to restrict I/O APIs and use the Rust type system as a security boundary, which is something that I don't think anyone does and that should not be done since the surface area is too vast to secure without formal proofs of the whole Rust stack, which are too time-consuming to produce with current technologies.
comment 6y ago · link · parent
However, an important thing to note is that Rust strives to be safe only against unintentional bugs, and not against intentional malicious code (against which you are supposed to use OS/CPU-level sandboxing), so unsoundness issues that are very unlikely to be accidentally triggered aren't necessarily a very high priority.
This is a reasonable policy, since current Rust does not have a certified provably correct compiler and Rust programs in current practice don't come with formal proofs, so full provable soundness in type system doesn't really translate to any useful properties, since programs can intentionally fail to do what they are supposed to do in other ways (just do something safe but malicious or incorrect or exploit bugs in rustc or LLVM).
For instance, this issue is very unlikely to be triggered by non-malicious code, so emergency action to fix it is not being taken, and instead it will probably be fixed only once there is clear consensus on the best fix.
comment 7y ago · link · parent
For client use, carrier-grade NATs allows to have 1000 IPs per customer, giving 6 million addresses.
For server use, TLS SNI allows to have one IP per datacenter, which are estimated to be around 10 million in the world.
Non-TLS inbound usage is probably relatively rare, so overall around 100 million addresses should be fundamentally enough even accounting growth.
Of course there's a lot of inefficiencies, but the fundamentals seem to say that the IPv4 address space is enough.
comment 7y ago · link · parent