Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
saucetenuto
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
saucetenuto
15y ago
Speaking as someone who doesn't know much about this stuff, your analogy reads more like, "the canal diverted the waterway, so tigers devoured the Pope". It may well be true, but you need to flesh it out more: explain how the new course fl
92.
▲
by
saucetenuto
15y ago
Well, sorta; the Array -> WrappedArray conversion relates them. The intent is to let you use Seq methods on Arrays, and that part works. But you don't also get RichSeq methods, even though you can use them on Seqs. I'm sure that seem
93.
▲
by
saucetenuto
15y ago
When? The author appears to define her own Array type as well: scala> class Array defined class Array scala> class WrappedArray(xs: Array) extends Seq // a Seq adapter for Arrays defined class WrappedArray s
94.
▲
by
saucetenuto
15y ago
> The author tries to add arbitrary operations to Scala's Seq abstraction without changing its source code and wants them to work also on arrays (which are plain old Java arrays) Are we sure that's true? In the first half, with RichSeq
95.
▲
by
saucetenuto
15y ago
I can't speak to your points 2 or 3, but section 103 (which governs ad and payment processors) applies to domestic sites as well. If I've understood correctly, Youtube couldn't be blocked, but could be forbidden to host advertisements - wh
96.
▲
by
saucetenuto
15y ago
Well, two things: "Everyone you speak to" is probably a group of people very similar to you. That's how most peoples' social groups work, and it's hard to notice because your experience of them tends to factor out the similarities and focu
97.
▲
by
saucetenuto
15y ago
It's not like those requirements arose all at once; at first they wanted to get stuff done using tools they already knew. Then, somewhere north of a million LoC they were like "oh right, speed". At that point, it's no surprise that buildi
98.
▲
by
saucetenuto
15y ago
Sure, but why aren't they tracking everyone on foot? It's not because it's illegal, and it's not for lack of desire either - it's simply too expensive. So given the current law, you can express LEO behavior as a function of tracker cost:
99.
▲
by
saucetenuto
15y ago
I'm not terribly worried by GPS surveillance as described in the article. One objection does occur to me, though: Watching suspects the hard way, with patrol cars and binoculars, is really expensive for the police department. They're forc
100.
▲
by
saucetenuto
15y ago
I agree that that strategy's pretty feeble, but IMO it's still better than e.g. a thousand-line function. If nothing else it forces you to break out the parameters explicitly, instead of just having a thousand lines of intermingled state t
101.
▲
by
saucetenuto
15y ago
In Ruby it's the other way around: 1 is truthy and the block will execute. Everything in Ruby is truthy other than the null reference and Boolean false. I can understand forbidding non-Boolean values in Boolean contexts - it's not somethin
102.
▲
by
saucetenuto
15y ago
I've heard the modern version of this called "Moore's Law of Mad Science" - every year, the IQ necessary to destroy the world drops by one point. In practice it's probably exponential rather than linear, but that's not really better.
103.
▲
by
saucetenuto
15y ago
No. I agree with almost everything you wrote, but this sort of disclosure doesn't punish the company, it punishes its _users_, and doesn't give them an easy way to make the causal connection. Unless this story is picked up by the mainstre
104.
▲
by
saucetenuto
15y ago
> Friday's disruption came the same day that BofA said it would begin charging customers $5 per month for purchases billed to their debit card. Does anyone have more details on this? The units don't seem to match in "per month for purc
105.
▲
by
saucetenuto
15y ago
How do you ensure that? Recall that the person who uploads the photo controls how widely it is shared, and that you can be tagged in a photo even if you're not subscribed to Facebook.
106.
▲
by
saucetenuto
15y ago
GCC can statically prove that `s` isn't changed at all in the loop body, just accessed. Thus the analysis goes: `strlen()` is pure, and its argument never changes, so its result never changes, so I can hoist it.
107.
▲
by
saucetenuto
15y ago
rfumani gave one reason: it won't produce the right answer. Here's another: your regex engine will probably fall over dead if you ask it apply a million-word alternation.
108.
▲
by
saucetenuto
15y ago
Don't knock it, in the late 90s every search engine sucked in its own special way. Dogpile was great back then, and IIRC that's how I first encountered Google.
109.
▲
by
saucetenuto
15y ago
Counterpoint: I didn't find out about shift-space until just now.
110.
▲
by
saucetenuto
15y ago
Indeed, the title did not deliver on its promise; all we learned was that it would have been straightforward to hack the election. But in a better world, even that would be outrageous.
111.
▲
by
saucetenuto
15y ago
In every single jurisdiction where the trademark standard is first-to-file, though? It seems like a lot to ask.
112.
▲
by
saucetenuto
15y ago
I got curious about this a while ago, so I polled my nontechnical friends (artists, lawyers, that kind of thing). Out of 18 respondents, 100% of them used gmail as their primary personal email client. The lawyers all used Outlook at work,
113.
▲
by
saucetenuto
15y ago
> Microsoft has leveraged its intellectual property rights in recent weeks, utilising its IP licensing program to extend rights to smartphone vendors. What a remarkable sentence. I think my favorite part is "extend rights", but there's
114.
▲
by
saucetenuto
15y ago
If you're in the habit of addressing the message instead of the messenger, it's not. If your instinctive response to criticism is to try to figure out why the speaker is making it, rather than to try to figure out whether it's accurate, ano
115.
▲
by
saucetenuto
15y ago
You said that PHP's arrays/hashes were awesome, but did not say why. In other words, you did not contribute to the discussion. This may have attracted some of your downvotes; certainly it made it your post unlikely to convince anyone of a
116.
▲
by
saucetenuto
15y ago
I mostly agree, but there's a bit more to it than that. For example, you want to be able to report back to the page that WebGL is disabled, so that whatever content is supposed to be there can degrade semi-gracefully.
117.
▲
by
saucetenuto
15y ago
I'm not the grandparent poster, but I think he's saying that executives skilled enough to run the Red Cross are motivated primarily by their salaries, and so those salaries have to be competitive with what the same highly-skilled exec could
118.
▲
by
saucetenuto
15y ago
In fairness, Adobe would do a lot better if they had the same level of compiler talent behind AS3 that V8 has. There's nothing fundamental about AS3 that makes it any harder to optimize than Javascript, and the optional static types should
119.
▲
by
saucetenuto
15y ago
Here's one that bites every c++ newbie at least once (please forgive minor syntactic mistakes, it's been a while): std::vector<LargeStruct> things = GetABunchOfThings(); // Why does this take so long? // Oh well, time to
120.
▲
by
saucetenuto
16y ago
It's important to be able to delete dead code even if your developers never write any, because earlier compiler optimization passes can create dead code. For example, consider this simple function written in a hypothetical dynamic language
More ›