1,781 karma · joined Jul 17, 2009 (17y ago) · 402 submissions
Co-founder of Antithesis
Co-founder of FoundationDB
Co-founder of Visual Sciences
comment 9y ago · link · parent
comment 9y ago · link · parent
Because an arbitrary C program will have non-constant branches (so may become exponentially long in your proposed instruction set) and loops (not representable at all in your proposed instruction set)?
If what you are saying is that a language could hypothetically statically verify that the execution of a function was constant time with respect to certain inputs, that sounds like it would work and that the only obstacle is engineering effort. But compiling to such a language doesn't sound very practical to me.
comment 9y ago · link · parent
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality."
-- Einstein (?)comment 9y ago · link · parent
Yes, of course, they will be AIs or uploads or body printers. Even for an advanced civilization, shipping bags of meat to other star systems would be wasteful. That doesn't mean they won't want to use resources, or that there would be no evidence of them if they were already here.
edit: There's certainly scenarios in which the first species to explore a galaxy doesn't literally prevent other species from evolving. But that doesn't mean they wouldn't be obviously detectable. The likely number of starfaring species in the galaxy given our observations is zero.
comment 9y ago · link · parent
In general, when writing programs, we ought to develop at least a very informal argument for why they have the properties we want them to have. To the extent that they are correct, these informal arguments could be formalized. It's possible to imagine that with future technology, formalizing these arguments with the assistance of powerful tooling will actually be easier than reasoning about them informally, in the same way that you often find running and inspecting your lisp program easier than reasoning about it without assistance. As far as I know, neither computability theory or any other theoretical obstacle rules this out; it is just (perhaps far) beyond the state of the art.
Perhaps you have mistaken me for an absolutist advocate of static typing or formal methods, which I guess is reasonable in the context of the thread. I'm not at all: I've experienced plenty of joy and pain (and bugs) in both static and dynamic languages, and have had more experience and success with advanced testing methods than with formal ones. At this moment, I'm writing a testing tool in a dynamic language! I just wanted to clear up a technical misconception, because I have seen fields held back before by widely misunderstood impossibility results.
Happy lisping!
comment 9y ago · link · parent
If you write this program in a statically checked language:
let x : int = 6
let y : int = 3
while true:
if y>x then break
if is_prime(y) and is_prime(x-y) then
x = x + 2
y = 3
else
y = y + 2
endif
x = "foobar"
I can tell you that it will not type check. And for the same reason, if you write the same program in a language that can express termination and claim that it terminates, the program will not type check until you have supplied a proof of (edit: the negation of!) Goldbach's conjecture in a form that the type system understands.comment 9y ago · link · parent
The state of the art is not up to proving every desirable property of every program that we would like to build. But that has nothing much to do with computability. And some extremely impressive things have been done, like the seL4 separation kernel, which has static proofs of, among other things, confidentiality, integrity, and timeliness, and a proof that its binary code is a correct translation of its source.
comment 9y ago · link · parent
I guess we didn't need further evidence that Google cares more about third party marketers than users' privacy.
comment 9y ago · link · parent
The "SSH keys" protocol in the article seems like an example of this. It doesn't make any sense. Why would the server send the client a Bloom filter if the client has already told it what key it wants to check? The server only has to send one bit back to the client! And if the goal is to not trust the server with the client's (public) key, this protocol doesn't accomplish that either.
And if you do for some reason have to transmit the entire database of compromised SSH keys in a way that permits only membership tests, a Bloom filter isn't the most compact way to do it! For example, off the top of my head, you could calculate an (15+N)-bit hash for each element of the list, sort the hashes, and rice code the deltas. That would take very roughly 32768 * (N+2) bits and give about 1 in 2^N false positives. So for N=13 it is about the size of the bloom filter in the article but gives a false positive rate 8 times lower. This data structure isn't random access like a Bloom filter, but that doesn't matter for something you are sending over the network (which is always O(N)).
comment 9y ago · link · parent
But I'm pretty skeptical, to be honest. I've been working on one or another high-performance C or C++ program for most of the past 20 years. I can't ever remember getting a really substantial speed improvement from upgrading the compiler for an important platform, because anything the old compiler did badly that really hurt program performance had already been avoided, either before or after seeing it in profiling results. I'm sure that if you took C code developed on a modern compiler and compiled it with a 90s compiler, it would be slower. But I doubt the software ecosystem would actually be drastically slower if optimizer technology hadn't advanced significantly since 1995, and everything had been developed under that constraint. And I don't think every single advance in optimization since 1995 is dependent on degenerate transformations of undefined behavior.
comment 9y ago · link · parent
The mistakes you can make by misunderstanding biometrics seem like more of a problem for system designers, who hopefully don't get their whole understanding of security from Apple keynotes.
comment 9y ago · link · parent
You probably don't worry very much that your loved ones have been replaced by impostors, and the reason is not that their appearance is secret! It's just that fooling your face, voice and other "biometrics" without making you suspicious would be, depending on the situation, somewhere between technologically impossible and way more expensive than it would be worth.
A secure biometric is one for which spoofing the sensor is as difficult or expensive as compromising the device hardware some other way. I agree with you that touch ID doesn't quite meet this standard, largely because device hardware has gotten much more tamper resistant in recent years! Hopefully face ID will be better. I can easily remember when it seemed absurd that normal consumer devices would ever have a chance of resisting compromise by a sophisticated adversary that had the device in their possession!
comment 9y ago · link · parent
The most important factor of authentication protecting a mobile device is just possession of the device. Fingerprint or face unlock adds what so far in practice seems to be a decent layer of security. Eventually I expect that it will be improved a lot by greater situational awareness on the part of the device: you won't just have to steal the phone and fool the 3d camera, but do both without ever letting the phone see, hear, or otherwise sense anything suspicious. Which is probably getting into mission impossible territory in most situations.
But even without that, in practice I think your corporate secrets would be considerably better defended by something like face id and device identity than by, say, a password and a regular old 2fa token that are both easily and simultaneously and remotely compromised by sending the target an email from yourcompany-itdept.com asking them to log in.
comment 9y ago · link · parent
comment 9y ago · link · parent
This is nonsense. Your source compares the wealth of the richest few people to the net worth of the "poorest" 50% of people. Net worth takes into account debt, and it happens that the half of the population with the lowest net worth has a total amount of debt about equal to its total amount of assets, so its total net worth is almost zero. A little more credit card spending, and an eight year old with a nickel in his pocket will have "more wealth than the poorest half". Needless to say this is not anything like half of the world's wealth. The total wealth of individuals is (according to my quick Google search) something like $250 trillion, and that presumably doesn't take into account wealth held by governments.
It's also silly to use net worth to identify the "poorest". Supposedly Donald Trump had a net worth in 1990 of negative 900 million. Your source's calculation would presumably call him the "poorest" person in the world and his presence would subtract $900 million from the wealth of the "poorest half". Is that sensible?
The richest people are very, very rich compared to most individuals. But no individual has much compared to the wealth of the whole world, and I suspect the share is shrinking. In the 19th century JP Morgan bailed out the US government, rather than the other way around!
A more interesting analysis would be to look at the distribution of total lifetime consumption.
comment 9y ago · link · parent
[1] Dividing their market capitalization, as an estimate of their discounted future cash flows, by their number of users. A better estimate might be smaller, if their user base is expected to grow or they are expected to make lots of money in some other business
comment 9y ago · link · parent
Naively, the energy cost of towing should go as the 2/3 power of the mass of the iceberg, whereas the energy cost of desalination is linear. So bigger is better!
Of course, it's a million times bigger than the biggest iceberg ever towed, so I guess there is some technical risk. But where's your can-do attitude?
comment 9y ago · link · parent
The option to record the keys yourself is also described in the whitepaper:
"If the user decided to accept a cryptographically random security code, instead of specifying their own or using a four-digit value, no escrow record is necessary. Instead, the iCloud Security Code is used to wrap the random key directly. "
As I said, I can't actually find this option in my iOS settings. Maybe you have to disable Keychain first?
comment 9y ago · link · parent
TL;DR: Keychain recovery relies on a cluster of hardware security modules to enforce the recovery policy. After 10 tries to guess your PIN, the HSM will destroy the keys. Apple support gates all but the first few of these tries. The paper also implies that you can use a high entropy recovery secret as an alternative, though I can't figure out how you would enable that.
This seems like a pretty reasonable point in design space to me. Of course, you are relying on Apple's trustworthiness and competence to implement this design. But that is true without recovery, since the client software is also implemented by Apple.
comment 9y ago · link · parent
The "Standard oil strategy" of losing money to drive your competitors out of business doesn't really seem to work. If Uber declares victory and jacks up prices, presumably they will have a dozen new competitors the next week. How long did it take substitutes to pop up when Uber and Lyft left Austin?
What an actually evil Uber does at this stage is climb into bed with the regulators, suggesting all kinds of new regulations to kick the ladder down behind them. Uber doesn't seem to be going down that route so far.
comment 9y ago · link · parent
In the short run, my willingness to pay Uber is roughly "whatever Lyft is charging for the same route."
In the long run, if Uber and Lyft somehow collude to increase prices a lot, I buy another car and use both services much less. My short-run behavior won't tell them where this threshold lies, and once it has happened it is too late for them to get my business back for a few years.
Price discrimination works if you have real market power, or if marginal and average costs are hugely different (see: airlines, software). Uber's business doesn't seem to resemble either situation.
comment 12y ago · link · parent
Amusingly (and embarrassingly), some of our early alpha and beta releases shipped with buggification accidentally enabled! It hurt performance a little, but didn't break the database for anyone that we know of.
comment 13y ago · link · parent
As for how, it's a long story. At bottom we rely on Paxos for consistency across failures, but we only actually do Paxos when there are failures. (We use less costly synchronous techniques for replication in "happy times".)
comment 13y ago · link · parent
Galera looks like an extremely useful tool, and a big improvement on usual (and extremely dangerous) ad hoc failover. Besides the limited isolation level, though, it only really solves failover. Typical large scale database deployments will sacrifice even more ACID properties by sharding (which loses A, C, and I for shard-spanning transactions) and frequently by incoherent caching (which sacrifices isolation for reads that use the cache).
comment 13y ago · link · parent
You are certainly correct that we have not provided a complete overview of the DB market! That is a very ambitious project. We built this page largely to call out the use of "ACID" terminology by vendors that don't actually provide it.
comment 13y ago · link · parent
Actually, I think we are giving too much credit to Oracle! There are (relatively subtle, but real) concurrency anomalies in their so-called "serializable" isolation level.