Better HN
topnewbestaskshowjobs
Log inSign up

codex

3,238 karma · joined Nov 2, 2010 (16y ago) · 1,195 submissions

Submissions

comment 14y ago · link · parent

Before we checked luggage for bombs, bombers took down entire aircraft by checking in explosive laden bags. Before we checked passenger shoes, a bomber attempted to detonate theirs. If we relax our security, how do we ensure these things don't happen again?

comment 14y ago · link · parent

I don't understand why Tesla's losses keep increasing; now they're losing $33M a month, up from $20M a month a year ago and roughtly the same as last quarter. That with $50M in revenue this quarter and actual shipping product. Can someone explain? Are they still purchasing capital equipment? Are their overheads that high?

That said, $30M a month is not that many cars. If they can sell them, and losses don't increase as a function of sales, which seems to be the case now, they will eventually be in good shape.

EDIT: TL;DR: This quarter they lost the same amount as last quarter but sold 25 million more in cars. That means for every additional dollar in car they sold over last quarter, they lost that dollar. Not exactly scalable but hopefully temporary.

comment 14y ago · link · parent

This looks very promising. Can anyone compare and contrast with supercapacitors, flywheels, and/or simply pumping water uphill and running it through a generator when needed?

comment 14y ago · link · parent

Ignoring the fact that this post contains refer.ly links and is really just SEO bait produced by the refer.ly CEO, I find that carbs and caffeine do not make me more productive at work. I used to think they did, but in reality they only borrowed productivity from the future which must be paid back, with interest, making them a net loss.

comment 14y ago · link · parent

If traditional political journalists assume that the race is too close to call because both campaigns tell them so, then they are gullible chumps, plain and simple.

The losing campaign will try to claim the race is close because they don't want their supporters to be discouraged and not turn out.

The winning campaign will try to claim the race is close because they don't want their supporters to get lazy and not turn out.

comment 14y ago · link · parent

I think one can spend an infinite amount of money on one'e health--from research into diseases you are likely to get, all the way to immortality. Splurging on these kinds of buildings is only satisfying a paranoid, irrational urge, IMHO.

comment 14y ago · link · parent

Interesting use of resources that would have been better spent on one's health.

comment 14y ago · link · parent

It's quite like like a combination L2ARC + ZIL. However, the L2ARC isn't persistent across reboots (otherwise block writes would need to be journalled, adding complexity) so you don't get the speed benefits until the machine's uptime gets large. Not the greatest thing for laptops. Also, I believe the L2ARC is populated from in-memory pages, while it appears the Fusion Drive can be populated by a daemon process.

comment 14y ago · link · parent

Linux has several similar implementations, as does ZFS with the L2ARC.

comment 14y ago · link · parent

I use MicroMemory 1GB battery backed PCIe cards for my ZILs. They work quite well.

comment 14y ago · link · parent

I don't believe these will be the first 64-bit ARMv8 CPU cores. Doesn't that honor go to Applied Micro's X-Gene SOCs? They'll ship a lot sooner than 2014.

comment 14y ago · link · parent

I would use Evernote more if there were a private sync option, or even a local LAN sync option (which would be usable from my iPhone via VPN). I don't trust my personal data in Evernote's cloud, or any cloud.

comment 14y ago · link · parent

Apple CEO Tim Cook also cashed out all of his vested shares around the same time. Does that indicate a lack of faith in the company? No. When you have a ton of shares and the stock is at an all-time high, and you have even more shares vesting, it makes sense to sell. In fact, executives have very little say over when they can sell--as the ultimate insiders, they usually arrange to sell their stock months, if not years, in advance, by filing a plan under SEC Rule 10b5-1. These plans typically say "sell x shares whenever the stock goes above y". In this way, shares can be eventually sold, but not at the executive's discretion.

comment 14y ago · link · parent

I think in the worst case it can be uniform: you can have an average delta value of 100 where the values range uniformly from 0 to 200. I think that case is fine, as you can still encode 200 in less than eight bits, but I'm worried that some worst-case number spacing will waste bits in any encoding scheme chosen, and that wastage will be enough to ruin the result. You have to pick an encoding scheme in advance but you don't know the distribution. Say you encode using 8-bit words. When the high bit is not set, the word ranges from 0-127. When the high bit is set, what follows is the full 27 bits. This will fail for certain distributions. For example, say a quarter of the numbers are spaced 257 apart and the rest are spaced 47 apart. You'll go over budget. Perhaps an adaptive scheme can be proven to work in all cases, but I don't know what that scheme is. Or maybe there's a simple scheme which can be proven for all distributions.

comment 14y ago · link · parent

While I believe the author's approach is the correct one, I am very curious to see a proof that an arithmetic encoding will always fall within the 1MB limit. The pigeonhole principle guarantees an average of slightly less than seven bits per number, but it doesn't follow that a particular encoding will always consume nearly the same number of bits--especially for the worst case input. Prefix codes are useful, but not that efficient when the probability density function is uniform and there are a lot of potential numbers to encode. Golomb coding works well on an exponential distribution, not a flat one. Does an adaptive encoding save the day here?

comment 14y ago · link · parent

It's not uncommon for interviewers to ask a few warm up/intro questions and then proceed to more advanced questions--so if you didn't get a few questions right, you may simply have missed some easy ones, so they didn't ask you the hard ones. This would leave you the impression that you "almost" made it, when in fact you may not have come close.

comment 14y ago · link · parent

This is my point; that Amazon is a shitty business because they have chosen a terrible sector: retail. That's what you get when your main competitor is Walmart. Look at the absolute profit numbers: 1/40th the profits of Microsoft; 1/100th the annual profits of Apple; 1/30th the annual profits of Google.

That said, they are desperately trying to get into real tech. businesses.

comment 14y ago · link · parent

There is a limit to how much people are willing to share; this is one of the reasons we still wear clothes.

comment 14y ago · link · parent

I think Amazon's profit per employee is around $6K. Compare to Apple at $600K. Amazon is practically a non-profit. Not surprising, as they play in a shitty, ghetto space--retail.

comment 14y ago · link · parent

What's funny here is that wireless networks already use FEC at the physical layer. This just adds more, less conservative, FEC higher up for apps where it makes more sense to reduce throuhput and increase some average case latency to avoid worse case latency and worse case throughput.

comment 14y ago · link · parent

Completely agree. I would also be surprised if this weren't done at the block level, as ZFS does SSD acceleration, rather than at the file level as the article claims. It's just so much more efficient than caching at the file layer, for not that much more RAM cost (for indexing).

comment 14y ago · link · parent

Really? My wifi RTT to the metropolitan core is 15 ms, and over LTE it is 47 ms. Not a worthwhile tradeoff at 40 ms unconditional additional RTT delay.

I imagine the higher latency was used to offset lower bandwidth due to FEC encoding loss, by amortizing it over more bits.

comment 14y ago · link · parent

Isn't the downside of FEC encoded packets increased latency? Instead of sending each packet immediately, don't you need to accumulate n packets to encode as a group? Or does the math allow incremental encoding? Simple parity is incremental, but the FEC on DSL lines always added 40ms of latency.

comment 14y ago · link · parent

That is one of the more ideal distributions, as each number gets one (zero) bit for delta, and the number at the jump point gets a large but globally inconsequential number of bits. Bits per number is still less than 7.

comment 14y ago · link · parent

All of these bizzaro explanations leave me wondering if I've missed something. Can't this be elegantly solved via the pigeonhole principle?

There are one million numbers to be sorted, out of a space of one hundred million. That means that no number may be more than 100 away from any other number once fully sorted (7 bits). Therefore, you can simply use deltas to encode your numbers, as 7 bit deltas * one million numbers < 1 MB RAM.

EDIT: should've been clearer: no number may be more than 100 away from any other number on average once fully sorted. Therefore, it's an average of 7 bits per number, maximum. Duplicates are even easier, since it's only one bit to encode the duplicate (a delta of zero).

EDIT 2: As for the encoding to be used, I think a universal code or Golomb code would probably be sufficient. They can get quite close to natural entropy.

comment 14y ago · link · parent

This is just noise. Nobody should care about this release; it's just more commodity software with generic features. With some exceptions, kernels are no longer a key piece of the value chain.

comment 14y ago · link · parent

I believe this is correct. I had too few digits of precision in my original calculation; rounding is bad!

comment 14y ago · link · parent

In looking at this a bit further, it seems that the reliability of the Falcon 9 is not looking so good. It has only flown four times and suffered single engine shutdowns on two of them (the other: http://www.spacenews.com/civil/spacex-acknowledges-falcon-en...). See also: http://www.americaspace.org/?p=9044.

Simple probability then gives a failure rate of 3%. I have not attempted the Bayesian analysis.

1
323334
40