Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 6y ago · link · parent

Yeah, is there any information on why the Chinese government feels like they need the censorship?

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

Journals need to start rejecting submissions without code, or with code that doesn't pass peer review by people with a modicum of software engineering skill.

comment 6y ago · link · parent

Is this thing actually being used for policy decisions?

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

I mean that almost surely there are people that do so and carefully make sure to not mention that and make sure that their contributions are not derived work and don't have such "hints".

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

That policy obviously just results in Wine contributors not disclosing seeing Microsoft source code, which is a good thing for Wine, but does not imply that having Microsoft source code (or Nintendo's in this case) is useless.

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

How come nobody has implemented an Oracle compatibility mode for PostgreSQL?

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 main problem is that allocating a vector for each evaluation is completely wrong: instead, it needs to be allocated once by making the function a method on a struct containing a Vec; which makes the allocator moot.

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

If someone had good experiences with people the app recommended previously, then the app recommending someone can be enough to make them willing to date them.

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

Good riddance!

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

Are there going to be legal consequences for this?

I would expect this to carry the heaviest penalties possible including massive penalties against China if they fail to enforce them, but I guess nothing is going to happen given the current state of society.

comment 6y ago · link · parent

Maybe it could be a percentage of all taxable income, kind of like giving out equity in the student themselves as a person?

Although of course there is no reason for college in general to be particularly expensive.

comment 6y ago · link · parent

Redis can dump and fsync data to disk WAL every query, and can run multiple commands in a transaction, so it can provide the highest guarantees possible for a database.

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

> What if coffee shops/bus stations/shopping centers broadcast beacons and essentially became fixed known users -- doesn't that defeat this?

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

A function like this should not be something that anyone even thinks of writing or using.

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

Honestly, it's hard to read this article and not question the author's mental state or intelligence.

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

Amazon ships in 1-2 days, while at least from Europe Alibaba/AliExpress seem to be in the 14-60 days timeframe, and I imagine returns would be more hassle.

comment 6y ago · link · parent

You may be able to either:

- Use Nouveau instead of the proprietary driver

- Use a nested X/wayland server, which should then presumably support fractional scaling

- Use non-fractional scaling and adjust font sizes

comment 6y ago · link · parent

How are these actually distributed and what do they actually consist of?

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

What matters is that the server or software provided and anyone not in the group can't obtain plaintext even if they can intercept and modify all traffic on the Internet.

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

Aren't these robots so expensive only because they are sold in low volumes?

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

This is laughably useless.

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

Not sure about that: unanimity means that anyone can hold hostage the whole process and make arbitrary demands in exchange for their vote, so it really only works when everyone can be trusted to act in good faith or when it doesn't matter if the process is indefinitely blocked.

comment 6y ago · link · parent

Yes, but this is solvable by limiting the number of children per person.

comment 6y ago · link · parent

They should only accept infection reports that are signed with a trust chain terminating with an Apple/Google internal CA, and sign keys provided by governments with their root CA.

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

The fact that UBI should not be about giving an amount of money, but rather about giving essentials like housing and food or the equivalent in money, and "doubling" essentials doesn't make as much sense, since you don't have much use for two beds or twice the food.

comment 6y ago · link · parent

But no data is shared with the government, so there isn't any data that gets shared with "other governments".

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

I don't quite understand why Apple and Google are releasing an API instead of a single system application.

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

As far as I can tell you need two GPUs and all this does is efficiently copy the second GPU (assigned to a VM) output to a window on the main GPU (assigned to the host).

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.

comment 6y ago · link · parent

Ultimately you can just compare the total deaths to the averages from previous years, which works regardless of how they are counted (as long as the deaths are recorded at all, which I think is something that can generally be relied upon).
1
262728
51