HNHacker News
TopNewBestAskShowJobs

dschoon

169 karma · joined July 28, 2008

http://art.less.ly
submissionscomments
dschoon··on How Gödel's Proof Works (2020)
Quanta Magazine is a never ending source of good material. Add it to your feed.
dschoon··on Afsctool – apply transparent LZ compression to files/folders on OS X
Note that the homebrew package is out of date and will not work with APFS, or with the latest compression codecs.
dschoon··on Show HN: I built this game alone – design, code, music, sound, marketing
I adored Eliss when it released. I still use it at one of the single best examples of how a touch UX radically changes the computing experience by aligning software behavior with physical intuitions.

Consider multitouch. Conventional mouse-desktop thinking orients us to one pointer and a one-point interaction mode. "Normal Users" (aka, the Your Mom archetype) new to the touch experience and to Eliss almost always use a single finger to drag around the screen objects, switching to two only to pinch. But around level 3, the game ramps up in difficulty, and this is when the magic happens. The user starts falling behind. Without asking or thinking about it, nearly every single one of them suddenly starts using their other hand. Nobody told them it would work! These are users terrified of clicking the File menu, because it once ate their Word document. Experimentation has a huge mental inhibition, and yet touch is so intuitive it bypasses the block. I've asked all these users whether they noticed -- and while this isn't rigorous by any degree -- nearly all of them reported they did not. This is magic.

Thank you Steph Thirion, for hours of enjoyment in Eliss as well as a lovely natural experiment in UX.

dschoon··on Show HN: A Javascript quiz that explores how javascript scopes its variables
For unknown reasons, ARC has truncated my code-comment. It read:

// => `45`, because `this.a` is resolved to `window.a`, as `window` is the global variable used as the method context when we call an unbound function (which is stupid (`null` would have been a way better choice, Brandon)).

dschoon··on Show HN: A Javascript quiz that explores how javascript scopes its variables
Yeah, I agree with the other comments -- the greatest JS scoping gotcha involves unbound methods.

    var o = { a:13, add:function(b){ return this.a + b; } };
    o.add(42); // => `55`
    var add = o.add;
    add(42); // => `NaN`, because `this.a` is (presumably) `undefined`
    var a = 3;
    add(42); // => `45`, because `this.a` is resolved to `window.a`, as `window` is the global variable used as the method context when we call an unbound function (which is stupid (`null` would have been a way better choice, Brandon)).
This is the sort of thing you learn and just get over to reach the level of javascript mastery. Yeah, some things are silly. But you know what? You only get to write one language to access the dynamic web.
dschoon··on Thoughts on Python 3
I've always heard them referred to as "Generic Functions", though the Wikipedia article is annoying opaque.

The important quality (in my practical understanding) is that a generic function's specialization is decoupled from the object system -- delegating to `x.__iter__()` doesn't require `x` inheriting a method from a parent; the process `iter(x)` uses to delegate might not even require any type information about `x` at all.

dschoon··on What's wrong with OKCupid's matching algorithm.
This critique reminds me very strongly of Evan Miller's "How Not To Sort By Average Rating": http://www.evanmiller.org/how-not-to-sort-by-average-rating....

In both cases, the key observation is to realize that the meaning of the numbers is more important than the numbers (or how they're calculated, per se). This point is kind of abstract--especially compared to the salient examples in both pieces--but if you're looking to understand why this error is so common, look first to the fact that it's not an error of stupidity or insufficient maths.

You can sometimes avoid a big practical problem (e.g., an avenue to attack your system via diluting meaning ("spam")) by abstractly considering the meaning behind the structures available to you.

dschoon··on http://(Type any keyword here).jpg.to
Huh. http://to.jpg.jpg.to/
dschoon··on MongoDB 2.0 Should Have Been 1.0
Here's that search-interest graph he inexplicably screencaps in the article, rather than also linking to it:

http://www.google.com/insights/search/#cat=0-5&q=cassand...

I added Cassandra, as it's substantially more popular than Riak (whereas HBase is not, and you only get 5 slots).

dschoon··on C No Evil
Some of the most frustrating problems I've seen are due to misunderstanding or rare semantics rather than mistakes. Examples might include the specifics of floating-point math, or exactly how numeric coercion works. This is especially bad when the result isn't easy to eyeball as right or wrong.

For example, we could force a double-valued transcendental function to float and back for a small loss of precision in normal cases:

    #define sin(d) ((double)sinf(d))
Which yields...

    double i =  10
    --> i    =  10.0000000000
    sin(i)   = -0.5440211109
    sinf(i)  = -0.5440211296
    delta    =  0.0000000187
    
    double i =  0.25
    --> i    =  0.2500000000
    sin(i)   =  0.2474039593
    sinf(i)  =  0.2474039644
    delta    = -0.0000000051
    
    double i = 9999999.999999
    --> i    = 9999999.9999989998
    sin(i)   =  0.4205487007
    sinf(i)  =  0.4205478132
    delta    =  0.0000008875
(Format string was %25.10f, fwiw.)

Another idea: Let's say we know the application relies on rand() to produce the correct distribution for testing, or maybe to generate session keys. Changing the semantics of the RNG won't result in a compiler bug, but it might result in the tests failing to cover all cases, or a horrible security breach.

dschoon··on Why HN Got Slow
You know, I still have a 50-odd Erlang article queue. So I'm not saying I want every day to be Haskell Day, but I'm also not saying I'd be terribly upset if I had a few hundred articles on Haskell to keep me warm at night...
dschoon··on Byte Buffers and Non-Heap Memory
You might also look into Berkeley JE. It's an in-process KV store, which might be a minor crimp for you, but it's more mature than god and transparently handles paging to disk and shadowing. We used it as durable working memory for a high volume stream-processing application, bundling rows together into pages, compressing them, and then letting JE handle caching and GC. It does an excellent job.

http://www.oracle.com/technetwork/database/berkeleydb/overvi...

License for server usage is Sleepycat. http://en.wikipedia.org/wiki/Sleepycat_License

dschoon··on Why I will never pursue cheating again
The original post has disappeared. Here's the google cache:

http://webcache.googleusercontent.com/search?q=cache:zlciYW0...

dschoon··on Can you solve it? The Greplin programming challenge
I don't think trivializing the combinations with Python's builtins, looking up the fib primes with OEIS, or computing factors with Alpha is cheating. I hope, in fact, it's the whole point of the exercise: choose the right tools for the job. If you're writing code to test primeness or generate Fibonacci numbers, I sure as hell don't want to hire you.
dschoon··on Apple faces $600m damages claim
David Gelernter is a CS professor at Yale, an author, and as far as I can tell, not really a scumbag. But who knows, he did name his coordination language Linda, because "'Ada' is to 'Ada Lovelace' as 'Linda' is to 'Linda Lovelace'".

http://en.wikipedia.org/wiki/Linda_%28coordination_language%...

He's got quite a few essays on edge.org of some repute, including this one from 2000 in which he eerily and in detail predicts the move to event stream-based information presentation. Quantity, not quality, he says.

http://news.ycombinator.com/item?id=1759763

In any case, all the Mirror Worlds patent trial documents are available here:

http://news.ycombinator.com/item?id=1759843

From the summary there:

The document display lawsuit involved Apple's Cover Flow, Time Machine, and Spotlight displays. Plaintiff Mirror Worlds LLC alleges that Defendant Apple, Inc. infringed on U.S. Patent Nos. 6,006,227 and 6,638,313 B1 entitled "Document Stream Operating System" and 6,725,427 B2 entitled "Document Stream Operating System with Document Organizing and Display Facilities," 6,768,999 B2 entitled "Enterprise, Stream-Based Information Management System".

dschoon··on Xz
I built and tried this out. I'm rather shocked to see speed and compression ratio better than gzip -9.

The results of my unscientific test (compression only):

   Compressor  Size  Ratio  Time
   gzip -1     23MB  88%     1.18s
   gzip -2     23MB  87%     1.38s
   bzip2       23MB  87%     5.57s
   xz -1       23MB  87%     5.35s
   xz -9       11MB  43%    10.58s
   bmz         13MB  45%     0.95s
dschoon··on Posterous silently changes all external links to affiliate links
Looking at the code, the hooks are DOM listeners that intercept the click to do the redirect. They don't modify the anchor tag, so there's no reason anyone should see them on mouseover or right-click-copy.
dschoon··on Lightning - A new and faster way to use your shell
Fish shell (http://fishshell.org) performs essentially the same sort of completion for many classes of files based on context. I've found the complete subsystem to be quite pleasant compared to bash, and I recommend it to anyone interested in trying out this sort of thing.
dschoon··on My Duck Duck Go reddit ad by the numbers
Related: I've often wondered why no one has found a successful way to brand opt-in ad targeting. You'd have to be big enough for it to matter (Google?), but it would have a tremendously positive effect on both the end-user experience, and on ad revenues.
dschoon··on Your high IQ will kill your startup
Related, I think, to OP's point: Smart People Can Rationalize Anything: http://habitatchronicles.com/2006/12/smart-people-can-ration...
dschoon··on Ouch
...

I am actually saddened I now know that. I kind of wish I could have had that same experience.

dschoon··on How To Fly Without ID
I wondered the same thing, so I did a little extra footwork.

Berkeley Professor David Wagner conducted basically the same research as this dude: http://www.cs.berkeley.edu/~daw/faa/

He came to similar findings regarding selectees: http://www.cs.berkeley.edu/~daw/faa/noid.html

Neither of those pages are dated, though, so it's still possible things have changed in the past three years. Even so, it's worth noting that both these sites are reporting post-9/11 information.

I'm curious and a bit adventurous, so perhaps I'll give it a shot. I bought the jetBlue pass, so I'll have plenty of opportunities. http://jetblue.com/deals/all-you-can-jet/?intcmp=HPHero1Eng_...

dschoon··on The Crucible Effect and the Scarcity of Collective Attention
This article is just filled with gems. The "Crucible" idea is both aptly named and powerfully explanatory.

I do not think college is terribly good at educating. Even so, I'm forced to admit the cliché is probably right: it's a powerfully life-changing, valuable experience. I came out of it with a radically reshaped worldview, tremendous energy, and much knowledge. My rate of progress while in college (in fact, mostly a few specific years) was much higher than any other time I remember.

...But I don't look back and think of important classes taken or works read. I see myself surrounded by brilliant, energetic peers. That's the Crucible Effect he describes. We talk about it when thinking of "startup-friendly" communities, or hacker groups, or even preserving the "character" of these boards. We're trying to keep the Crucible Effect intact.

Interesting.

dschoon··on Touchable holography
Does anyone here have experience with the concave mirror holographic display mentioned offhand in that video? Is something like that difficult and/or expensive to build?
dschoon··on Nissan unveils world's first mass-market electric car, the Leaf
For me, the most important sentence was near the end:

"The Leaf car battery can be charged to 80% capacity in about 20 minutes, compared with almost three and a half hours needed for the G-Wiz."

Seems totally reasonable for an intra-city commuting vehicle. I can't see why something like this (even with a 100mi range) wouldn't be popular in NYC, LA, or Boston.

dschoon··on Ask HN: Risk of libyan .ly domain names?
I joke that my domain purchase may or may not indirectly fund state-supported terrorism.

As far as my customers are concerned though, I think you'd be hard-pressed to find that 1% knows that .ly is Libya.

dschoon··on Ask HN: Risk of libyan .ly domain names?
I doubt the technical regulatory infrastructure is sufficiently vigilant for them to notice, but as far as I understand their TOS, yes.
dschoon··on Ask HN: Risk of libyan .ly domain names?
I've owned a .ly domain for about two years now (with libyanspider has been the only registrar I know of for that time). While the prices are high, and the support staff speaks limited english, and the site is confusing, I haven't had any serious problems.

The service is as advertised; support exists. When they accidentally locked me out of my account by changing their control panel, things were resolved in less than two days via email.

That's good enough for me. Just remember: you are subject to Libyan obscenity laws. No porn, no bashing Islam.

dschoon··on Hidden Secrets of the Amazon Shopping Cart
I have great admiration for the amount of time and precision put into this article--as well as Amazon's relentless, cold, uncool devotion to optimization.

These meditations on A/B optimization reminded me of a genetic algorithm-based A/B testing framework mentioned not too long ago: http://ejohn.org/blog/genetic-ab-testing-with-javascript/ (I'd link to Genetify itself, but there's no homepage, just the demo)

An interesting thought: Why hasn't this caught on? Machines are good at exactly the things A/B testing aims at: measuring performance, permuting a test-matrix, and reporting on the results. This is not to say Genetify is the answer, but rather that I rarely hear of conversion optimization from developers.

dschoon··on Thoughts on Piracy and DRM from AI War Creator
Thoughtful, fair, interesting discussion. I'd love to see Park hang out here and comment (does he?). I personally agree with everything he wrote, but I imagine there are positions out here he didn't consider.
Page 1 of 2Next →