Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
matchu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
61.
▲
by
matchu
11y ago
Whoops, yeah. Edit button is gone now, boooo.
62.
▲
by
matchu
11y ago
Mm, I thought that might be what's up, but had no clue how J actually works xD Thanks! Even without the mapping wrinkle, though, this is definitely a deviation from the examples the article provides: instead of unsquaring the vector we
63.
▲
by
matchu
11y ago
I think the issue here is that the article is talking about two things: a common resource management idiom, and the cool fact that `under(f, g) = f^1 * g * f` implements it. `with` implements this idiom just fine, too, but `under` is a mor
64.
▲
by
matchu
11y ago
Does there exist a solution that doesn't rely on undefined repeat behavior? I finally gave in and looked at the answers, but it looks like they all use `repeat M N>M`, or `repeat M N>currentOutputSize`. I kinda assumed that the i
65.
▲
by
matchu
11y ago
Hooray! Thanks for pointing it out :)
66.
▲
by
matchu
11y ago
Dunno about this case, but probably because floating point arithmetic is a bitch. Try the following in Chrome's developer console: (0.3 - 0.1 - 0.1 - 0.1) === 0.0 > false 0.3 - 0.1 - 0.1 - 0.1 > -2.7755575615628
67.
▲
by
matchu
11y ago
I think we're talking about documenting the interface that or-tools provides. Even someone with an excellent understanding of the underlying concepts still needs to know exactly how or-tools exposes those concepts.
68.
▲
by
matchu
11y ago
The feature they're describing sounds like a good fit for Google Now. I don't know what "stock" is well enough to know whether Now counts, but Now definitely has tight integration with other Google services already; if R
69.
▲
by
matchu
11y ago
"ascending" is one of the words it checks for. Might've typoed it? :/
70.
▲
by
matchu
11y ago
I'm not sure I agree that trusting subdomains "greatly expands the default trust surface". That's part of the premise of the domain hierarchy: the owner of a domain owns all the subdomains. If you don't trust the po
71.
▲
by
matchu
11y ago
This might be viable if you do it remotely: let them take their time to understand the project, understand the task, find the relevant section of the project, find the relevant section of code, understand the change they need to make, set
72.
▲
by
matchu
11y ago
I like this idea for small firms, but how does this scale to the level that the parent comment is asking about? If we want to interview a few hundred candidates this month, who finds the few hundred open-source project tasks and audits them
73.
▲
by
matchu
11y ago
I don't think that was the question, though. Small firms can afford to do this, but how does this scale to companies with who want to interview a few hundred candidates this month? Where do the hundreds of real-world projects come from
74.
▲
by
matchu
11y ago
Okay, some better phrasing, then: the closure-based approach has been idiomatic for years, but the symbol-based idiom is new. What lessons have folks learned from trying these approaches in other languages? Which is more idiomatic, and why?
75.
▲
by
matchu
11y ago
I like the simple syntax of the underscore convention, and I also appreciate that the article's approach actually enforces the encapsulation. I wonder if there's a convenient way to use this structure and also keep the simpler syn
76.
▲
by
matchu
11y ago
The closure-based solution has been around for a long time; the symbol-based approach is new. My reaction to the article's approach was largely: okay, cool, this seems approximately as good as the closure-based solution; is there any r
77.
▲
by
matchu
11y ago
Haha, good. I downloaded the sample test from OP's link and was reading through it, and my main response was "yeah I'd hardly call this a redesign…"
78.
▲
by
matchu
11y ago
Yes, document.createElement exists and is documented. But check the links at the bottom of the page: the function comes from the DOM and HTML5 specs, not from the Javascript spec.
79.
▲
by
matchu
11y ago
That's just because we need to define the set more gracefully: "n! is the product of the first n natural numbers". The negative factorial issue arises from a slightly awkward specification of the set, not from jameshart'
80.
▲
by
matchu
12y ago
Hmm, I don't know C#; the method wasn't encapsulated in a class, so I assumed it was some kind of global. It could be that this isn't an actual input/output sample, but rather just one method of a compiled class.
81.
▲
by
matchu
12y ago
The C# function is global, so the compiled Javascript function is global. Feels to me like the most correct compilation of the C# code. (Consider: the C# code has no main function, so, if we hid the GetBestMove definition from the rest of t
82.
▲
by
matchu
12y ago
edit: And by "general case of partitioning" I mean exactly the opposite. Whoops.
83.
▲
by
matchu
12y ago
Yeah, so that's the problem we're talking about: the presentation implied that a split network can still accept writes, because one side will have a majority. But what if neither side does? Is the cluster just in read-only mode? B
84.
▲
by
matchu
12y ago
My first thought for solving that problem would be to always have an odd number of nodes, but I'm interested in how Raft actually handles it, too.
85.
▲
by
matchu
12y ago
Node supports parallel processes (granted, not threads), promises are a nice alternative to nested callbacks, and Javascript supports basic functional style. You've named some legitimate challenges of Javascript, all of which have been
86.
▲
by
matchu
12y ago
/_ah/ contains internal App Engine routes, like authentication, for all App Engine apps; not just Google's. http://stackoverflow.com/questions/4408042/what-does-ah-mean...
87.
▲
by
matchu
12y ago
From my viewing, the "feel" is chaos. Why are they all moving different directions? Does it mean anything? Watching the Don't video legitimately hurt my brain; the only way an app can justify that kind of choreography is if d
88.
▲
by
matchu
12y ago
This was always Facebook's library, but it didn't always have a pretty homepage. You might be thinking of mori? https://github.com/swannodette/mori
89.
▲
by
matchu
12y ago
The same can be said for legendary cards, too: I don't have any of the great legendaries like Cairne or Sylvanas or Ragnaros, so we could argue that I shouldn't be matched against those people—but, when I do go up against those
90.
▲
by
matchu
12y ago
So, as a amateur sysadmin of a decently popular side project, what should I do? I've read over the post on the mailing list, and I think I understand the basic attack, but I'm having trouble understanding exactly how an attacker c
More ›