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 8y ago · link · parent

Yes, of course, but those uses are not very important to understanding the current price of gold.

Likewise, I own a $100 billion Zimbabwean dollar bill as a curiosity, but that market doesn't put an important floor on fiat currency prices!

comment 8y ago · link · parent

"So when Japan said they would accept Bitcoin for payment of taxes ... ?"

I'm not able to find any reference to such a move, which I would think would be widely reported in English. So I suspect you may have your facts wrong. I read that Japan no longer collects sales tax on digital currency transactions, but that is not at all the same.

If, hypothetically, a major government accepted all tax payments and equivalents in XBT as well as their own currency, and credibly promised to keep doing so no matter what, they wouldn't so much be backing Bitcoin as "unbacking" their own currency. It would leave their citizens free to stop using fiat currency if they wanted, and if enough were eager to do that the value could go to zero. (In principle, that could be fine. In practice, contracts and other nominal rigidities would probably make the transition period... problematic)

If a major government decided to accept tax payments only in Bitcoin, they would be backing it in the sense intended.

(I'm not necessarily taking a bearish position on Bitcoin. Rather, I'm arguing that fiat currencies are not the right model for understanding its economics)

comment 8y ago · link · parent

@patrick

Every American participating in that economy must pay taxes every year on their income. The taxes must be paid in US dollars, even if the economic activity uses a different currency or barter. Therefore Americans must come up with a quantity of USD proportional to the size of the American economy every year (or "go to prison"), and provided that the total amount of USD in existence is bounded (this part is the job of central banks) this places a floor on the value of USD. This story is necessarily simplified but I think essentially true.

There is an old saying that a language is a dialect with an army and a navy. Likewise, a fiat currency is a currency with a taxing authority.

Gold, on the other hand, is just valuable because it is expensive to produce and has a long history of being valuable. So that model can work.

comment 8y ago · link · parent

It's really an astounding accomplishment to make a browser developed by a non-profit less trustworthy in this respect than the one developed by the world's largest advertising company.

comment 8y ago · link · parent

This is limited to 30% of your income ("AGI"), however.

(I am not your tax advisor. Please don't take tax advice from random internet people.)

comment 8y ago · link · parent

"These days, we associate the Soviet era with bleak images of scarcity and repression:

To continue reading this premium article, subscribe for unlimited access."

comment 9y ago · link · parent

On the contrary, the distribution of incorrect values alone is fairly convincing. A "typical threading bug" does not actually flip a randomly selected bit. And the rate of memory errors in consumer machines in the wild is probably quite high, because machines with hard memory errors are not consistently removed from service. "Random" soft memory errors from alpha particles or whatever aren't the dominant source.

I've seen stranger things than this, including a cluster of servers in which 3 of the 4 machines had frequent bit flips, and when they were all replaced in response, 2 of the 4 new machines also had frequent bit flips. We diagnosed based on this same kind of distributional evidence (in our case, the bit flips occurred in certain address hyperplanes, consistent on each machine, like having bit 5 flip at an address like 0x???6?3B0 every time). The customer was, as you can imagine, pretty skeptical that this was not a software bug at that point. But all of the machines, when booted into memtest86 or whatever it's called, quickly found errors with the predicted physical address pattern! Dropbox doesn't have the luxury of tracking down the customer machines and testing them.

See also "bitsquatting": https://nakedsecurity.sophos.com/2011/08/10/bh-2011-bit-squa...

If it doesn't have ECC memory, it's an approximate computing device.

comment 9y ago · link · parent

Sorry, I just don't agree. Strict liability is where it's at, because the reality is that standard practice in these matters is very risky, so you're never going to be able to pin negligence on anyone even in a civil case. Making companies fully internalize the expected cost of data breaches will actually solve the problem, even if it doesn't make you feel as good. What you propose will most likely be totally ineffective, and even if it does anything it will just be to create some kind of wasteful butt covering behavior totally orthogonal to actually solving the problem.

comment 9y ago · link · parent

Criminal law is a very blunt instrument, and for good reason is usually reserved for deliberate actions, not mistakes. If you want to make willfully concealing a data breach (to avoid liability or just bad publicity) a crime, that would be pretty reasonable.

comment 9y ago · link · parent

I'm not sure I think it would be a bad thing if proprietary software licenses stopped disclaiming all liability, but there's no evidence that creating liability for data breaches (for the entity that collected and stored the data, not whoever wrote the software they used to do it!) is going to change that. Plenty of companies already use software in ways that creates liability for them, and yet as you say shrink wrap software rarely comes with any warranty.

Individual liability seems much less likely to me, in the absence of statues explicitly forcing this liability onto individuals. If you are a consultant, and the market equilibrium actually shifts so that customers are demanding security warranties, your insurance costs would go up, but unless you are less competent than average your equilibrium income should go up to match. The legal incidence, and plausibly the economic incidence, is all on companies that actually handle personal data.

comment 9y ago · link · parent

That won't solve the problem, because there are plenty of good reasons for people to share information with companies that they don't want to share with everyone. In the case of the Equifax breach, people shared personal information with their lenders; do you think they're going to stop doing that if they're informed?

See also my reply to @pishpash below.

comment 9y ago · link · parent

This is a bad idea; it just raises the cost of entry for startups unnecessarily. Liability should be in proportion to harm actually done, and harm actually done is in proportion to how much personal data is compromised.

comment 9y ago · link · parent

> if the company is sued because of a bug you caused, we're suing you

It's totally implausible that companies are going to start regularly suing their engineers personally for writing bugs. They'd recover very little money and make it impossible to hire. Programmers already write bugs that create liability in businesses all over the world every day. Worry about something else.

comment 9y ago · link · parent

I'm not a big fan of contracts of adhesion. I think that to give up important rights by contract should require a correspondingly conspicuous degree of solemnity, not a link at the bottom of a web page to terms of service that state they can be changed at any time by one party.

But the reality is that no matter how much contractual solemnity you require to let other people trade in your personal information, most people will do it in order to get credit. If to get a home loan you had to copy down a contract giving the bank the right to do credit monitoring in longhand with a fountain pen and sign it sixteen times in your own blood, my guess is that people would still be doing it, because credit monitoring really does make loans cheaper. So as a practical matter, I don't think the Equifaxes of the world would go away if the problem you point to was solved. Whereas there's no reason they shouldn't at least internalize the cost of losing your information through incompetence.

comment 9y ago · link · parent

You have the key points: Some significant (edit: strict, not negligence-based) liability for data breaches is the key. And regulation of security practices is the worst idea ever; it will ossify current architectural mistakes at best and turn into a complete regulatory capture nightmare at worst.

Ideally the liability would actually go to compensate victims (for example, via class action). But even if the government keeps it it might be better than nothing.

A potential improvement would be to require companies to carry insurance (or be able to solvently self-insure) for the maximum possible liability if all the personal data they store was disclosed. That way a company like Equifax has to price the full risk of the data they store even if it is larger than their whole market cap. And the insurance industry might learn to do some due diligence, and be a source of "regulation" with much better incentives to be optimal than a government regulator has.

comment 9y ago · link · parent

A useful way of looking at this, orthogonal to the issue of forced savings, is that you need a roof over your head, so you are born short housing. Buying a modest home covers this short and so is typically a risk mitigating thing to do. Owning more house than you really need puts you long housing. Remaining short housing and investing in the stock market may have a positive expected return, but puts you at risk of being priced out of your local housing market if that happens to outperform stocks for a while.

comment 9y ago · link · parent

Something in this article has to be wrong. A bankruptcy shouldn't result in closing profitable stores, just in a change of ownership from the holders of shares to the holders of debt.

If a bunch of stores are closing AND a bunch of retail chains are bankrupt, the causal structure seems more likely to be unprofitable->closing and unprofitable->bankrupt, rather than bankrupt->closing which makes no sense.

comment 9y ago · link · parent

So if that risk is so scary, build an e-mail service that protects someone's access to their inbox by contractual or technical means, and try to convince them to switch.

Any power that you take away from (comparatively weak, subject to competition) Google by giving it to (already terrifyingly powerful and monopolistic) USG is not a move in the right direction.

comment 9y ago · link · parent

I wonder if better use of multiple cores by a single webpage (what they are calling "fine grained parallelism") is actually a good idea. It seems like web developers can and probably will eat up any improvement in performance by building slower sites. So in the long run equilibrium, your computer's performance and energy consumption suffer, while the web remains just barely fast enough to tolerate.

comment 9y ago · link · parent

> Why shouldn't we hold corporations to the same standards as governments?

Because one of these organizations can throw you into a cage to be raped and tortured for the rest of your life, and the other can deny you access to some fairly useful web apps.

comment 9y ago · link · parent

This article makes a case that the creation of new coins (or blockchains) is inherently 100% wasteful. This is to some extent talking past the actual advocates of proof of stake systems, who claim that PoS can provide security, not new coin distribution, at a lower total cost.

comment 9y ago · link · parent

> Flying is much less energy-efficient than driving on a solid surface

Small aircraft get 10-20 mpg, and the world record is over 60 mpg. Energy efficiency might be a reason why ground transport would continue to exist, but I'm skeptical that it's the fundamental obstacle to "flying cars"

And since there is a lot more space in the air than on the road, the "self driving" problem is probably much easier.

It's true that the failure modes are a lot worse, not just for human error but for mechanical failures. But it's actually somewhat plausible to me that 100 years of unregulated innovation would have given us some kind of personal air transport.

> With strong AI this proposal is particularly dumb

Yes. So of course AI development is pretty much the only thing in the world that isn't regulated at all. Does this increase your confidence in regulation as a social technology?

comment 9y ago · link · parent

I disagree with you, and grandparent, and the article :-)

I've hired plenty of great engineers who didn't have side projects on github. I have never specifically been looking for people that don't have a life outside the field, and unlike GP I have found that there are other ways to evaluate people that can identify great engineers with very few mistakes.

But that doesn't mean I wouldn't see your high quality or impressive open source code as a huge plus. Quantity doesn't matter -- if anything if you're super prolific I might wonder if you have much energy for your day job -- but I'm not going to pass up a chance to see what kind of work you do.

And because quantity doesn't matter, I think that writing a little bit of code "for your resume" (every once in a while, to reflect your continuing development as an engineer) is a pretty reasonable investment even if you don't happen to want to spend your whole life outside work programming. It's not required, but it might get you a really great position some day, even if like the OP you're up front about having a life outside of software engineering.

comment 9y ago · link · parent

Usually high taxi fares don't go to the drivers, they go to the owners of the licenses. I think a NYC medallion used to cost $1.3 million before Uber; I don't think most of the drivers were shelling that out.

comment 9y ago · link · parent

> 5000 ppm

> 15 ppb

> if you're standing at home plate and her test kit is at first base, then the lead paint test kit would be over 5000 miles away

Is there some way you could put this in terms of libraries of congress? Maybe if we laid them end to end?

comment 9y ago · link · parent

Right, my suggestion was that you would not give them a certificate for your domain example.com, you would just give them a certificate for staticresources.example.com, and you would never load anything from that subdomain without subresource integrity checks (or load anything whose contents or mere existence leaked important information, or...)

comment 9y ago · link · parent

Ah, yes, a completely speculative "post-mortem" by someone who knew nothing about the technology, but wanted some free press for his own database out of the news, knowing that the FDB team wouldn't be able to respond.

And I still can't respond to equally uninformed speculation about the FDB transaction, because that was confidential.

But I can say that the article's technical thesis about the design space is wrong. A layered design (and, really, all databases are layered, so we just mean a design where distributed concurrency control is below the layer of the data model) is good for performance, exactly because it makes it practical in engineering terms to use the right data model for the job, often getting asymptotic wins rather than tiny constant factor ones. Row and column stores, hierarchical document or "table family" stores, conventional indexes, compressed bitmaps, spatial indexes, etc can all be reasonably efficiently mapped to K/V pairs and then take advantage of the same fast distributed storage and concurrency control. You can use them for different indexes in the same database or the same table. You can, just to throw out an example, store recently changed rows in a row store while transactionally moving them into a column representation in the background, and combining both seamlessly for reads. And you can have things that aren't a good fit for the relational model, like queues, graphs, and full text search indexes, in the same database and operate on them transactionally. You can still co-locate compute with the data, and you can actually scale indexes because they don't have to be co-located with the data as most databases wind up doing. And let's not forget that you have at least a chance to actually get the hard distributed systems part right, as so few products do, because it is not hopelessly entangled with your data model and execution engine.

To address some specific speculations from the article: you don't have to read metadata every transaction; you can just cache it in memory and just ask the distributed store to make sure it hasn't changed in conflict with the transaction (via a tiny read of a serial number, for example, or a usually-empty range read of a log of metadata changes). A key/value store designed for layering needs to be able to go full speed with real, cross-node, multi-key transactions rather than focus on a single node "fast path" (like, if I recall correctly, VoltDB does). It's also highly recommended to be able to do concurrency control on arbitrary ranges rather than just individual keys, both for performance and serializability reasons. Indexes, as I've already mentioned, are vastly more scalable in this type of design than most others. And you get to decide whether you want to read from them serializably or not. One way you can do push down (which in the modern world of 10GBE networking is way more important for OLAP workloads than OLTP, but let's be perfectionist) is to co-locate SQL and K/V store nodes and to let the higher layer see where data is located in the lower layer so that it can partition queries (at least approximately) to one of its own co-located nodes. You keep all the nice abstractions and the statelessness of the SQL nodes, and you can read data locally (a nice optimization would be to have a super fast shared memory path for doing this in the database driver).

There is some cost for every abstraction. But because human ingenuity is finite, successful abstractions on net greatly increase what we can do. We don't write everything in machine code, or build new custom networking hardware and protocol stacks for every piece of data we need to send, even though there might be some microoptimization opportunities if we did.

The real performance problem that any new SQL database is going to face is that its query planner isn't exactly the same as the one people are trying to switch from. So if the customer's random web app has 1000 queries, and 995 of them are faster on the new database and 5 of them are worse, guess what happens? The 1000 queries by selection bias ran acceptably on the old database, but the 5 worse ones can be arbitrarily worse, because the badness of query planning in such a rich query model isn't really bounded. So the application is now brokenly slow. So there is going to be a long, long game of whack-a-mole, and users' experience of the performance is going to tend to be negative no matter how good or bad it really is. In my view, the ideal database interface for scalable production "OLTP" applications would be as powerful as SQL, but do less magic in the query planner - it would make it more explicit in the query how challenging the execution plan is supposed to be, so that you don't have queries that explode into unscalability. Pushing a little more work onto developers in order to save the skins of the ops people when the cardinality of some table changes.

Sorry, /rant. I don't know anything about the engineering of TiDB or TiKV and can't comment on them. But I really strongly believe that a layered architecture is the right one both for databases and for lots of things that people don't think of as databases but that wind up having to solve all the same concurrency control and fault tolerance problems.

comment 9y ago · link · parent

It's really not my area of expertise, but it seems to me that today you could use subresource integrity to serve everything static from a CDN without having to trust it a lot.

The real problem is the other stuff they do, like defense against DOS attacks.

comment 9y ago · link · parent

Yeah, it's only been 6 months since https://en.wikipedia.org/wiki/Cloudbleed. I guess we have to hope that they got religion after that :-/

It's kind of funny that we have Google pushing to force everything to be HTTPS, and in response everyone adopting a service provider that MITMs them through shared proxies written in a memory unsafe language, and doesn't require a certificate or even HTTPS from the origin site (so that third parties can still do MITM attacks), etc.

It's still an improvement over an `http` scheme site in an absolute sense -- at least it protects customers from their own ISP or unencrypted wifi -- but it also hides the insecurity from the user. Oh, well.

Maybe what we really need is strict liability for data breaches. A few companies getting successfully sued for $100 per user account after a breach would actually start to change the culture around security.

1
1011121314