News for hackers. Stuff that matters.

lambdajones

Re:_why is no more on Wednesday August 19, 2009 @09:28PM (#774228)
it means why is probably in a remote, hidden mountain village in Colorado.
Re:Base52 url shortener perfect hash function in C on Saturday July 04, 2009 @08:05PM (#687748)
I don't disagree. I tried to tell the product people that on several occasions, but it fell on deaf ears. So might as well do it right, eh?
Re:Base52 url shortener perfect hash function in C on Saturday July 04, 2009 @07:59PM (#687745)
Got around to profiling it last night. My code is faster, if you accept the cost of mystery.

http://lambdajones.com/b52why

Re:Base52 url shortener perfect hash function in C on Friday July 03, 2009 @05:56AM (#685863)
Yeah, a ull is overkill. This code comes from a furious couple weeks of coding, an attempt at being clever and going for speed. I'm not sure if I accomplished either. The thinking at the time was that the constants might cache better. I know, don't be clever.
Re:Base52 url shortener perfect hash function in C on Friday July 03, 2009 @04:55AM (#685807)
b52 maps each short url code to a unique number, 0-(52^5)