Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eMSF
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
151.
▲
by
eMSF
7y ago
>I was initially using wc but that got too slow so I wrote something that was like wc but only did line counting. Any reasonable wc should be fast enough for that purpose; just remember to use the '-l' switch to activate the fa
152.
▲
by
eMSF
7y ago
>A much more balanced article if you ask me. The word you were looking for wasn't balanced, but "pro-vegan". The article you linked is indeed different; where TFA cited many academic papers, your preferred article seems to
153.
▲
by
eMSF
7y ago
Who said anything about memory representations? The language spec (or at least a summary of it) is linked in the article, and it is pretty loose: nearest higher or nearest lower, chosen by the implementation (regardless of which is nearer).
154.
▲
by
eMSF
7y ago
Why would you expect the output to be false? On any typical system around (with 8-byte longs), LONG_MIN has the value of -2^63 which (converted to a IEEE double-precision float) passes the function's checks just fine -- even if the val
155.
▲
by
eMSF
7y ago
>walking to the stop, waiting in the cold, fumbling with wallet and cash, enduring nausea-inducing vibrations, figuring out the right time to call for the right stop, walking again in the cold... Wait: does the weather never get cold aga
156.
▲
by
eMSF
7y ago
The article only listed user and sys time usage, so technically that doesn't matter. That being said, in my experience those timings are not very accurate at this time scale; timing a program which takes just a few tenths to execute ma
157.
▲
by
eMSF
7y ago
>Humans don't eat any of these animal parts People don't eat liver where you're from?
158.
▲
by
eMSF
7y ago
Where exactly have you been? It's definitely illegal to cross the street outside designated pedestrian crossings (where available) where I live - and you will get fined if you're impeding traffic by doing so and are seen by the po
159.
▲
by
eMSF
7y ago
Technically, all cars can take 3 car seats (1 in the front, 2 in the back) if they have the mounts for it.
160.
▲
by
eMSF
7y ago
>none of the ones I’ve read have posted the test sets up I think the earliest(?) entry[1] in this "series" (the one done in Haskell) had their test input shared alongside the source code, and it has been referenced in some othe
161.
▲
by
eMSF
7y ago
It only calls mbrtowc if domulti is set (and MB_CUR_MAX > 1), i.e. only when given the option -m.
162.
▲
by
eMSF
7y ago
GNU wc is actually fairly fast for what it does. That being said, even with all the extra stuff it's doing, I'd assume it to perform roughly as well as your single-threaded version (when you use a non-multibyte locale to keep the
163.
▲
by
eMSF
7y ago
That has got to be the biggest strawman I've ever seen in my whole life!
164.
▲
by
eMSF
7y ago
Even 5% sounds sketchy indeed. However, AVX2 (or Haswell New Instructions) hasn't quite been on every Intel processor this decade, rather only since the 4th generation (late 2013), and only in Core-branded processors.
165.
▲
by
eMSF
7y ago
>Driving 40 miles/hour anywhere with pedestrians/cyclists is incredibly dangerous. If hit at that speed, a pedestrian/cyclist will almost certainly die. The former doesn't follow from the latter. I mean, by leaving yo
166.
▲
by
eMSF
7y ago
>Only a tiny fraction of the population gets to set their own hours. Well, yes. I was thinking more of flextime. From what I've seen, relatively few people come in as early as possible, even though statistically speaking they should
167.
▲
by
eMSF
7y ago
Why don't you go to work an hour earlier? Now, of course not everybody gets to choose their working hours; but chances are, with the loss of productivity in the early and dark winter mornings, those that don't get to choose get
168.
▲
by
eMSF
7y ago
>As if that weren’t enough, they also stole our primary public spaces in cities: the streets. The irony of this feelgood narrative is that cyclists don't want pedestrians on their ways, either.
169.
▲
by
eMSF
7y ago
Which is why you shouldn't be making the decisions.
170.
▲
by
eMSF
7y ago
Almost everything you listed in your opening post is all but completely absent here in cattle production, including soy, corn, hormones, antibiotics, and I could bet cows here don't descend from the same bulls either. So yes, your litt
171.
▲
by
eMSF
7y ago
>buses go faster because no one is waiting in queues to pay at the door Well, you could always not accept payment at the door. But more passengers doesn't equal faster buses; after a point the service will bog down as the buses bunc
172.
▲
by
eMSF
7y ago
>True, but a lot of those marginal benefits (over say electric bikes) exist because our society ended up being designed around everyone having a car. I could say the most important benefit is fundamental: none of your propositions change
173.
▲
by
eMSF
7y ago
As one that has never, ever written a single program in Rust, am I part of a "Rust community"? But I agree, I'm not nice at all, indeed.
174.
▲
by
eMSF
7y ago
On the contrary. I provided the most useful information there is (_T_I_N_Y_), even if I didn't hold your hand, either (although I wasn't really answering anyone's question, but rather commenting on it). But we can't all
175.
▲
by
eMSF
7y ago
This is more than a little silly, and simply shows that the self-proclaimed PHP developer (who is "not surprised that PHP is 'fast'") has little to no idea what is costly in execution time, even in such a tiny example of
176.
▲
by
eMSF
7y ago
>took this chance to rethink his life choices Someone else in this equation didn't get to think their life choices, maybe for no fault of their own, because they're dead. So, how long should you be in for a murder? 30 years? 20
177.
▲
by
eMSF
7y ago
>If your first thought was "It's not stealing for such a small amount" Well, actually... where I live, it would not be stealing for such a small amount, given that you don't know who lost it, and it was found in an ab
178.
▲
by
eMSF
7y ago
The point isn't about putting it closer to the variable name, but consistently to the right of what it applies to. But yes, it is a matter of opinion.
179.
▲
by
eMSF
7y ago
Note that I mentioned the ordinary memcpy (with a single c) there briefly. memccpy should under no circumstances be faster than strcpy for "string multiplying", as it holds no advantages over it in that use.
180.
▲
by
eMSF
7y ago
>Would you please elaborate on it, and its relevance? Are you referring to N being too high? No, the stack size is implementation-defined anyway. Instead, you have a classic off-by-one error because you didn't reserve any space for
More ›