517 karma · joined Jul 9, 2010 (16y ago) · 177 submissions
Opinions expressed are my own, and do not reflect my employer.
comment 10y ago · link · parent
It works like this. A typical sizing is 4 slots in a bucket, with 2 bucket choices. So your first choice, you arrive at a bucket, and it is just a linear array of length 4. You can put your element anywhere! After a while, when you go to insert into your first choice and you find all 4 slots taken, then you can take ANY of those and try to put it in its alternate bucket. If that alternate bucket is full, you evict from that bucket, too! Thanks to the random nature of your hash functions, it works out very well. 2 bucket 4 slot gets you near 95% occupancy without many evictions on insert.
When you go to lookup, you check your first bucket, and you check all 4 elements until you find it. If you don't find it, you go to your alternate bucket and check all 4 elements. But that's it - only two random accesses (the 4 slots will easily fit in a cache line). It's not so bad to check all 4 elements because the cost is really dominated by loading the line to begin with.
I really recommend a read of some of the cuckoo papers, it's cool stuff.
comment 10y ago · link · parent
This is with brotli level 1, by the way. My understanding is that brotli is pretty quick through the first few levels, but the levels that ask for the highest compression are insanely slow (which is a valuable thing to have as an option, for things like game assets or something, which are compressed once and delivered many times!)
comment 10y ago · link · parent
Unfortunately the graphs leave a bit to be desired, especially when you're trying to compare two algorithms. They provide the raw data, but it needs a little munging to make it workable.
For my day job I made the following graph to compare zlib level1 and zstd. This was using the "peltast" platform which is a Xeon based system, because that was most relevant for us.
I'll make one with brotli now.
comment 10y ago · link · parent
Writes smaller than the ssd erase size are more expensive per byte because of write amplification. This is not nearly as big of a factor as for disks, but it does seem to matter even on enterprise flash, if you benchmark properly (truly random and enough data so that it cannot be buffered by clever controllers). And as my sibling comment mentioned, the write amplification wastes flash lifetime, too!
On enterprise flash, I've found that random reads top out at the same bandwidth ad sequential reads, but it takes a LOT of parallelism to get there, so sequential reading, if possible, is still nice (let the controller do the parallelism for you!)
comment 10y ago · link · parent
Note that I'm not saying that they should've used RAII along with existing GC, I'm just trying to distinguish the transaction concept and the RAII concept.
comment 10y ago · link · parent
Other than duplicating the pages (which is certainly a valid approach) how else can you recover from a data stomp?
comment 10y ago · link · parent
Of course that means your mutations have to be "fair" in the sense that your new values should still be valid. Because as you stated, just stomping on blocks and fixing up their checksums seems like a silly test.
comment 10y ago · link · parent
With just that change to your program, and asking for 100k primes:
{'9-1': 8829, '1-1': 4104, '9-7': 5671, '3-9': 8387, '3-7': 7419, '7-1': 6438, '1-3': 7961, '3-3': 3604, '7-9': 8022, '1-7': 8297, '7-3': 6928, '1-9': 4605, '3-1': 5596, '7-7': 3627, '9-3': 6513, '9-9': 3994}
comment 10y ago · link · parent
In any case, I should have been more clear. I'm not necessarily worried about this case. But if you design systems and miss a factor of a square root, you tend to break things that we're all relying on to work.
comment 11y ago · link · parent
College players aren't paid. Most college players never make it to a professional paying level.
https://www.ncaa.org/sites/default/files/Probability-of-goin...
comment 12y ago · link · parent
Check out this discussion of Mega for more info: https://news.ycombinator.com/item?id=5072680
comment 12y ago · link · parent
For me, I would always get pain/numbness in my lower back on the side of my taller leg. Putting a lift in the other shoe and being mindful to keep straight helped to fix it. I had to be mindful (at least at first) because my body was so used to slouching sideways that it would still try to default in one way or another. I think that it's gotten better as the muscles re-learn the necessary patterns to keep straight.
EDIT: BTW, I don't use a standing desk- I prefer to walk around a lot. Before my PT visit, I would get pain within 15 minutes of standing!
comment 13y ago · link · parent
Even if my excuses for him are correct, I think you all have made a valid point that this is not a really productive way to measure :) Nonetheless, the lesson "don't start a company to get rich" is, I think, a good thing to say.
comment 13y ago · link · parent
Rainbow tables are useful if the time it takes to compute is big enough that storing a large list is useful.
The GPU crackers are so fast nowadays that that isn't the case. If you can try 500M per second, that's about 10 GB of SHA1 generated! Imagine storing a day's worth of work in a rainbow table :)
It's better to use a proper password hash, which will be slow, and will likely have per-user salting built in, anyway.
comment 13y ago · link · parent
That's an enormous improvement on all other production cars. Which is why it uses " 8.3 horsepower to maintain [60 mph]— one-third that of a Jetta"
Of course, they don't mention the frontal area, which is just as important and yet never referenced in these discussions.
comment 13y ago · link · parent
Actifio (http://www.actifio.com) is looking for software engineers. Actifio is radically simple copy data management. We've invented some really cool technology to do things no other system can, and we're dead easy to use. This is not your mother's enterprise software!
Actifio has been invested in by top VC firms (one of the very few East Coast companies in Andreessen Horowitz's portfolio) and is growing super fast. Recently, we closed a 50 million dollar round of funding.
We're always looking for smart engineers in every team, but since I'm on the deduplication team, I'll have to pitch you on that :) Briefly, our other teams include Java, C++, and Adobe Air, and work on things like VMware interaction, snapshot management, scheduling, databases, etc.
As for the dedup team: we write in C, and use Python for debugging and support scripts. Dedup seems like an easy problem to solve, because it's so conceptually simple: split the data up into blocks and make sure you only store one of each. But at scale, it becomes a whole different animal. When you've got 128TB of 4KB blocks, you have 32 billion unique blocks of data to manage. Making our dedup ingest, restore, and garbage collect fast is a great challenge, especially with "only" 128 GB of RAM.
If you'd like to chat about a job opportunity (in dedup or otherwise!), I'm at chris.murphy@actifio.com. Since I'm an engineer, I'm not going to type a list of silly requirements. Just send me a resume and whatever else you think I'd like to know.
comment 13y ago · link · parent
The important thing is to remember that there aren't (m)any super geniuses for which this stuff spews out first try. It's just that some people had the benefit of working through their ridiculously terrible code at the age of 8, writing BASIC, or whatever. And while they may have to learn jQuery the same as you did, they have a massive class of "intuitive" knowledge, which is really just experience, to help them through most of it.
comment 13y ago · link · parent
Interestingly, GSam battery monitor (which I just got last week, and is really neat!) shows the number of times each app woke the device. I've been on for 4.5 hours, and Maps is at 441, with the next Android System at 85 and Google Search (which is Now) at 53.
Android System has also shown up more in usage % since I started having Now.
I think there's definitely a significant drain with Now. I've had it enabled since the Verizon release, somewhere around 12/20, but I think I will disable it at the start of next month and keep an eye on how it behaves. I certainly feel that my battery life has gone down since the upgrade.