Better HN
topnewbestaskshowjobs
Log inSign up

Chronos

114 karma · joined Mar 12, 2009 (17y ago) · 54 submissions

[ my public key: https://keybase.io/chronos; my proof: https://keybase.io/chronos/sigs/0XHqKiDXJL36bVm7_XTAYoxoK89kWEPxz9kBrJlctL4 ]
Submissions

comment 16y ago · link · parent

You occasionally hear "SF" spoken aloud, especially when the city's name is being used as an adjective, but by far more common is "The City".

comment 16y ago · link · parent

If I see a coin come up heads twenty times in a row, I'm going to use the power of induction to predict that the coin is biased towards heads. Induction tells me that, the more something has happened in the past, it's more likely to continue to do so in the future. I trust induction because induction has worked for me before.

Somewhere out there in mind-space is someone who believes in anti-induction: each coin flip of heads convinces him that the coin is biased toward tails. Anti-induction tells him that, the more something has happened in the past, the less likely it is to do so in the future. If asked why he trusts anti-induction, he exclaims: "Because it's never worked before!"

That said, just because these two minds are possible in mind-space, doesn't mean that they're equally likely to form naturally in any given physical universe. In fact, to our intuition, one of the two seems particularly unlikely...

Credit to http://lesswrong.com/lw/t9/no_license_to_be_human/

comment 16y ago · link · parent

Hmm, roughly half of those concern either DNSSEC or DDNS... which, in fact, no one uses.

comment 16y ago · link · parent

http://lesswrong.com/lw/mp/0_and_1_are_not_probabilities/

"Zero" is a probability in the same way that "infinity" is an integer, because there's always a non-zero chance that your beliefs are mistaken.

comment 16y ago · link · parent

How would you propose making IPv6 compatible with IPv4? Recall that every IPv4 application in the history of Berkeley Sockets has 32-bit address buffers hardcoded into the binary.

comment 16y ago · link · parent

I disagree about the concept being broken: CPAN and Gems work on similar principles, except that the download step is reserved for a human running an explicit installer program. Add a filesystem cache and some digital signatures, i.e. an offline mode and some way of declaring "I expect this module to be signed with this trusted RSA key", and I think it would be workable.

comment 16y ago · link · parent

Interestingly, there's one difference between sucrose and a 50:50 glucose/fructose mix: the sucrose will have less sweetness per calorie, because it's only one molecule (a disaccharide) and can thus stimulate only half as many sweet receptors.

Given that the body attempts to measure current calorie intake by calibrating past calorie consumption versus past perceived sweetness, this means that the glucose/fructose mix will prime the body to crave sweets more intensely. This is pretty much the only biologically plausible argument against HFCS.

Compare: the studies showing that diet sodas actually lead to an increased risk of diabetes (doi:10.2337/dc08-1799).

Compare: the various diets encouraging the daily consumption of nearly-flavorless olive oil (example implementation, unsuccessful: http://lesswrong.com/lw/a6/the_mysteries_of_shangrila_dietin...).

comment 16y ago · link · parent

Suppose I have a processor that runs at 1GHz, and furthermore suppose that it has a built-in hash primitive that can hash one salt+password in a single clock cycle. Thus, I can try 1 billion passwords per second. That means I can try every item in an English dictionary in merely 0.1 milliseconds, or a very thorough password cracker's dictionary in 2 milliseconds. If a site has 1000 users, I can try the cracker's dictionary against all of them in only 2 seconds. That's less time than it takes for me to browse through the list of password hashes using the scroll wheel on my mouse. For password hashing primitives, speed DOES matter. A lot.

What's more, if I could do 1 billion MD5s per second, then I could brute force every possible 8 character base-64 password (for one user at a time) in merely 3.25 days. Even if that one user has chosen his or her individual password by pulling it straight from /dev/random. Impractical against a site with 1000 low-value users? Sure, most black hats won't want to spend 5 to 10 years of compute power on that. But that's an utterly practical attack against a single, high-value account. If you're Twitter and someone just stole your salted password hashes, you'd better ring up Ashton Kutcher in the next 24 hours and tell him to change his password right now.

Something truly scary: this level of computer power can be easily achieved today using parallelism. I just now ran a benchmark on my personal Linux machine against 10,000 small files on a ramdisk, each of a size appropriate for salted passwords and each with unique data. According to this benchmark, my Athlon64 running at 800MHz can MD5 100,000 passwords per second using md5sum, complete with the system call overhead of opening and closing ten thousand files. Even so, my machine is only 4 orders of magnitude slower than the monster I described, and one of those orders of magnitude should be written off because my processor is years behind the times (sub-1GHz and single core). Shave off another order of magnitude due to the useless system calls, and one hundred modern $100 commodity processors could do this job today, and you could probably do it for half the price or less if you used DSPs or video card GPUs. This is trivially within the range of a project like Seti@Home or Folding@Home, or a dark-hat version of the same (running on a botnet of stolen CPU cycles).

Addendum: also note, these figures imply that one computer with a modern CPU can dictionary attack a salted password hash file from a 1000-user site in merely 200 seconds, i.e. about the time it takes to microwave a burrito. No need to build a botnet first.

comment 16y ago · link · parent

"1) Taking longer is not an indication of strength of the algorithm. Just like banging your head into a wall, multiple times isn't the best way to pass through it."

You do realize that this is how all modern "cryptographically secure" hash functions work, right? For that matter, so do the symmetric-key block ciphers that hashes are closely related to. All of them simply use S-boxes to obfuscate the numbers, followed by repeated "rounds" of simple bitwise primitives (bitshift, and, xor, perhaps addition modulo a power of 2). There's no inherent mathematical reason why combinations of these simple functions should be strong, when each function individually is weak.

This is precisely why cryptography is such a tricky field to work in.

comment 16y ago · link · parent

Having even a 4KB salt doesn't help: if the hash is too fast, the attacker has time to dictionary attack each user individually, without precomputing any rainbow tables. Hardware assists (e.g. GPU-based parllel processing) can cut the time down to O(minutes) [edit: or O(seconds), see below] per user.

comment 16y ago · link · parent

Debt is a leading indicator of a temporary and artificial increase in spending and prices: people don't take out loans just because they want to sit on a pile of money, they take out loans because they want to buy goods and services. And when more money is chasing after the same goods and services, prices goes up (microecon 101).

If investors are making bad forecasts by assuming that such temporary upward trends in price will be sustained for a long time, or even permanent, then the result is a bubble economy.

A bubble exists because it is a self-fulfilling prophesy: when investors increase debt ("leverage") in order to invest in whatever good is currently rising in price (i.e. has already been bid up via debt-funded spending), those investors further increase the price and thus attract even more investors. This continues until a sufficient number of investors are cashing out in order to pay back the debt (whether due to the timeline of the loan or due to the lender calling them on their leverage position).

Investors who don't use leverage (i.e. use only their own money) are far less capable of creating large price moves: a leveraged investor can generate a trade volume two or three orders of magnitude larger than an unleveraged investor. Bubbles are much harder to sustain purely with unleveraged investments: to become a bubble, a price rise has to be sharp enough to attract attention, bringing in more investors to form the next layer of the pyramid.

comment 16y ago · link · parent

Note that pure Einsteinian General Relativity does not conserve energy -- even without a cosmological constant. Sometimes people fake it using tortuous analogies that only hold if their spacetimes are nearly flat, but it fails to hold in the presence of curvature.

The first link on Google for the relevant keywords is http://www.phys.ncku.edu.tw/mirrors/physicsfaq/Relativity/GR..., which lays it out nicely.

comment 16y ago · link · parent

The article is pretty ridiculous. Why would a company like Google run their Perforce servers under Windows?

comment 16y ago · link · parent

FWIW, the black hole hologram thing is best understood in the context of an idea that has been around for quite a while: the "Anti de Sitter / Conformal Field Theory correspondence". Basically, the world we think we live in feels like a CFT-world with 3+1 dimensions: local particles producing local forces as they travel through local space. But the correspondence shows that some CFT-worlds are each mathematically paired with one equivalent AdS-world. The corresponding AdS-world for us would be a 2+1 surface (something that looks a lot like a black hole) with a specific set of rules describing the interactions of the ripples on the surface. In some sense, one could imagine the CFT-world as a holographic projection from the flat AdS-world "film".

IIRC, AdS/CFT actually turned out to have a practical application a year or two back... something to do with superconductor physics I believe. So, in a sense, it's as "real" as anything mathematical is real. Whether or not it's relevant to our interpretation of reality is an open question.

Oh, except for two other tidbits that came from a completely different direction in physics.

First, The entropy of a black hole is predicted to scale with the surface area of the event horizon. General Relativity predicts that, once a black hole has formed, the volume of the event horizon grows with the square root of the mass that falls into it (because gravity falls off with 1/r^2), instead of the usual cube root of mass expected for physical object volumes.

Second, physicists have good reasons to believe that black holes are maximum entropy objects -- at minimum that's true in the thermodynamic sense of "entropy", because energy that falls into black holes cannot be used to perform work. (But information entropy is almost certainly equivalent to thermodynamic entropy anyway, so you can safely extend that conclusion to maximum information entropy if you like.)

(Side note: technically you can extract work from a black hole... if it's spinning. The "ergosphere" of a spinning black hole extends past the event horizon. As you extract work from the ergosphere, you siphon angular momentum from the black hole and shrink the ergosphere.)

Now, combine these two tidbits about black holes, and one concludes that the maximum entropy for a region of space should grow with the surface area of the region, rather than the volume. Doubling the radius multiplies the maximum entropy by 4, rather than the intuitive 8. There might be a flaw somewhere in this reasoning -- it's mooshing together relativistic physics and classical physics in a way that's not implicitly correct. But it presents a striking parallel with the AdS/CFT thing, which lends it some credence, and a lot of very smart people have gone looking for flaws in the idea and come up empty-handed.

If you combine all this together, you reach the possibility that the universe might be (in some sense) a CFT space mathematically equivalent to AdS ripples in the event horizon of a stupendously large black hole. This paper pushes that idea further, and the short summary is that the paper attempts to derive gravity within our CFT universe almost purely as a consequence of the Second Law of Thermodynamics operating on the AdS black hole ripples. However, the author might have just found a nice little piece of circular reasoning where he injected an unwarranted assumption, so it's not a done deal.

comment 16y ago · link · parent

CBC mode and its relatives, one of which is likely the mode you have in your head, is great for an ephemeral stream, but not well suited to permanent storage: it's inappropriate for hard drives because it forbids random access, and it's inappropriate for tape drives because it makes the tape too lossy.

Real disks use either CTR mode or CFB mode, neither of which has those two problems.

CFB mode depends only on the previous cyphertext block to decode the current block, which allows random access but amplifies a one-bit error to a one-block error. CTR mode uses the current logical block number as IV salt, so it's both random access and minimally-corrupting in the case of errors. AFAIK most real-world hard drive encryption uses CTR mode, precisely to avoid the problem that concerns you.

comment 17y ago · link · parent

Trying to avoid saying much, as I work at Google. That said...

Re: 3a: cough AppEngine cough. Anyone foolish enough to run Oracle on Google's datacenter hardware would stab their own eyes out within a month, tops.

comment 17y ago · link · parent

This current crisis felt like we came to the brink of hyperinflation, but managed to scramble through it without quite tipping the balance. Nothing is fundamentally fixed, though, so I expect the next big crisis 5 or 10 years down the road to end with the revaluation of the dollar, Zimbabwe style.

Gold is overhyped right now -- anyone buying gold at the moment is a fool -- and, as a rule of thumb, any commodity that people watch like a hawk (gold, silver, oil) is going to have second-order effects that aren't necessarily correlated with supply/demand and isn't a very safe bet. That said, a lot of other less-watched commodities will be the first in line as newly-printed money trickles out into the economy and fuels an artificial manufacturing boom: copper, zinc, maybe some of the catalyst metals like palladium (too volatile for me), iron/steel to a far lesser extent (again, too volatile for me). If I'd had the money at the time to follow my gut in 2008, I would've made a killing on copper alone -- and if I'd put some into platinum, one year ago, pre-auto-bailout, I'd have made a very comfortable one-year return (on the order of 250%).

comment 17y ago · link · parent

One thing to remember: when fork() was invented, shared-memory threads basically didn't exist. Everything that would be done with threads today, had to be done with either fork() or asynchronous event loops, because no mainstream OS had threading.

Another thing to remember: there's essentially no difference between a fork() and a thread. On Linux, they're both implemented by the same clone() syscall -- they just specify different flags about what should be shared versus what should be split and copied. Both are extremely cheap, and if you're going to implement threading, you might as well implement fork() because [on hardware with virtual memory] it's almost free.

comment 17y ago · link · parent

I have a similar point that I like to make:

Imagine two wireless devices that want to communicate. You can have them transmit omnidirectionally, but now you have two problems: (a) you transmit radio power in all directions, including useless ones, which wastes energy/battery life, and (b) you create interference in that frequency range, limiting the number of such devices you can cram into an area. If your devices can transmit their signals more directionally, at just each other rather than everywhere, you can fix both problems: your devices would require less power and produce less interference, making the world a much more gadget-friendly place.

Well, radio waves being what they are, they have a tendency to spread out as they travel instead of following a straight line. When waves bend around corners, it's called "diffraction", and when waves bend in empty space, it's called "divergence". Even a laser beam doesn't remain perfectly straight forever -- it "decollimates" over a long enough distance. The best way to keep radio waves from spreading out, and thus to obtain the full benefits of directionality, is to use a wave guide.

A wave guide is a device that forces the wave to flow down the center of the guide, usually in a straight line. It works because, as the wave approaches a section of the guide, it produces tiny electrical eddy currents in the sides of the guide, and these eddy currents repel the wave and force it to the center of the guide. As the wave passes by and leaves, the eddy currents are re-absorbed by the wave, ideally leaving the wave with 100% of its original energy content. (In reality, unless the guide is superconducting, the eddy currents will experience resistive losses, thus converting some tiny bit of the wave's energy to wasted heat. But this tiny resistive loss is still much, much tinier than all the wasted wave energy that would've gone flying off in useless directions if the guide hadn't been there.)

If they're so great, why haven't wave guides taken the world by storm? Because their cheap, flexible cousins are already ubiquitous: we call them "wires".

comment 17y ago · link · parent

Actually, it is rather controversial. Normally, when you add heat to a large hydrocarbon molecule, it cracks (breaks down into smaller pieces plus more heat). This is why hydrocarbons can catch fire and burn. Going the other direction -- from large molecules to even larger ones -- requires very specific heat ranges and very delicate conditions involving unusual catalysts. Add too much heat, and it cracks faster than it merges. Add too little heat, and it cracks instead of merging (if anything changes at all).

There are indeed specific conditions under which merging occurs, but in geology they are extremely rare. If abiogenic oil theory were true, it would predict abundant oil in Washington state (close, but not too close, to vulcanism) and zero oil in Texas (where there are no volcanoes). The facts are, of course, otherwise. The amount of naturally-occurring abiogenic oil is quite possibly non-zero, but clearly accounts for at most a tiny fraction of all naturally-occurring oil.

Even if abiogenic oil theory were true, we would still be experiencing peak oil. Assuming it were true, the earth would have been producing all our current global oil reserves over the course of billions of years, and our current rate of extraction would be depleting the reserves faster than abiogenic production could refill them. (Two arguments why abiogenic oil must be slow, even if it's significant: one, the annual rate of carbonate rock subduction is not sufficient to sustain the current annual rate of oil extraction, even with 100% conversion; two, the oil produced would have to go somewhere, e.g. break to the surface and feed an ecosystem of oil-digesting bacteria, if it were being produced at such a rapid rate.)

comment 17y ago · link · parent

Uh, it's a question with a well-known answer. When uranium and other heavy radioactive elements decay, they often do so via alpha decay. What's an alpha particle? Two neutrons, two protons. Eventually the alpha particle slows down and captures some electrons. What is it now? An atom of Helium-4.

If there is radioactive material buried in the earth (there is), and there are geological structures that trap it (there are), then there will be underground deposits of helium (specifically Helium-4).

Other than the fact that the same rocks trapping helium can also trap natural gas, though, there is absolutely no further relation between the two. Why would there be? Helium is also found with deposits of radon gas, where no methane is present. BFD.

comment 17y ago · link · parent

shudder We have a business relationship with a financial company based out of Germany, and their system (which sits on top of replicated Oracle) defines "idempotent" to mean "our database already has a cache of the answer we already gave you". Oh, and they gave us a JAR file of client code that does client-side failover, with a fixed 8-second delay to account for the Oracle replication lag between sites. No coordination between different instances of our client. So now, when one client fails over due to a connectivity blip, the other clients get cached error messages (logically equivalent to 404 Not Found). "Idempotent", indeed.

comment 17y ago · link · parent

I generally agree or fail to disagree with most of your post, but on the particular topic of progressive taxation, it's not fair to simply dismiss it as "10 wolves and a sheep": marginal utility is at play.

With all goods, the more of it you have, the less valuable it is. Individuals allocate goods to satisfy their most critical needs first. Ipso facto, the first unit of the good is worth the most, the second unit less so, and so on until the final unit is worth the least.

And money is simply a good, more fungible but otherwise no different than any other. The greatest utility of money is achieved by providing the necessities of life: food, drinking water, shelter. The next greatest utility is achieved by providing the basic comforts of life: showering water, clean laundry, furniture. After that comes longer-term goals, and so on (roughly mirroring Maslow's hierarchy of needs).

Now imagine two people, A and B, who earn $20,000/year and $80,000/year respectively. It's more unethical to take $200 from A than it is to take $800 from B. Why? While taking money from either one should be minimized (or preferably eliminated), in all likelihood A's $200 was going to meet a more critical need than B's $800.

As an argument ad absurdum, imagine that instead of taking away a flat percentage (1% of annual income for both), a flat absolute amount were taken instead ($500). The total amount taken would be the same, but now it would be evenly divided among both A and B, regardless of income. This would be the most fair arrangement of all, would it not? If a progressive tax is less fair than a flat percentage tax, then surely a flat percentage tax is less fair than a flat absolute tax. The flat percentage tax is still "punishing" B for making more money than A, when instead it "should" treat them equally and not care what their incomes are.

Clearly, though, this line of thinking is absurd, because A will be harmed disproportionately. Whereas taking $200 from A might prevent A from paying the electric bill, taking $500 from A might instead prevent A from paying the rent. The result is that, relative to the flat percentage tax, A has lost the fulfillment of a more critical need, while B has gained the fulfillment of a more minor need.

comment 17y ago · link · parent

Complements (either 1's or 2's) are no longer particularly useful patterns with modern HDD codings, which are wrapped in Reed-Solomon and then heavily encoded before hitting the disk.

I'm more familiar with CD-ROMs than HDDs, so I'll explain the need for encoding in those terms. The Red and Yellow Books specify that a track consists of "pits" and "lands", where pit-staying-pit and land-staying-land both represent "0", while pit-becoming-land and land-becoming-pit both represent "1". Due to limitations of the pressing process (which involves physically squeezing a piece of metal in a press to create the pits), you need a specific minimum number of "0" bits separating each "1" bit (because the metal in question isn't ductile enough). But people want to write arbitrary data to their CDs. This is a problem.

The solution: an encoding (Yellow Book, Annex D, Table D.1) maps 8-bit bytes into 14-bit "bytes". Because they had 16384 outputs for only 256 inputs, it was easy to find a list of outputs that spaced out the "1" bits with sufficient distance. (The other 16128 bit patterns are forbidden.)

Venturing out of familiar territory and back on topic, HDDs have a similar problem: high frequency bit changes are more difficult to write to disk, because the neighboring bit domains bleed into each other. That is, if you choose "north-up" to mean "1" and "north-down" to mean "0", then writing the pattern "10101010" will tend to muddle out the magnetic field, strongly increasing the likelihood that you'll lose the data (especially if it sits for a while before you write to that spot again). The solution is another mapping code: I think hard drives use something more tame (like 8-to-11) and have different requirements, but the principles are the same.

The downside from a data destruction POV: there's no guarantees that manufacturers use the same codes, even within their own product lines, since HDDs are sealed and have integrated controllers. The manufacturers don't even bother to tell you the physical encoding, because there's no need for anyone else to know it. The net result is that there is no longer any "magic code" you can write to a disk to stress sectors, guarantee data destruction, or have any other effect whatsoever upon the physical disk. All that stuff died out back in the days when IDE and SCSI hit the scene, after RLL and MFM drives died out.

12