4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 6y ago · link · parent
As far as I can tell they are the most successful government at least in modern history in terms of increasing living standards (huge GDP growth and even things like being the only country to successfully almost eradicate SARS-CoV-2), so it seems they would keep power even in a fully functioning democracy with no censorship since they are so good.
Then maybe the censorship is actually integral to their success as it reduces the time wasted on going in directions different from the government's one and possibly boosts morale and happiness?
comment 6y ago · link · parent
Given the complexity, poor language/framework choice (should have used either Rust or Tensorflow), bad code design, and unclear determination of the parameters (especially the fact they don't seem to be estimated from real data with Bayesian inference, or if they are they didn't release that), as well as the ludicrous CPU and RAM usage making it impossible for most people to run it and thus check it, it doesn't seem like it has any chance of actually being a good model.
If this is the state of the art for the most important statistical modelling project in the world, we are in the dark ages.
comment 6y ago · link · parent
The main technique to do so is "parallel construction": e.g. you reverse engineer a binary or look at source code, find out a special case not implemented in Wine, then construct a test case that tests the special case and behaves differently in Windows and Wine and claim that you found the test case experimentally, from a personal project that didn't work in Wine or from open source code you find that triggers it (rather than from RE or source code reading); you then implement a patch in the way you find most optimal without influence from how the code you reversed or read did it.
This is in fact good for Wine since it results in both having high quality contributions and having no additional liability.
So Wine's policy effect is not to stop such activity, but to make the Wine project not liable for it; thus, any leaks of Microsoft's source code are in fact good for the project since they enable this activity and the Nintendo situation here is similar.
comment 6y ago · link · parent
Also looking at source code and documentation does not mean that the code you write is derived work (although it makes it very slightly more risky that it is).
comment 6y ago · link · parent
Or in general, why don't databases support each others SQL dialect? It can't be that much work, at least if one is content with only supporting the majority of applications, and seems pretty essential for popularizing a specific database.
Looking at the article, supporting Oracle syntax seems trivial in all cases except for adding full MERGE support.
comment 6y ago · link · parent
The second problem is that at least the Rust code is decoding UTF-8 every iteration of the inner loop instead of decoding once and saving the result, or even better interning the characters and having versions of the inner loop for 32-bit chars and 8-bit and 16-bit interned indexes.
Furthermore the code rereads cache[j] instead of storing the previous value, and doesn't do anything to make sure that bound checks are elided in the inner loop (although perhaps the compiler can optimize that).
The code for computing the min seems to have been written mindlessly rather than putting serious thought towards whether to have branches or not and in what order (depending on an analysis of what the branch directions rates would be).
Implausible benchmark results are almost always an indicator of the incompetence of the person performing the benchmark.
comment 6y ago · link · parent
It's basically the same mechanism that works for physical attraction, i.e. if you had good interactions with people of a certain "type" then you'll be attracted to other people of that "type".
comment 6y ago · link · parent
Restaurants are an horribly inefficient way to eat compared to supermarkets, and they are a really lousy social environment, where you can only interact with people at your table, often in very inauthentic (aka "formal") ways.
Not much will be lost if only a few restaurants survive.
comment 6y ago · link · parent
The catch is that the data must fit in RAM, you can only use 1 core for query processing, there is no support for long-lived transactions and no built-in SQL support.
Obviously in an ideal world something like Redis would be useless since proper databases would cover all use cases, but unfortunately the state of database software is disastrous.
comment 6y ago · link · parent
No, because the list of beacons you received is only stored in your phone, so that would only allow you to determine that you went to a coffee shop often, and no one would be able to get a list of anyone who was close to the coffee shop.
This of course assumes that the app/OS vendor does not include hidden functionality that uploads your received beacons, but in that case they could just activate the GPS and upload the location regardless of the contact tracing system chosen.
The coffee shop would be able to determine how many smartphones are present near its location at any time (although this could be mitigated in principle by having smartphones send many beacons if they are receiving few, so the number is approximately constant), but would not know anything about them, including whether they are the same smartphones that it detected at a different time.
comment 6y ago · link · parent
In properly designed languages, values have either a known concrete type, or the interfaces that they have to support are listed, and the compiler checks them.
Even in JavaScript/TypeScript, if you are using this, you or a library you are using are doing it wrong, since you should know whether a value is a promise or not when writing code.
comment 6y ago · link · parent
He literally presents x86 and ARM assembly dumps where shift right generates one instruction, and divide generates that same instruction plus several others.
Then, he feels the need to run an unnecessary benchmark (most likely screwing it up somehow) and concludes there is no difference!
But how can there possibly be no performance difference, in general, between the CPU running an ALU instruction and running that same instruction plus several other ALU instructions?!?
It's almost unbelievable.
As to how he screwed up the benchmark, my guesses are that either he failed to inline the function (and the CPU is really bad), or failed to prevent the optimizer from optimizing the whole loop, or didn't run enough iterations, or perhaps he ran the benchmark on a different VM than what produced the assembly (or maybe somehow the CPU can extract instruction level parallelism in this microbenchmark, but obviously that doesn't generalize to arbitrary code).
comment 6y ago · link · parent
Is it binary-only software or is the source code available anywhere, and if so where?
Can you install it yourself or do you have to give Google systems or employees root access to your servers or your instances on non-Google cloud?
Does it need to communicate with Google servers to keep working or can it be configured to work without? If you go for a hybrid setup, does it always need your datacenter to be up, or can it be configured so that it doesn't?
In case it needs to always communicate with Google servers, what's the point of using a multi-cloud approach if it will go down whenever Google goes down?
Is there any plan to deliver it in a normal fashion (clear distributables and prices) instead of "contact sales"?
comment 6y ago · link · parent
Obviously you need to rotate the session keys when someone leaves, since they must no longer be able to obtain plaintext.
comment 6y ago · link · parent
It seems to me that if mass produced, they should at lesat cost less than entry-level cars, since they are a similar size/weight and simpler, so less than 15k.
And it also feels like they should cost a similar amount to premium versions of appliances like dishwashers/washing machines/etc., so in the 1-5k range.
comment 6y ago · link · parent
It's extremely unlikely they have patched all existing ways for root to change the kernel, and anyway since the kernel is written in C it almost surely has plenty of memory safety exploits.
Also requiring an hypervisor is much simpler than doing this work and actually has a reasonable chance of achieving the objective of not allowing arbitrary ring 0 code.
At any rate, all this work is mostly pointless because if you let people run arbitrary user space code, then they can do almost anything with the hardware anyway (like erasing all disks, etc.), and if you lock that down then you need to force them to use a particular user space and in that case there is no need to also lock down the kernel since without being able to run arbitrary user space code you can't interact with the kernel anyway.
comment 6y ago · link · parent
comment 6y ago · link · parent
Alternatively, the system could be configured to connect to the "infected keys server" run by the local government(s), as determined by the countries of the cell network the user connected to in the last 30 days.
comment 6y ago · link · parent
All that is shared is a randomly generated key that can only be used by other smartphones to determine if any of the ids that they have collected come from the key.
comment 6y ago · link · parent
This is going to create a gigantic mess as governments with limited software development competence slowly release incompatible and partially broken applications, while Apple and Google could just deploy a single solution via a system update.
Also, it's much easier to make it mandatory if it's a system app (and obviously it needs to be mandatory to be useful).
comment 6y ago · link · parent
This seems mostly useful for laptops with both integrated and discrete GPUs but no extra monitor output and for non-fullscreen 3D on desktops, since for fullscreen 3D on desktop you can just run a second cable to the monitor, which will be faster and allows the guest to drive monitor sync.