Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nkurz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
1196 ms
·
5881.
▲
by
nkurz
18y ago
With due respect for a well written article, my first impression is that the suggested approach misses the point. If a single machine will be able to handle the load of the combined queries, then yes, you should replicate instead of shard.
5882.
▲
by
nkurz
18y ago
Why would one assume a random distribution of colors?
5883.
▲
by
nkurz
18y ago
Ethically and scientifically, this seems stunning: a radio receiver is attached to a live beetle, with probes inserted capable of flight instruction. And these are inserted in a pupal phase, so as to not be visible in the adult.
5884.
▲
Cyborg Beetles with Remote Control
(technologyreview.com)
2 points
by
nkurz
18y ago
|
1 comments
5885.
▲
by
nkurz
18y ago
I'm not quite proposing the exact situation that they had, but I am suggesting that adding more layers of physical security might not be the solution. And if indeed this was really a case of insurance fraud rather than a straight theft, pe
5886.
▲
by
nkurz
18y ago
Upvote for raising clear points, but at heart I think I disagree with your premises. Your thesis seems to be that by throwing more resources at the problem the vault could be made more secure. Likely true, but at what cost, both in hassle
5887.
▲
by
nkurz
18y ago
"Another option: use mmap() and rewrite it in place, using ftruncate() if necessary to grow/shrink the file, and msync() to flush the changes." This is a fine option, but for the purpose of this bug I don't think there is any advantage over
5888.
▲
by
nkurz
18y ago
"example #2 seems just fine, assuming rename() is atomic and a power failure would just leave the old contents in the file." Unfortunately, the 'bug' is that this does not happen. Instead, the truncate hits disk before the new data is writ
5889.
▲
by
nkurz
18y ago
From the article: "In other words, option prices suggest that there is a very real chance of, dare I write it, another Great Depression." I thought that option prices were mathematically priced primarily on the volatility of the underlying
5890.
▲
Design Goals: "When in doubt, use brute force"
(landley.net)
3 points
by
nkurz
18y ago
|
0 comments
5891.
▲
by
nkurz
18y ago
I'd be interested in knowing more about why it's unpopular. I'm a fan of mmap() because I like the way it can simplify my code, and so far I've been pleased with the speed as well. But if there are subtle downsides I'd love to be aware of
5892.
▲
by
nkurz
18y ago
Thanks for encouraging me to look at this closer. I was testing with this: http://pastie.org/402890 I was having trouble comparing results, so I combined your two into one, tried to make the cases more parallel, took out the alarm() stuff
5893.
▲
by
nkurz
18y ago
I went back and forth on whether use read() or fread() in my example, and I wasn't sure which to choose. For the purpose of this example, I don't think there is a functional difference between them. In current Linux, I'm pretty sure both o
5894.
▲
by
nkurz
18y ago
> I'm not so sure of your policework on mmap() vs. read() Scott's conclusions agree with my experiences very well: if you design around mmap(), and let the system handle the caching, you can end up with something several times faster t
5895.
▲
by
nkurz
18y ago
I have one of the new packages in front of me (bought by a friend), and I have to say that there is not a single thing that I like about it. It's hard to read (text is sideways), vacuous ("Drink in the spirit of the morning"), and the juic
5896.
▲
by
nkurz
18y ago
Which of the activities would be illegal? The article concludes that while these activities may be unsavory, they probably aren't illegal: "So is it legal for Yelp to do all this? Probably, according to Matt Zimmerman, senior staff attorne
5897.
▲
by
nkurz
18y ago
This looks like a good Hash and BTree implementation. It's done in C99 with bindings for many other languages. English language specifications are here: http://tokyocabinet.sourceforge.net/spex-en.html Benchmarks comparing to (among othe
5898.
▲
Tokyo Cabinet: a modern implementation of DBM
(tokyocabinet.sourceforge.net)
3 points
by
nkurz
18y ago
|
1 comments
5899.
▲
by
nkurz
18y ago
The article is mostly about the Ruby bindings, but Tokyo Cabinet is written in C99 and has bindings for most of the usual suspects. English language specifications are here: http://tokyocabinet.sourceforge.net/spex-en.html