Better HN
topnewbestaskshowjobs
Log inSign up

voidmain

1,781 karma · joined Jul 17, 2009 (17y ago) · 402 submissions

Software engineer, entrepreneur

Co-founder of Antithesis

Co-founder of FoundationDB

Co-founder of Visual Sciences

Submissions

comment 9y ago · link · parent

Supply curves are a real phenomenon, even for us paperclip maximizers. For example: you built the first factory in the most convenient spot, out of the best possible materials. You have to ship materials farther, build more transportation and energy infrastructure, build more protection against environmental hazards, etc to build the billionth factory. And you have run out of the best materials, so you have to use more expensive substitutes.

comment 9y ago · link · parent

Because as explained in the article, elementary things like memory access a[i] are not constant time with respect to i?

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

Beware of taking impossibility proofs too seriously. They should always be interpreted to mean "you cannot achieve this goal in this model," rather than "you cannot achieve this goal."

"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

Once you have sufficiently advanced technology, unless you also have some kind of totalitarianism, it only takes a few groups of people who disagree about the allocation of resources (or, really, anything else) in this star system and want to leave. And then the same thing happens recursively in whatever star systems they go to, and you have exponential growth until it saturates to cubic or whatever.

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

I intended the program to clearly have a type error on the last line, where the string "foobar" is assigned to a variable that has been declared to be of integer type. (In hindsight, I guess it is ambiguous whether the imaginary pseudo-language we are communicating in types variables, as most static languages do, or values, as most dynamic languages do, and in the latter case it would type check. I should have done something that is a type error in either case, like `x = x / "foo"`.) My intent was to show that even though the desirable property 'does not encounter type errors in execution' is reducible to the halting problem in general, and in this particular case, is reducible to a famous conjecture, static type checkers can calmly and soundly verify that programs have this property! They do so by verifying a strictly stronger property, necessarily rejecting some programs that have the desirable property but accepting only programs that have it. A dependently typed language which can express properties like termination does the same thing, rejecting some programs that terminate but accepting only programs that terminate. In particular, they will accept only programs where YOU provide them with (at least an adequate sketch of) a formal proof of the property.

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

I think you have missed my point. I am not saying that humans are able to solve the halting problem! Nor am I saying that static verification is always better than testing. I am saying that you don't need a halting oracle to express and verify arbitrary properties in a static type system, because a static type system can and will reject programs that would not have type errors dynamically.

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

This argument is incorrect. The "halting problem" is the problem of determining if an arbitrary program halts. It is not impossible to prove, and verify mechanically, that a particular program halts.

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

This is particularly annoying, because if they just cached the image immediately upon receiving the e-mail, there would be no privacy impact AND you would get to see the image. (Yes, it might still send your e-mail address to third parties, but someone who has your e-mail address is free to send it to anyone they want without your help; there is no way to stop that.)

I guess we didn't need further evidence that Google cares more about third party marketers than users' privacy.

comment 9y ago · link · parent

Bloom filters are a nice data structure, and you should absolutely have them in your toolbox, but if you go looking for a reason to use one you are likely to wind up making things worse. The following is not valid reasoning: "Bloom filters are efficient. Therefore if I can find a way to use a bloom filter, my solution will be efficient."

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

As others have said, if C were dead by now that would be great.

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

I wouldn't have put it that way, but the claim Apple is making (in baby talk) is that these are good authenticators, not that they are good secrets. I don't think the average person in their audience has a strong reason to understand the difference. If people were used to biometrics and you tried to get them using passwords, then it would be critical to explain the difference (if you tell the wrong person your password, it loses all its security!)

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

They can't be phished because they aren't secrets. Yes, if you think of a biometric as a password it is an awful password. But it isn't; its primary source of security is the difficulty of presentation. You should not rely on the secrecy of your biometrics.

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

Biometrics can't be rotated. But they also can't be phished. People have been using "biometrics" to recognize people they trust since the beginning of time, and are pretty rarely fooled. They have also been using passwords since the beginning of time, and have been being compromised since the next day, when someone walked into the enemy camp by accosting a patrolling guard and demanding the password.

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

VCs don't invest their own money. As an LP actually putting up capital, do you prefer your portfolio companies to be run by founders (expert in their particular business, lots of skin in the game in the form of common stock, idiosyncratic compared to your other portfolio companies' leaders, sometimes a little too conservative for a well diversified investor like you), or VC partners (expert in capital allocation, somewhat misaligned incentives, also involved in managing your other portfolio companies, likely too aggressive for an investor with actual downside like you)? It's not that obvious that the latter is an improvement.

comment 9y ago · link · parent

> the 0.00000001% of people who control now half the world's wealth

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

This approach is "scalable" in the sense of partitionable, but it's still O(N^2)! Needing 9x the servers for 3x the users is not really "scalable" in the colloquial sense.

An often more attractive approach is to partition over the keys of each database index.

comment 9y ago · link · parent

Whereas you are only worth around $250 or less to Facebook! [1].

[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

> even for smaller icebergs

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

So what would it cost to tow it somewhere with a need for fresh water?

comment 9y ago · link · parent

This is my cats' favorite machine learning application so far!

comment 9y ago · link · parent

The "HSM cluster" serves as a redundant "device" which is in Apple's possession rather than yours, but which you must trust to withstand tampering, even by Apple.

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

We don't have to speculate how Apple could possibly handle account recovery without entirely sacrificing security, because it's spelled out in their iOS security whitepaper: https://www.apple.com/business/docs/iOS_Security_Guide.pdf

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

I'm not saying you're wrong. But I literally tried a new breakfast cereal this morning. And it was crap :-)

comment 9y ago · link · parent

Even a hypothetical taxi monopoly faces close substitutes: owning a car for locals, renting a car for travelers. I still don't see that much room for price discrimination.

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

I have trouble seeing how this is supposed to work.

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

At FoundationDB we use this technique extensively (we call it "buggification"), along with deterministic simulation to make the results debuggable.

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

FoundationDB provides real ACID transactions and external consistency, and definitely does NOT rely on clock accuracy for soundness! (Google Spanner, which we are often compared to, does use a trusted clock, but Google went to extreme measures to make it accurate, including installing atomic clocks and GPS hardware.)

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

Isolation levels describe the degree of compliance with the I in ACID. Full compliance is called serializable isolation. Are there valuable uses for lower degrees of isolation? Yes, and a good database should allow applications to selectively reduce isolation. But the inability to support serializable isolation greatly limits the power and composability of a system.

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

I know very little about Galera replication, but its FAQ states that it provides only snapshot isolation.

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

The property you are looking for - that every SQL command can take place in a transaction - is surely a very desirable property for a SQL database to have, but from my perspective a database can provide genuine ACID transactions even if it only supports a subset of read and write operations within them.

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.

1
1011121314