Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klmr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
511.
▲
by
klmr
10y ago
Had this problem with Virgin Atlantic. Booked a ticket, never got it.
512.
▲
by
klmr
11y ago
I haven’t followed recent development of JavaScript all that closely so my knowledge is somewhat outdated. However, the optimisations that make JS performance close to C in some cases are really recent. Some of the tricks are old, such as
513.
▲
by
klmr
11y ago
No, unfortunately that is not the case. Lookup happens at execution of the byte code, because variables cannot be looked up at byte compilation. Consider the following case: x = 1 local({ assign(user_input, 2)
514.
▲
by
klmr
11y ago
As character, for instance (in particular, they can do everything factors can do when used in conjunction with `unique`, and sorted factors can be represented as a conjunction of characters and numerics). Factors work better, but only barel
515.
▲
by
klmr
11y ago
As far as I know byte-compiling won’t actually alleviate the repeated name lookup (or does it?). Unless the R byte compiler is fiendishly clever, every single name lookup in the loop body will still incur what essentially amounts to a `get(
516.
▲
by
klmr
11y ago
Python and similar dynamic languages suffer from the fact that every name access (variable, function, etc) incurs a dynamic lookup of that name in a (nested) dictionary. Statically compiled languages don’t have this. There are fairly rece
517.
▲
by
klmr
12y ago
Yeah, don’t understand the downvotes. It’s an interesting question, and the whole subject of Lamarckism is far from trivially obsolete. Richard Dawkins’ The Blind Watchmaker contains a coherent and convincing argument why Lamarckism is ac
518.
▲
by
klmr
12y ago
Lamarckism isn’t about epigenetics, nor vice-versa. Some people are calling epigenetic inheritance Lamarckism, but many (in my experience, most) colleagues reject this label as inaccurate. For one thing, although epigenetic inheritance on
519.
▲
by
klmr
12y ago
In a way, all mutations in single-celled organisms that are inherited by daughter cells are acquired during the mother’s life-time, so they’d all meet some definition of Lamarckism. CRISPR isn’t that special in this regard. Many evolution
520.
▲
by
klmr
12y ago
> Real life doesn't make for a movie anyone wants to watch Except that this is simply patently untrue in this case. The allegation here is precisely that the film makers were too lazy to fully exploit what real life gave them, and i
521.
▲
by
klmr
12y ago
I agree with this. We’ve had this discussion on HN before (at least once) [1]. And the claim that Turing “bore the [chemical castration] with fortitude” is ludicrous, and the more likely explanation is that he had erected a facade of equani
522.
▲
StackExchange performance information
(stackexchange.com)
8 points
by
klmr
12y ago
|
0 comments
523.
▲
by
klmr
12y ago
To be fair, you can do the same for iTerm (or any application, really) by using other tools. Quicksilver, for instance, allows you to define system-wide hotkeys.
524.
▲
by
klmr
12y ago
I get “∀X[∅∉X⟹∃f:X→⋃X∀A∈X(f(A)∈A)]” – i.e. the Unicode representation (without having configured anything). I’d even argue that this is correct/desired in this particular case, although of course not all formulae can be correctly expre
525.
▲
by
klmr
12y ago
You still need to shift your cognitive , focus. It’s still a distraction, and similarly dangerous [1]. [1]: http://en.wikipedia.org/wiki/Mobile_phones_and_driving_safet...
526.
▲
by
klmr
12y ago
That’s probably not a very reliable proxy for age estimation though (for reasons alluded to by sampo, and simply because telomere length varies across individuals regardless of age). It’s probably much easier and more reliable to measure th
527.
▲
by
klmr
12y ago
Phenomenal work, well done. I was slightly disappointed that the (beautiful) blog post was not authored in R Markdown. ;-) One comment, your analysis only takes into account data up to July of this year. It is entirely plausible that the re
528.
▲
by
klmr
12y ago
The BBC is technically independent [1], not a “state broadcast” – that’s the whole point of being funded via TV license [2]. … Of course, in reality people accuse the BBC of all kinds of biases, amongst them being pro-government (I find mys
529.
▲
by
klmr
12y ago
It would be interesting to use the data to find out what makes a hashtag trending. I imagine that there are a few common themes which will pop up again and again. The question is whether the data used by this bot are usable for such an anal
530.
▲
by
klmr
12y ago
I think the comment is implicit: bad code leads to wrong code. Or rather: with bad code, how can you tell either way? > In this sense, the sins of the scientific programmer might actually be important No, you’re turning facts on their
531.
▲
by
klmr
12y ago
> returning more than 1 object from a function without return pointers in the args Actually that’s solved by returning `std::tuple` and `std::tie` – or using custom classes.
532.
▲
by
klmr
13y ago
Here: var factory = makeCar; The whole point of having first-class functions is that you can assign them. The problem a factory solves is precisely the lack of this assignability (which is why a constructor function is wrapped in a
533.
▲
by
klmr
13y ago
Many/most widely used “quicksort” implementations are actually introsort (in particular, `std::sort` is), and thus O(nlogn) worst case.
534.
▲
by
klmr
13y ago
You might like ogonek[1].It’s currently still not implementing regular expressions and thus strongly limited in its capabilities (and C++11 regex are so badly designed that they cannot be extended meaningfully to handle this case), but it h
535.
▲
by
klmr
13y ago
> This comes up every 6 months or so And it has never occurred to the reddit developers to document the behaviour in the code base? Regardless of whether there’s a bug in the implementation, that is one poorly-written piece of code.
536.
▲
by
klmr
13y ago
I think you seriously underestimate just how many lives antibiotics save. Sure, for your tooth extraction they were completely unnecessary and your doctor is either a bit of an idiot or there were other compelling reasons to suspect that an
537.
▲
by
klmr
13y ago
Except that nobody cares whether Edward Longshanks was slandered, or that his political actions were misrepresented. For Wikileaks and Assange, this has consequences in the real world, and defamation in particular may lead to criminal prose
538.
▲
by
klmr
13y ago
His title is the hook , not the catch. So it can’t be a red herring.
539.
▲
by
klmr
13y ago
School in Germany also doesn’t last the whole day, it usually ends around 2pm, so even if you have several hours’ worth of homework you can realistically do that before dinner – or, if you prefer, spend the afternoon doing other stuff and t
540.
▲
by
klmr
14y ago
> You really think people do it to get their name there? I’m assuming that’s the reason because I see no other reason for that edit. The editor only made one valid change, “is” to “are”. All the other changes are just there to make the
More ›