Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pjscott
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
631.
▲
by
pjscott
10y ago
See section 2, "Case for the grant".
632.
▲
by
pjscott
10y ago
Well put. The Open Philanthropy folks take a broadly similar view of the probabilities, both of when strong AI is likely to arrive and of how much positive influence per dollar they can have on how things turn out: http://www.ope
633.
▲
by
pjscott
10y ago
In case anybody is wondering how to roll out server-side support for this with a fallback to GIF: they've added "image/apng" to the Accept header for image requests. It's now "image/webp,image/apng,im
634.
▲
by
pjscott
10y ago
What? According to the article, "44 percent of the 'top-selling smartphones' in the US had activated FM radios". If you want a mainstream smartphone that can listen to FM radio, that is totally a thing you can just buy.
635.
▲
by
pjscott
10y ago
A bit of googling doesn't turn up any mention of that sort of sketchy business. This seems like a pretty standard, innocuous publicity/recruiting event. The world already has enough scandals without inventing fictional ones.
636.
▲
by
pjscott
10y ago
1023, if you're using the natural representation of zero.
637.
▲
by
pjscott
10y ago
If you want to guarantee that this will never happen, RE2 and similar regular expression engines are guaranteed to run in O(n) time, where n is the length of the target string. https://swtch.com/~rsc/regexp/ I
638.
▲
by
pjscott
10y ago
If you use the naive algorithm at the top of the page but iterate over UTF-8 code points rather than bytes -- which is straightforward, BTW -- you will get some cleverness automatically in the compiler's implementation of the switch
639.
▲
by
pjscott
10y ago
It's also possible to chunk the index array: to store the byte-index of every 16th rune, say, and do a bit of cheap iteration afterward. I've had good success with this approach: it's fast, it's light on memory, and it p
640.
▲
by
pjscott
10y ago
I agree that you never said otherwise, and I applaud you for your accuracy in not doing so. :-D The reason I bring it up is that UTF-16 is a very commonly used internal encoding for strings, and regular expression engines for platforms whic
641.
▲
by
pjscott
10y ago
Backtracking in a UTF-8 string is easy: when you need to remember a location, just record its byte offset. You have exactly the same issue in UTF-16, which is also variable-width and therefore not O(1)-indexable by code point. There are loa
642.
▲
by
pjscott
10y ago
Looks like those slides are for an older version. Since then they've bumped up the size of the vector execution units from 64 bits to 1024 bits and quadrupled the number of them, if I'm reading this right. http://www.an
643.
▲
by
pjscott
10y ago
Sure! They have a neural net that they pre-trained for image recognition as a demo. They ran it on the mobile device both times -- no cloud involved -- but the one on the left is running on the CPU, while the one on the right is running on
644.
▲
by
pjscott
10y ago
Everybody at my school took one of those. It was all platitudes all the time. No substance at all. Every once in a while I hear someone call for more people to have to sit in Platitude Class, and I can't figure out why.
645.
▲
by
pjscott
10y ago
Argon2 does the right thing. No silly upper bounds.
646.
▲
by
pjscott
10y ago
Old as in "published in 1876". It's still widely used. https://en.wikipedia.org/wiki/Parliamentary_authority
647.
▲
by
pjscott
10y ago
Intel plans to release their Nervana-based chip, which they're calling "Lake Crest", next year. http://www.forbes.com/sites/moorinsights/2016/11/21/intel-co...
648.
▲
by
pjscott
10y ago
Whoa, that's some practical syntax. Suddenly I'm filled with envy that none of the C-family languages have that.
649.
▲
by
pjscott
10y ago
You should be able to replace the pow(2, x) part with (1 << x), so e.g. getbit() becomes return (bits[n/8] & (1 << (n%8))) >> n%8; The compiler will turn the division and modulo into shifting and masking.
650.
▲
by
pjscott
10y ago
See also bitfields, which make the compiler generate the shifting and masking code for you: https://en.wikipedia.org/wiki/Bit_field
651.
▲
by
pjscott
10y ago
If they'll be launching thousands of satellites, I expect the marginal cost of replacing one launch to be lower than what most satellite makers could manage. And then, reliability has a cost of its own. Have you calculated the optimum?
652.
▲
by
pjscott
10y ago
This conversation badly needs concrete examples. "Workers rights" sounds like a nice thing -- but what, exactly, does it mean? What specific policies are we talking about? For example, you can have an interesting argument about mi
653.
▲
by
pjscott
10y ago
Exactly. Making services to compete with Uber may not be trivial, but it's not capital-H Hard either. After Uber and Lyft left Austin (thanks to a law requiring fingerprinting and background checks for drivers), a bunch of competitor
654.
▲
by
pjscott
10y ago
He says that "it's often a tell that they're bluffing," which is a far cry from the universal condemnation of anything with 'science' in the name that you seem to be assuming. Please make an attempt to understa
655.
▲
by
pjscott
10y ago
To be clear, that's a quote from Donald Trump -- not Peter Thiel.
656.
▲
by
pjscott
10y ago
That's some pretty advanced selective reading. From the same paragraph: "I don’t think any class of people should be disenfranchised."
657.
▲
by
pjscott
10y ago
His Reddit AMA has some interesting comments on that. https://www.reddit.com/r/IAmA/comments/2g4g95/peter_thiel_te... He was asked "Why do you financially support so many anti-gay GOP politicians?&q
658.
▲
by
pjscott
10y ago
The kind who hasn't stated a confident opinion on the matter, but is suspicious about how politicized the discussion is.
659.
▲
by
pjscott
10y ago
He said that women are a tough constituency for libertarianism and capitalism, but that "It would be absurd to suggest that women’s votes will be taken away." How on earth are you getting "women shouldn't be allowed to v
660.
▲
by
pjscott
10y ago
> I would argue a trie is not that good compared to a hash. It can be more memory efficient than a hash table if there are enough shared prefixes, and it supports prefix and range queries. As always, different data structures have differ
More ›