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

I doubt a lack of "new computers" is the problem, but https://directpay.irs.gov/directpay/payment currently reads:

Direct Pay

This service is temporarily unavailable. We are working to resolve the issue. Please come back later and try again, or you can visit the Make a Payment page for alternative payment methods. We apologize for any inconvenience.

Note that your tax payment is due although IRS Direct Pay may not be available.

comment 8y ago · link · parent

Yeah, this is basically a variation of the POTAXOR strategy [1]. Well, whatever it takes to get it into the hands of sick people! But I think it is a commentary on the system that it will take decades after we had good evidence for ketamine's effectiveness.

[1] http://slatestarcodex.com/2014/06/15/fish-now-by-prescriptio...

comment 8y ago · link · parent

Hoping that governments are going to outlaw surveillance, when they are the biggest practitioners and customers of surveillance, seems... optimistic.

comment 8y ago · link · parent

The best thing to come out of Mars One is the satirical ad campaign by the state of South Dakota. "Why die on Mars when you can live in South Dakota?"

[1] http://money.cnn.com/2015/04/21/news/economy/south-dakota-ma...

comment 8y ago · link · parent

If you view trade as just another production technology, it's pretty easy to see that foreign goods being cheaper is isomorphic to an improvement in technology, and therefore presumably good for overall welfare.

Foreign governments could be harder to predict than "nonsentient variables", but if you think financial markets are better at prediction than governments (which is roughly the premise of the original comment) there's still no reason to think they aren't the best available solution to this difficult problem.

Edit: maybe I missed your actual question. Viewed in this light, a tariff on steel is exactly an attempt to command that there shall be more steel made in Pittsburgh and less in Iowa or wherever. Domestic production is the only thing USG can command, unless they are going to send the Marines.

comment 8y ago · link · parent

The old counterexample to this claim (I got this from David Friedman, but I don't know if it's original to him) is that there are two ways to make cars in the US: build them in Detroit, or grow them in Iowa. The way the second technology works is: you plant wheat seeds, harvest wheat, put the wheat in ships, and sail them into the Pacific, and they return with Toyotas. The fact that there may be Japanese involved in the second process is irrelevant from the perspective of the US economy.

If the exchange price of Toyotas in wheat is "unfairly" good because of government manipulation in Japan, so much the better for the Iowan car farmers. And if the government of Japan intends to reverse its manipulation in the future, there's no reason US markets can't take that into account in their capital allocation decisions, just like they would mines that might run out or climate that affects the wheat crop.

comment 8y ago · link · parent

"John, when people thought the earth was flat, they were wrong. When people thought the earth was spherical, they were wrong. But if you think that thinking the earth is spherical is just as wrong as thinking the earth is flat, then your view is wronger than both of them put together."

comment 8y ago · link · parent

Reactionless? Presumably the reaction mass would be... air.

comment 8y ago · link · parent

Matter and Interactions [1] is a great introductory physics course that (among other innovations) makes extensive use of simple simulations (by students).

Here [2] is an example of a program, complete with 3D graphics.

[1] https://matterandinteractions.org/

[2] http://www.glowscript.org/#/user/GlowScriptDemos/folder/Exam...

comment 8y ago · link · parent

It says something about the engineering maturity of the industry that destructive testing in production environments is among the more sophisticated practices.

comment 8y ago · link · parent

The function in question takes a pointer to a variable sized buffer that only starts with a struct. So your alternative won't work (the declared size of the struct only has room for a single character of filename). And there are certainly instances of this pattern where you really need to choose the size of the buffer at run time.

comment 8y ago · link · parent

This plan is roughly isomorphic to option compensation. It has a serious incentive compatibility problem: the value of the options increases with volatility/risk, so incentivizes unnecessary, and even negative expectation, risk taking. Maybe Musk has a big enough stake in Tesla to mitigate this effect, but it's definitely not a risk free approach for minority shareholders.

comment 8y ago · link · parent

I guess I need to add this to the long list of companies I should start, then? It doesn't seem very hard; I explained how to do it downthread. The cost to the client should be reasonable.

comment 8y ago · link · parent

The client incrementally builds a search index, encrypts it using an appropriate random access encryption primitive, and writes it to the cloud encrypted. At search time it reads as necessary from the encrypted index. (This allows some light traffic analysis; if you can't tolerate that the client can store a copy of the entire index)

comment 8y ago · link · parent

End to end encryption isn't incompatible with full text search.

More to the point, end to end encryption is necessary (but far from sufficient!) to keep communication secure. If you don't need your communication to be secure, that's fine.

The thing about the modern, networked world, is that you don't have to be the CIA to face a sophisticated, global threat model.

comment 8y ago · link · parent

No, hardware bugs could work like you describe, but Spectre/Meltdown does not make the result of executing a program depend on the results of speculative execution. It just makes timings depend on such results. If you can't time things, which a deterministic program can't (access to any real timer makes a program nondeterministic), you can set up spectre attacks but you can't receive the results.

comment 8y ago · link · parent

If the companies that are actually leaking personal data had any liability, perhaps they would want to buy software that came with such a warranty!

I don't think software warranties should be mandated by law - if that were the case, open source software would probably never have come to exist. But I agree with you that software intended to sit in important security boundaries probably mostly should be available with a warranty. Again, imposing strict liability on the company leaking the data will find this equilibrium if it is the right one. You will go to buy "cyber insurance" for the 100 million user profiles you are storing- a $10 billion possible loss for the insurer- and they will read the fine print of your software licenses!

When we are talking about stuff sold to consumers- smartphones that lose your personal information or webcams that are part of botnets- it's a little less clear. The legal system probably isn't up to holding individual webcam owners liable for an attractive nuisance, and then having them turn around and sue the manufacturers, etc. It is more practical to impose liability on the manufacturer of the product by default (unless the consumer use is negligent). But again, any such regime needs to be crafted carefully to not effectively outlaw free software, hobbyist friendly hardware, etc. Be careful what you wish for.

comment 8y ago · link · parent

If you buffer all I/O until the program has finished executing, I don't think this type of timer works. (The message to the user is displayed only after the process you are trying to time completes, and then when the user clicks the button you are executing again)

The program is equivalent to a pure function from (state, events) to (state, actions) and the computing device that evaluates this function can't leak any information to the function without evaluating it incorrectly. It can still leak information in how long it takes to evaluate the function, but there is no direct way to get this information back into the function.

You could ask the user what time it is, or how long something took, but that starts to look suspicious fast!

comment 8y ago · link · parent

... and then you have to make, for example, scheduling of threads based on "fake time".

rr does just this! I think it uses the "instructions retired" performance counter as its "fake time"; that turns out to be deterministic enough for its purposes. Whether it's deterministic enough in a security context, I don't know for sure.

But this approach, though it can run threaded software, will not let untrusted software (which should really mean all software!) use more than one real core or hardware thread.

comment 8y ago · link · parent

The root of all evil is nondeterminism. A program which executes deterministically cannot receive a timing channel! So "all" we have to do to end this entire class of problems is deny all nondeterministic features, including shared memory threading and timers and two way network communication, to all untrusted code.

A practical vision of computing without these things is challenging, though!

comment 8y ago · link · parent

That approach - safe harbors or a negligence standard - leads to compliance box checking, breaches, and shrugging of shoulders. Ultimately it leads to obsolete standards and regulatory capture that actively mandate insecure practices.

Strict liability leads to the market actually solving the problem. It's not just that insurers, who have skin in the game, will do a better job of coming up with standards and auditing them than regulators. It's not just that the cost of insuring excessive amounts of personal information will lead to companies not storing private information unnecessarily. It's also that this cost will create demand for actual secure hardware and software. Zero day vulnerabilities are not inevitable in a world where their costs are actually internalized. We could build secure systems, if we were willing to pay for it.

comment 8y ago · link · parent

Attacks are not asteroids: attackers constantly improve them to bypass improved defenses, and the "improbability" of an attack is no defense. Bypassing KASLR with these attacks is easy and real attackers will do it.

comment 8y ago · link · parent

And I fear there's little reason to think that the "three variants" from project zero's announcement are the full scope of the problem. They were just the variants that the few people in on this found time to develop exploits for. There can now be security bugs in things your program doesn't do; it seems like there is room for nearly unlimited creativity in finding them.

From the spectre paper:

"A minor variant of this could be to instead use an out-of-bounds read to a function pointer to gain control of execution in the mis-speculated path. We did not investigate this variant further."

comment 8y ago · link · parent

Denying access to timers is kind of practical for browser JavaScript, and should and will happen. But it's not practical for native processes, because shared memory multithreading provides as high precision a timer as anyone could ask for: just increment a counter in a loop in a different thread.

In fact, the practical JavaScript attacks use this method (using SharedArrayBuffer) and the browsers are disabling this (new, little used) feature as a mitigation. But I'm afraid hell will freeze over before mainstream operating systems deny userspace access to clocks, threads, and memory mapped files, which is a lower bound on what it would take to make the attack much harder.

comment 8y ago · link · parent

It seems like practical attacks rely on having a reasonably precise timer available. The spectre paper uses SharedArrayBuffer to synthesize a timer, which is a recent and obscure feature:

https://groups.google.com/a/chromium.org/forum/#!topic/blink...

https://groups.google.com/forum/#!topic/mozilla.dev.platform...

Chrome and Firefox's "intent to ship" posts both contain claims to the effect that there probably aren't any really serious timing channel attacks, which... seems to have been disproved. Why isn't SharedArrayBuffer already being disabled as a stopgap? I think users can turn it off in firefox, how about Chrome?

comment 8y ago · link · parent

"Does it need to provide 4x the utility to be worth 4x the price? No."

Exactly! This fallacy of comparing ratios rather than differences in price is extremely common, totally unjustified, and causes people lots of harm from bad spending decisions in both directions. $100 extra is $100 extra whether attached to a small purchase or a big one.

The correct comparison is (as you say) between the benefit/cost of the extra spending and the benefit/cost of other marginal purchases you would consider. Comparing to the benefit/cost of the "base" purchase (the basic smartphone in this case), which may be very high because that purchase is not marginal for you, is just wrong.

comment 8y ago · link · parent

The ideal would be useful work that is a public good - no one can profit from it individually (other than by using it as a PoW), but the world benefits from it in some way.

comment 8y ago · link · parent

I'm no expert, but this is weak sauce. If these are the biggest "loopholes" to be found in a tax bill that doesn't just change rates but makes major conceptual changes like switching to a territorial tax system, and which seems to have gone from nowhere to law in like a month, the Republicans in Congress must be geniuses. I think the 1986 tax reform bill took over a year to hammer out, and still had plenty of "bugs".

It's more likely that this article doesn't even scratch the surface of the weird incentives. (And, for that matter, that many of the proposals in the article wouldn't work)

What I want to know is, are companies like Apple with billions of "cash" overseas scrambling to buy foreign real estate or other illiquid assets before the end of the year to get the lower deemed repatriation rate?

comment 8y ago · link · parent

To add some real world numbers: it seems that federal, state, and local taxes total about 40% of the $18.6 trillion GDP, or $7.4 trillion per year. The broad money supply M2 is about $13.8 trillion. So more than half of all the USD in existence anywhere need to be handed to US governments every year! If the value of the USD were to fall precipitously, this fraction would go up. It seems crazy to think that this doesn't bound the value of the dollar.

comment 8y ago · link · parent

I really think you have this wrong. At the least, you need a better defense of your position.

Assume for the moment that the number of USD in circulation is fixed. (Presumably we agree that if the government prints or retires currency they can change the value of USD, so let's remove that as a factor). For the sake of argument let's say there are 10^13 USD at all times.

Every year America produces some amount of real income. Let's just call that 1 A, measured relative to some fixed basket of goods. And let's say the government collects .2A in taxes.

Now, you are saying that the value of USD is not constrained by this situation. Suppose that almost everyone switches to cryptocurrency and 1USD = 10^-16 A. Then at tax time Americans have to come up with 0.2A=2x10^15 USD which is 200x more than actually exist. So people will need more USD than they have and will have to bid the price up.

Thus, given a fixed money supply and that the government doesn't literally instantly spend every tax dollar, there is a floor on the value of the USD proportional to total tax collection (and thus to the size of the economy being taxed).

1
91011
14