HNHacker News
TopNewBestAskShowJobs

brianberns

1,622 karma · joined October 25, 2012

submissionscomments
brianberns··on Four times I felt discriminated against for being a female developer
> 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.

brianberns··on OneAPI – A cross-industry, open, standards-based unified programming model
Classic relevant xkcd: https://xkcd.com/927/
brianberns··on How I cut GTA Online loading times by 70%
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.
brianberns··on Decades-Long Quest Reveals Details of the Proton’s Inner Antimatter
But electrons are considered to be point particles, so they would have infinite momentum in this case?
brianberns··on We haven’t seen a quarter of known bee species since the 1990s
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 same drive today without killing a fly.

Side note: We also used to see long caravans of migrating birds flying south in the fall. Thousands of them at least, traveling overhead in a steady stream for 15 minutes or more.

brianberns··on Pattern matching accepted for Python
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.
brianberns··on An unexpected find that freed 20GB of unused index space in PostgreSQL
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 atomic: Either you end up with a valid index, or you end up with nothing.

brianberns··on An unexpected find that freed 20GB of unused index space in PostgreSQL
> 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 bug in PostreSQL to me.

brianberns··on Python's Type Checking Renaissance
Type checking turns run-time errors into compile-time errors. This results in a huge improvement in code quality.
brianberns··on SolarWinds hackers were able to access Microsoft source code
Yes, but on the other hand, all the Linux source code is publicly available, and it's still considered secure.
brianberns··on An Introduction to Lock-Free Programming (2012)
Yes, it’s lock-free, but it doesn’t actually work.
brianberns··on An Introduction to Lock-Free Programming (2012)
> 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 start will ever actually run.

brianberns··on Artist releases album called “Ok Google Play Music” on Spotify
At least two syllables are easier than three. (And "OK Google" is particularly tongue-twisty due to the repeated "oh" sounds.)
brianberns··on Stop using RSA (2019)
This is a good point. Perhaps they meant to say "if approximately the upper half of p and q's bits are identical"?
brianberns··on How to Get Fired Using Switch Statements and Statement Expressions (2016)
> 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.

brianberns··on How to Get Fired Using Switch Statements and Statement Expressions (2016)
> 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 want to do such a thing?"

I just want to mention that expressions are crucial in functional programming, where even an if-statement returns a value. Statements that don't return a value don't make any sense in a pure functional world, because they aren't functions.

So hopefully that answers the "why?" question. (Of course, abusing expressions in switch statements, as in this article, isn't something you can do in FP.)

brianberns··on There are only four billion floats, so test them all (2014)
Not to mention that exhaustive testing only works when you already know the correct result for each input.
brianberns··on Are we living at the 'hinge of history'?
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.
brianberns··on Signs of Life discovered on Venus and atmosphere
No, we know that our planet has the right conditions for life. The conditions on Venus are very different.
brianberns··on Gravity is unlikely to be the cause of quantum collapse, experiment suggests
It does seem like some aspects of QM point to reality being simulation that tries to avoid the expense of unnecessary calculations.
brianberns··on [dead]
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.
brianberns··on Are you an anarchist? The answer may surprise you (2000)
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.
brianberns··on Humanly Traversable Wormholes
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 relativity. Newton would’ve come to the same conclusion.

brianberns··on Humanly Traversable Wormholes
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 at your destination, you can look back at Earth and see an image of yourself 1 year prior to your departure.

brianberns··on Ask HN: Why is Reddit on mobile so obsessed with making me use their app?
Try using the Apollo app instead. It's a clean, pleasant experience.

https://apolloapp.io/

brianberns··on Hindley-Milner Type Inference (2012)
In F# (which is very similar to OCaml), you’d have to explicitly cast the return value to “obj” to get this to compile.
brianberns··on Markdig and Error-Free Programming in F#
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.
brianberns··on Academic acceleration in gifted youth: a 35-year longitudinal study
I'll never know for sure, since I can't run the counterfactual. It's certainly possible that the outcome might have been similar if I hadn't been accelerated.

That said, girls tend to mature faster than boys, and I can assure you that most 18 year old females are not very interested romantically in younger males (in that era and place, at least). A year makes a huge difference in that regard. I suspect the study in question didn't account for this.

brianberns··on Academic acceleration in gifted youth: a 35-year longitudinal study
Here's my data point to the contrary: I entered college a few weeks short of my 17th birthday in the early 1980's. I was about 1.5 years younger than others in my class, on average. I made many good friends, but my relative lack of maturity still had a huge impact on my emotional well-being (especially when it came to dating). I'm now in my 50's and still dealing with the psychological repercussions of my parents' decision to accelerate me.
brianberns··on 2+1=4, by quinoa
It loses a little mass due to water boiling off, but other than that the mass has to stay exactly the same (barring nuclear reactions, which typically don't make for good quinoa).
← PreviousPage 2 of 15Next →