HNHacker News
TopNewBestAskShowJobs

jberryman

1 karma · joined June 5, 2024

submissionscomments
jberryman··on Netflix's async sendfile now in FreeBSD-current
> X axis is time

That's not correct from what I'm reading.

jberryman··on Time’s Almost Reversible Arrow
"created by observation of cyclical systems". Can you elaborate on that? I'm not sure what you mean, but it sounds interesting. It seems to me we believe time "exists" because of causality; things that happen at "this moment" affect things that happen "in the future" but not things that happen "in the past". We've also predicted and measured certain weird things about time, such as how it can go faster or slower.
jberryman··on Which Programming Languages Are Functional?
Where "function" means "like in math", right? Not "arbitrary callable block of code". I think it makes sense to think of "functional" as more or less synonymous with "approaching Haskell", even if you want to include many other languages under the umbrella.
jberryman··on How three teenagers invented an app to police the cops
I think the meta-discussion about how accurate or relevant media portrayal of police brutality is, and how it influences peoples' perceptions is an important one. However I think your comment betrays a lot of privilege (or I should say: the way in which your comment resonates with white upper-middle class americans here betrays privilege). If you're black, regardless of your background, you've likely been sat down by your parent and "given the talk" about how to behave around police; about how not to get killed. There's a real culture of fear (which is grounded in reality, in real deaths and real experiences, in real numbers) which is I think more significant than whether police brutality is more or less prevalent than stroke or getting struck by lightning. It's not something I've ever had to deal with.

My other concern is that you haven't bothered to research statistics on police brutality and harassment, yet you seem to express doubt that the numbers are significant. In your hypothetical "most people can go through their lives and never experience police behaving badly", yet almost no Black American will tell you this.

jberryman··on Much faster incremental apt updates
I agree that naming things well is a great way to document them. However I think that in most of the codebases I've worked on it is quite common for a function/method to do many things some of which are incidental and some necessary, and it would be difficult to include the full set of these in the method's name. (comments also help to make it obvious when a function is, perhaps, too complex and arbitrary).

In addition to good naming, strong static types and functional purity help a great deal (but I won't try to evangelize haskell here :))

> ...hidden (because if someone is reading code that calls myVeryWellDocumentedFunction, they won't see the documentation, especially if the function is just incompletely named)

what is your proposed alternative? Ideally a function would do the only possible sensible thing imaginable, but that is frequently not attainable.

> ...inaccurate (because the only accurate thing is the code)

Well when the code doesn't match the spec in the comments, we've found a bug in the code, or a bug in the spec. Either way we can find someone to blame. This is vastly better than finding a bug and not knowing whether the function or the caller should be fixed.

jberryman··on Much faster incremental apt updates
OT, but that's one reason comments are important. Also in the alternative hypothetical where reading a byte at a time was required: if that's not documented someone might come along and thing that was merely incidental or even buggy behavior and change it. That's why I'm not sympathetic to programmers who think that they write "self-documenting" code or something. If you don't document (even briefly) what your code is supposed to do then bugs become diffuse things that no one is responsible for, and which are difficult to spot. </ramble>
jberryman··on Reflecting on Haskell in 2015
"Avoid success at all costs" is haskell's unofficial motto (coined by SPJ), so this is a little joke.
jberryman··on Reflecting on Haskell in 2015
Are you really talking about ghc extensions? I think it's quite possible you'd feel that if the haskell library state of the art just had advanced in a strictly haskell-98 world.
jberryman··on Reflecting on Haskell in 2015
When you say "security critical" are you thinking specifically of stuff like crypto timing attacks? I think aside from those sorts of concerns haskell is an excellent choice for security-critical code.
jberryman··on Guns are now killing as many people as cars in the U.S
> that does not change the fact that this article's headline is misinforming.

You haven't made any arguments in support of this claim.

> Further, the data is misleading as well. Suicides, homicides, and accidental deaths are three different things.

Yes, what is your point?

> This means that the data tells us nothing about whether tougher laws would help or hurt the state of gun-related death

Rates of gun ownership is tightly-correlated with rates of gun-related deaths, at whatever scale you cut it. This also holds true for gun suicides:

http://www.hsph.harvard.edu/news/magazine/spr08gunprevalence...

jberryman··on Guns are now killing as many people as cars in the U.S
That's literally the third sentence in the article, which also mentions the rise in suicide and fall in gun homicide rates two sentences below that. The title is dry and accurate.

> yet there is zero reason to conflate that with homicides involving a firearm.

The article doesn't conflate anything; it makes a very interesting and important comparison: vehicle deaths (which have been extensively studied for decades, with much federal regulation and other pressure to improve safety) are now on par with gun deaths (which had been banned from federal research for nearly two decades).

> It's amazing that we've improved vehicle safety in the last 60 years

Wouldn't it be nice if fewer people were dying from guns as well?

jberryman··on Scientists may have solved a mystery about sea-level rise
How would that work? For creationism/evolution would it be one column with facts and another with a lot of bunk? What's the point?
jberryman··on What ISIS Really Wants
I understood his point to be implying that Islam inherently and uniquely among religions gives rise to the sort of radicalism we see with Isis. If I'm not misunderstanding, I hope he expands on what he thinks the implications of this worldview are.
jberryman··on What ISIS Really Wants
> that ISIS are following the actions of Mohammed himself

Maybe, or maybe not. Anyway religions have no inherent meaning external from the way in which they're practiced and understood by their practitioners.

What I'd like you to expand on is: what do the distinctions you're making in your argument entail (w/r/t public policy or just personal behavior)?

jberryman··on Loophole-free Bell test ‘Spooky action at a distance’, no cheating
> It's both (all) states at the same time.

So what does that entail? Isn't this philosophy of science?

jberryman··on The World's Most Inspirational Iceberg Is a Fake
Ha I love that story! Very postmodern
jberryman··on The World's Most Inspirational Iceberg Is a Fake
icebergs turn over quite often, as the seawater eats away at the bottom until they become top-heavy. When they do you get that really strange brilliant blue color which comes from dense glacial ice which has had all the air bubbles forced out.
jberryman··on Computer science is now the top major for women at Stanford University
The vast majority of people working in software in the US are men. The statistics, various studies, a mountain of anecdotes by women working in tech, etc. all point to systemic problems of sexism in the industry and society more broadly. There's a growing movement from various corners to try to address fucked up tech industry culture issues in various ways, encourage interest in programming among women, etc. So statistics like these are encouraging.
jberryman··on ‘Beyond disgusting,’ says journalist Matthew Keys of his hacking conviction
Is he a millenial? If so he looks awful. Anyway don't smear my(our?) generation, son.
jberryman··on Functors, Applicatives, and Monads in Pictures (2013)
Have you used jQuery? The way that selectors and method chaining works has a monadic flavor which is very convenient. In the alternate reality where haskell is running in your browser, if you were creating jQuery from scratch you would recognize that the thing you were making was monadic, you would make use of the large number of useful functions that fall out from Monad here: http://hackage.haskell.org/package/base-4.8.1.0/docs/Control..., and you would also recognize that much of what you needed in your jQuery API is already provided by those functions, so no need to re-implement things in an ad hoc way and force your users to learn new useless things. You might even find that what you're trying to create is a mashup, or "stack", of two or three different monadic things that have already been defined. You'd know that because your new jQuery structure obeys a couple simple rules that it is well-behaved and reasonable in the presence of those functions (and others that don't exist yet), and you may even notice some optimizations you can confidently make.
jberryman··on Denying Problems When We Don’t Like the Solutions
> I'd probably be a whole lot less rational...

I think you imagine that you are being very rational, because you've studied some climate science and believe you're intelligent enough to form your own judgement, but you're wrong. It's extremely irrational to dismiss the consensus opinion of climate science researchers based on your own (epistomologically limited, non-professional-climate-scientist) assessment of their research.

> it still looks like your typical doomsday story dressed up as science.

And say the likelihood of this doomsday scenario being correct is 10% by your assessment: do you think a rational risk analysis would conclude that we should do nothing and go about business as usual? Do you also enjoy playing russian roulette when your not skimming climate science articles?

jberryman··on What I Wish I Knew When Learning Haskell
But that has nothing to do with syntax beyond "infix operators are a thing".
jberryman··on Monads Are Not Metaphors (2010)
Haskell per se doesn't really have monads, except in the sense that there's an opaque `IO` type which is only useful for "doing IO" because it is an instance of `Monad` (and `Functor`), and in the sense that there's some very thin syntactic sugar for composing monadic types. So haskell-the-language has type classes (like `Monad` or `Functor` or `Show`), and more importantly strong static typing. The latter means you can create abstractions (like Monad) that are not brittle.

You can check out this module:

http://hackage.haskell.org/package/base-4.8.1.0/docs/Control...

You can see all the varied sorts of things which are "instances of Monad", then scroll beyond and see all these different useful operations which behave sensibly for all those different instances (and from which you can build your own more complex operations which work for any Monad, and which also behave sensibly).

jberryman··on Tarsnap email confirmation bypass
> But the problem with comments is that they'll inevitably get out of sync with the code.

Eek, then by all means take comments seriously and change them when your code changes. I think it's particularly important to comment functions and methods (especially effectful/stateful ones) with what precisely they're expected to do, what invariants hold, etc. (insofar as the type system and function name don't make these clear). Otherwise another programmer has no way (aside from looking at and completely understanding every call site) of knowing what bits of the functionality are incidental vs intended behavior, and are likely to make small modifications for their own purposes which break other things.

Programmers seem very eager to lack of comments and I'm super unsympathetic; this is the one thing that just kills me. Comments hold together a codebase, make it much easier to learn and read, and are a way for programmers to impart all sorts of bits of knowledge about the domain that is valuable "we would do X here but foo() from library Y works in such and such a way so, blah blah blah". And if you don't like to read comments like that I'm sure your editor will fold them for you.

jberryman··on Here’s what Ashley Madison members have told me
Right, but it wasn't clear to me that that was mayaross's point exactly, or if it was her whole point. I'm interested in what women think about the dynamics of dating and courtship, as it's something I think a lot about and sort of struggle with in some ways.
jberryman··on Here’s what Ashley Madison members have told me
> Women don't need sites to help them cheat; all they have to do is go out and they will be hunted down. As a woman I find this a clear sign of the remaining, quite sinister, gender inequality.

Can you expand on what you mean by that? (Specifically by "hunted down" and how what you're talking about relates to inequality)

jberryman··on July 2015 was warmest month ever recorded
> I don't understand why it's ok for liberals to make fun of conservatives using "extreme snow" during winter as an argument against climate change

Because that argument betrays the most infantile misunderstanding of an issue that is extremely important; climate is not the same as weather, and extreme heat and cold and weather events are what climate models predict.

> Many conservatives are right to underline that simply increasing taxes is not the solution. So what's the solution? Innovation in new source of renewable or less polluting energy technologies.

Are you describing cap-and-trade? That's actually a conservative solution from decades ago; this is the "middle ground" and was roundly rejected as some kind of socialist takeover by today's conservatives.

Anyway it's probably too late for all of that anyway. It's certainly too late for your impotent handwaving about "innovation in new source of renewable". What a joke.

jberryman··on State of the Haskell ecosystem
What are your parsing requirements?
jberryman··on Employees at Google, Yahoo, and Amazon lose nothing if they unionize
> Unions historically were organized by people that were individually very replaceable

I'm not sure that's accurate. I think in the US it was mostly skilled industrial workers who were unionized.

jberryman··on Things I would build if I worked at GitHub
I regret every single time I try to use github search, even for the most basic "where is X defined" type queries.
← PreviousPage 3 of 24Next →