News for hackers. Stuff that matters.
Re:Hashify.me - store entire website content in the URL by angusgr on Tuesday April 19, 2011 @08:40PM (#2464798)
Splitting hairs because it's closer to a common understanding, but bit.ly URLs aren't hashes they are just alphanumeric IDs.

The difference is that AFAIK there's no algorithm to take a URL (plus or minus a username) and give you a bit.ly ID, short of looking it up at bit.ly.

Re:Hashify.me - store entire website content in the URL by jholman on Tuesday April 19, 2011 @11:56PM (#2465189)
And the relationship is this: 'path' element of bit.ly URLs are keys in a key->value mapping (where the value is your target URL), and one of the best implementations of a key->value mapping is a hash-table. (At least, it's good for in-memory implementations... I suppose that on disk something a little more elaborate may be called for?)

Historically, the authors of Perl and Ruby (and WP tells me, Common Lisp?) decided to confuse the interface with the implementation, and use "hash" or "hash table" to refer to the mapping, and not ever Perl hacker has a Computing Science degree, so now we live in a world of people who think that "hash" means the thing that bit.ly does for you.

Once again, Larry Wall Ruins Everything. :P

Re:Hashify.me - store entire website content in the URL by dfox on Wednesday April 20, 2011 @09:08PM (#2469066)
In Common Lisp, it's not interface for mapping but really an hash table as some internal details of hash table implementation are exposed by the interface.