Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brianberns
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
brianberns
6y ago
Of course there is, but the relevant similarity is that both cases caused a negative impact on their respective employers from actual and/or prospective customers. Employers have every right to dislike that.
32.
▲
by
brianberns
6y ago
I fully support this lady’s “right to say dumb shit on the internet”, but if Gina Carano can be fired by Disney for her tweets, so can she (who actually wasn’t even fired). Freedom of speech isn’t freedom from consequences.
33.
▲
by
brianberns
6y ago
F# is functional-first, but also fully supports OO. It’s a good balance for the 20’s, or any other decade.
34.
▲
by
brianberns
6y ago
> The second is a gross demonstration of "anecdotes are not data." The second one doesn't even support the premise. Video games aren't more "technical" than Facebook.
35.
▲
by
brianberns
6y ago
Classic relevant xkcd: https://xkcd.com/927/
36.
▲
by
brianberns
6y ago
They probably add more entries over time (and maybe update/delete old ones), so you’d have to be careful about keeping the local DB in sync.
37.
▲
by
brianberns
6y ago
But electrons are considered to be point particles, so they would have infinite momentum in this case?
38.
▲
by
brianberns
6y ago
When I was a kid in the 1970’s and early 80’s, my grandparents would drive 100’s of miles along I-95 to visit us from Florida and arrive with the grille and windshield of their car absolutely splattered with bug corpses. You can make that s
39.
▲
by
brianberns
6y ago
OK, but from a functional programming point of view (where structural pattern matching comes from), "case" should bind a value to a name, not mutate the value of an existing variable. That seems nuts to me.
40.
▲
by
brianberns
6y ago
The good reason to get rid of it automatically: It takes up space. Is there any good reason to keep it? (The fact that it was "created by some user" doesn't seem like much of a reason.) IMHO, creating an index should be atomi
41.
▲
by
brianberns
6y ago
> REINDEX INDEX CONCURRENTLY index_name; > If for some reason you had to stop the rebuild in the middle, the new index will not be dropped. Instead, it will be left in an invalid state and consume space. Well, that sure sounds like a
42.
▲
by
brianberns
6y ago
Type checking turns run-time errors into compile-time errors. This results in a huge improvement in code quality.
43.
▲
by
brianberns
6y ago
Yes, but on the other hand, all the Linux source code is publicly available, and it's still considered secure.
44.
▲
by
brianberns
6y ago
Yes, it’s lock-free, but it doesn’t actually work.
45.
▲
by
brianberns
6y ago
> your worst enemy could simply never schedule that thread again That seems too extreme to me. If the scheduler itself is potentially malicious, then no multi-threaded implementation is safe, since we can't assume that any thread we
46.
▲
by
brianberns
6y ago
At least two syllables are easier than three. (And "OK Google" is particularly tongue-twisty due to the repeated "oh" sounds.)
47.
▲
by
brianberns
6y ago
This is a good point. Perhaps they meant to say "if approximately the upper half of p and q's bits are identical"?
48.
▲
by
brianberns
6y ago
> Are void functions not considered functions in functional programming? There's usually a "Void" type that's inhabited by a single value to handle that case. In a void function, all inputs are mapped to that value.
49.
▲
by
brianberns
6y ago
> Statement expressions ... allow you to embed a compound statement within an expression. The value returned by the last expression is the value returned by the entire statement expression. > You might ask "Why would you ever wa
50.
▲
by
brianberns
6y ago
Not to mention that exhaustive testing only works when you already know the correct result for each input.
51.
▲
by
brianberns
6y ago
And it was probably true for most of them. The stakes for humanity keep rising, so "now" is usually the most important time in history.
52.
▲
by
brianberns
6y ago
No, we know that our planet has the right conditions for life. The conditions on Venus are very different.
53.
▲
by
brianberns
6y ago
It does seem like some aspects of QM point to reality being simulation that tries to avoid the expense of unnecessary calculations.
54.
▲
by
brianberns
6y ago
Saved you a click: "During an eclipse, the ground cools," said seismologist Martin van Driel of ETH Zurich. "It deforms unevenly, which tilts the [seismometer]" a small amount.
55.
▲
by
brianberns
6y ago
Those aren't the only two options. You can have public property that isn't anarchy. That's how national parks work in the US.
56.
▲
by
brianberns
6y ago
BTW, the other weird thing about this scenario is that if you look backwards along your trajectory, you will see a movie of your journey playing in reverse! Also, in regard to your edit: this doesn’t really have anything to do with relativi
57.
▲
by
brianberns
6y ago
I don't think this is right. You leave at t=0 and arrive at your destination at t=1 year. It then takes two years for the image of your arrival to travel back to Earth, where it can be perceived at t=3 years. However, when you arrive a
58.
▲
by
brianberns
6y ago
Try using the Apollo app instead. It's a clean, pleasant experience. https://apolloapp.io/
59.
▲
by
brianberns
6y ago
In F# (which is very similar to OCaml), you’d have to explicitly cast the return value to “obj” to get this to compile.
60.
▲
by
brianberns
6y ago
I'm an F# developer, so I'm usually psyched to see F# articles on Hacker News. In this case, though, I can't even tell what this is supposed to be or why I should care.
More ›