Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drostie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
211.
▲
by
drostie
10y ago
His criticism of Helmholtz is probably spot-on but I haven't encountered the folks that he has, claiming that Helmholtz is the "agreed-upon authority on this subject." A bunch of the material available in this paper is suffic
212.
▲
by
drostie
10y ago
They just mean "this language looks in general like Python." You're overthinking it. It's like saying that JavaScript looks C-ish or Java-ish. It definitely doesn't look exactly the same; if you see e.g. var r
213.
▲
by
drostie
10y ago
Python 3 at least changes the semantics of map and filter so that they are generators. Lazy sequences are the sort of thing that you don't care about until you need to process a ten-million-line file (or whatever) and suddenly find tha
214.
▲
by
drostie
10y ago
It depends. If it has "no clear copyright owner" because it comes from an entire community and has a ton of copyright holders for little bits of the code here and there, then it means that every copyright holder can sue for breach
215.
▲
by
drostie
10y ago
TL;DR: Netflix changed everything when it switched from mail-order DVDs to streaming-video. Now, people find themselves (a) not watching commercials and (b) watching shows back-to-back. This has been lucrative for the company in terms of ra
216.
▲
by
drostie
10y ago
It's worth pointing out that the Last Week Tonight clips that you see online are generally the second half or so of a longer-running HBO show: you only see the main story, and it generally comes with a spectacular call-to-action at the
217.
▲
by
drostie
10y ago
Responsive design is the design ideal of not having two separate sites -- one for mobile and the other for desktop -- but rather just being able to visit one site and have its CSS dynamically adjust so that it looks good in all screen sizes
218.
▲
by
drostie
10y ago
Note that this is already possible in ES6 with generators and yield, if you write your own trampoline: https://gist.github.com/drostie/66876fc880cb17c2a6763968aef1... Of course, it's nice to get this sort of nativ
219.
▲
by
drostie
10y ago
To expound on this connection: the basic idea is that a Promise has a `.then(fn)` method call which takes this `fn`, which returns a value. If that value is not a Promise, then it is lifted to a new promise; either way that promise is what
220.
▲
In ES6 async code can already be written synchronously with generators and yield
(gist.github.com)
1 points
by
drostie
10y ago
|
0 comments
221.
▲
by
drostie
10y ago
No problem; I'm glad it was helpful.
222.
▲
by
drostie
10y ago
I found out that my usual way of sorting cards as a kid was a variant of quicksort. This is to sort the cards first into black v. red, then the black cards into spades v. clubs, then the spades into high v. low, then finally sort the low on
223.
▲
by
drostie
10y ago
One thing that you guys might be interested in: there has been some limited investigation into tandem cycling as a therapy for Parkinson's, though it's somewhat anecdotal. What research there is suggests that it's about being
224.
▲
by
drostie
10y ago
"This video contains content from NBC Universal, who has blocked it in your country on copyright grounds. Sorry about that." -- in the US.
225.
▲
by
drostie
10y ago
Right. As I said in my comment to the original article: 'Most of this is good security advice. This is not: "certain travelers, at TSA spotters’ discretion, [should] be exempt from screening altogether." In security, that sor
226.
▲
by
drostie
10y ago
If you want to open these sorts of questions you'll quickly run into the fact that there are a bunch of different judicial opinions out there. I recommend the following link: http://legacy.earlham.edu/~peters/writi
227.
▲
by
drostie
10y ago
She systematically exfiltrated a lot of information which exposed several lies that the U.S. government was telling its citizens and the rest of the world. This information can be divided into four groups: Cablegate, Guantanamo Bay, the Ira
228.
▲
by
drostie
10y ago
I agree that it is not necessary in practice, no, and it is of limited theoretical use because a halting algorithm might still take ten years to do so. However, Turing-incomplete sublanguages can be very helpful in practice, for the sam
229.
▲
by
drostie
10y ago
Right, the first thing to always remember when you're doing a hybrid is that you're stating up-front, "I want to have two engines in this machine -- that's a weight and space cost that I want to pay up-front." As me
230.
▲
Open Open Source
(charlotteis.co.uk)
1 points
by
drostie
10y ago
|
0 comments
231.
▲
by
drostie
10y ago
This can be a little dicey when AJAX was used to render the form that you're thinking about submitting; for a browser to Do It Right they may need to cache complicated stuff like (a) the entire DOM and (b) the entire state of the JS in
232.
▲
by
drostie
10y ago
You also have an equivalent on a family of isomorphic types, namely the types forall z. (a -> b -> c -> ... -> z) -> ZipList z This is gotten by taking your `list_a :: [a]` etc. and writing: \f -> f <$>
233.
▲
by
drostie
10y ago
I've done some examples of transposing Java code explaining various design patterns from the GoF book to Haskell, then seeing how it gets simpler when you have a couple of higher-level ideas from Haskell to work with. It could make a f
234.
▲
by
drostie
10y ago
See, that is a significant point in favor of the above. I had figured that the most plausible explanation was that elastic energy was systematically getting stored in the folds, largely because the folds were at right angles to each other
235.
▲
by
drostie
10y ago
Right, log(p/(1-p)) is the logit function; its inverse is the logistic function. Here's another motivation for why logits are practically useful: Bayes' Theorem! You've probably seen Bayes' theorem in the depressing
236.
▲
by
drostie
10y ago
The nice thing about the generator is that (with a nontrivial amount of boilerplate!) you can pretend that the body of the function* is a synchronous zone even though it makes several calls to asynchronous promises. The basic idea is that y
237.
▲
by
drostie
10y ago
You need a wrapper to make it work, but yes, you can do this. The first thing you need is a wrapper to make a Node-style call into a Promise: function node(fn, ...args) { return new Promise((accept, reject) => {
238.
▲
by
drostie
10y ago
I'm not sure whether that last paragraph is spot-on or not. But it's going to require a bit of a story to explain my thinking. First off, I'm not sure you can classify Marx's communism as a "social order"; Marx
239.
▲
by
drostie
10y ago
In other words, in Git, a branch is just a named pointer to a particular revision. In Hg, these are called 'bookmarks' and they work exactly how you're imagining; and there is an immutable sort of bookmark that is called a &#
240.
▲
by
drostie
10y ago
Regarding your first question: Yes, you can also `git checkout -b newbranch`, rather than stashing the changes and then stashing them into a new branch; I just tend to stash my changes whenever I see that there's updates on the parent
More ›