HNHacker News
TopNewBestAskShowJobs

jberryman

1 karma · joined June 5, 2024

submissionscomments
jberryman··on YouTab: Automatically get chords for music
You're right. The idea is that each note of the scale should fall on a successive line or space on the staff, and the "convention" of having keys be only sharps or flats falls out from that (hm, why? I've never thought about that). So for diatonic chords we spell them with those same notes of the scale as well, of course. Some scales even have double flats or sharps!
jberryman··on Beautiful web type – typefaces from the Google web fonts directory
The last time this came up people pointed out this kind of thing:

    Beautiful W
    <span class="kern">
        eb
    </span>
     Type
It would be nice to just see what they look like without all that hackery, since no one is going to do that ever in real life.
jberryman··on The boy who stole Half Life 2 source code (2011)
> I reject the argument that Valve had it coming since they didn't take the time to secure their network beforehand.

I think the suggestion was that the time taken to secure their networks shouldn't be counted as "damages", just something that needed to be done regardless.

jberryman··on An open letter on feminism in tech
I think your reaction is really interesting and honest. And isn't part of the problem that we can't really solve this problem or come to real understanding by way of open letters and blog posts? Which is not to say that this article or this discussion isn't useful, but I find when you talk in person all the sort of "point-winning" and defensive reactions and misunderstandings get dispensed with extremely quickly.

And that's unfortunate because we're all so plugged in and used to doing great things and solving problems by way of posts, uploads, and comment threads. Just some off-the-cuff thoughts as well.

jberryman··on Osmo
Haven't read the thread here, but the idea of an iPad mediating such simple play between kids makes me depressed, and I can't imagine it's not simply diminishing what the equivalent experience without the screen would have been. Also that's not how the Tangrams puzzle is supposed to work.

I did think the drawing bit was cool though.

jberryman··on FCC approves plan to consider paid priority on Internet
> Why in the earth there is a need for slow/fast lanes and data caps?

Well, supporters of net neutrality say there is not a need, and that this is just ISPs being greedy.

My pet theory on why they've have been able to argue their case effectively: internet traffic (or at least some notion of "website popularity") follows a distribution with a long tail, meaning a small number of sites will always be responsible for a large % of traffic; this makes it easy and attractive for ISPs to target a few players for "protection", because it's easy for them to make the fallacious claim "hey, look Netflix is taking up X% of our bandwidth; that's not fair!" when this doesn't have much to do with Netflix per se, and when that scenario is actually much cheaper (because of caching, etc) to handle than a hypothetical one in which the same traffic is distributed more evenly.

jberryman··on Lock-free Data Structures: Atomicity and Atomic Primitives
Hmm, are you sure that's correct? I believe both the qualities re. "progress" and "bounded waiting" here

http://en.wikipedia.org/wiki/Peterson%27s_algorithm#Progress

are enough to guarantee system-wide progress. Can you elaborate?

Edit: Nevermind. So of course we'd need the critical section and thread-coordination mechanism to be a single atomic operation for this to be a lock-free algorithm. I should RTFA.

jberryman··on Lock-free Data Structures: Atomicity and Atomic Primitives
> It’s quite difficult, if possible at all, to contrive an algorithm of a lock-free container, which uses read/ write only (I don’t know such data structures for a random number of threads).

I don't know either, but Peterson's Algorithm is a mind-melting and elegant way to achieve mutual exclusion for two threads, using reads and writes (and in reality probably some barriers), generalizable to N threads.

  http://en.wikipedia.org/wiki/Peterson%27s_algorithm
jberryman··on Teen Arrested for 30+ Swattings, Bomb Threats
I think police regularly (have to?) pick and choose where to go, more so than firefighters. I know from friends and anecdotally that e.g. reporting a domestic violence situation in a poor neighborhood is certainly not gaurenteed to get the cops out.
jberryman··on What do conductors do?
> They know that at bottom, there is something deeply primitive and instinctual about the ability to make 70 people breathe, move and feel as one.

This is absolutely true. The rest of the article is random observation that explains very little.

jberryman··on Capital Man: Thomas Piketty is economics’ biggest sensation and fiercest critic
I guess this is it

https://mobile.twitter.com/nntaleb/status/456844260328083456

jberryman··on Posical, the Positivist Calendar for Python
Solution: everyone takes the extra month off.
jberryman··on CLaSH: A functional hardware description language
That sounds cool. I don't know anything about HDLs, but can you explain why you might want your functions to be bijective? What does that give you in hardware?
jberryman··on Programming paradigms that change how you think about coding
Haskell's Par monad gives you a nice eDSL that lets you lay out your data dependencies and have things evaluated in parallel

http://hackage.haskell.org/package/monad-par-0.3.4.6/docs/Co...

jberryman··on GHC 7.8.1 released
The binary distributions install alongside your system packages or other bindists quite nicely (they might overwrite the /usr/bin/ghc symlink, but that's it) and you can select which ghc version you want to use when using cabal with the `-w` flag. Each will keep a separate package db, etc. So be bold!
jberryman··on Ask HN: Why Haskell?
When haskell programmers say "functional" they mean "functions, like in math": yes, mathematics has higher-order functions (derivative, etc) but the main thing is a mathematical function doesn't fire missiles or mutate variables (what we call "side-effects"). Writing code that's like math is "declarative"; you describe what things are not what to do.

Others have given lots of good views on the various upsides to using haskell, especially the ways in which the type system can catch bugs for you. But my favorite thing about the type system is it lets you create good abstractions. For example it's possible (and often quite easy) to create a library which cannot be used incorrectly. And because you finally have abstractions which are good (not brittle or leaky) you can build on them to create larger abstractions (by "abstraction" here, think: conceptual unit that is easy to reason about). And that's also one of the challenges with learning haskell: there's more to learn because we can create new abstractions that are worth learning.

I like talking about haskell, but certainly won't presume to tell you you should learn it. But if you want to learn and are put off by what you've seen of it on HN for whatever reason, I can tell you that the community is incredibly generous and full of very kind and smart folks (though some humility and an open mind, as always, will get you far). The community is why I actually have something of a career in software today.

jberryman··on Teen to government: Change your typeface, save millions
Actually there's a small handful of things that are the drivers of the debt: stupid tax cuts, stupid wars, issues with Medicare and a few other things; the drops don't add up, they just distract
jberryman··on Two Generals' Problem
This reminds me a bit of the "A Biological Solution to a Fundamental Distributed Computing Problem" paper that I believe came up here, especially the probabilistic approach with (implicit, synchronized) clocks in the last paragraph of the wiki page.

I made a little simulation of the former algorithm here

http://jberryman.github.io/fly-mis/

jberryman··on A brief introduction to Haskell, and why it matters
I really love writing libraries. Haskell has a type system that supports defining really solid abstractions (I.e. code that doesn't even permit wrong usage). Creating APIs like that is extremely satisfying. Maybe take a look on hackage and see if there's something missing that you'd like to see and make it.
jberryman··on Ask HN: What is really wrong with the US economy, really?
> I feel under a lot of pressure all the time, and yet it seems I am not quite 'making it' financially or materially.

What is that supposed to mean?

jberryman··on Comcast’s deal with Netflix makes network neutrality obsolete
Also something I never see mentioned is that this sort of seems to be how popularity works; that is "Popularity" tends to be zipf distributed
jberryman··on What are the lesser known but useful data structures?
You forget your <oblig> tag. Its pretty obvious that the success of SO as a Q/A site is thanks to all the mechanisms in place to make it not another shitty forum. And its actual function as a Q/A site has far more value than a handful of cute lists.
jberryman··on Lessons from working 6 months on a math problem and failing
Haha before I clicked I knew it would be that goddamn 17x17 problem. Hadn't heard that someone had solved it, but it will be interesting to read how they did it.
jberryman··on Ubuntu 14.04 LTS supports TRIM on SSD drives
Can anyone comment on the contrary advice here, which is referenced from the debian SSD Optimization wiki page?:

http://www.spinics.net/lists/raid/msg40916.html

jberryman··on Turn O(n^2) reverse into O(n)
Here is the context

http://www.reddit.com/r/haskell/comments/1sh67u/the_reason_w...

jberryman··on An open letter from Carl Bernstein to Guardian editor Alan Rusbridger
I mostly agree with your second point, but to your first: even a small-time drug dealer former acquaintance of mine was familiar with ECHELON and other well-studied-but-top-secret sorts of programs, and basically assumed if he said the wrong words on the phone that some computer would start listening. I think anyone with reason enough to be paranoid would probably come to a similar conclusion with a bit of googling.
jberryman··on What's wrong with Object-Oriented Programming and Functional Programming
Laziness is an implementation detail that permits equational reasoning and a declarative programming model; the only reasons it's even useful to be aware of haskell's evaluation strategy are 1) to know that it isn't strict (if you're already a programmer), and 2) to solve and anticipate space leaks in production code (if you're using it for Real Work).

Anyway, you seem pretty [sure](http://www.idlewords.com/2005/04/dabblers_and_blowhards.htm) of your opinion so it's probably not worth further discussion.

jberryman··on The Decline of Wikipedia: As More People Rely on It, Fewer People Create It
i.e. wikipedia is an encyclopedia.
jberryman··on Central Park (Banksy)
Another conclusion you could draw is that when you remove the hype Banksy's work just isn't very compelling (anymore, or perhaps just on canvas). Or perhaps this is evidence of the opposite: a fair number of people were willing to pay $60 for a small monochrome, hastily-sprayed stencil piece.
jberryman··on Being poor changes your thinking about everything
>Are you serious? What about sales tax? that is 10% in California. Throw that on top. What about property tax? Car Tax?...

Wtf? That's not how taxes work, guy.

← PreviousPage 6 of 24Next →