by steveklabnik · 12y ago · 0 comments
http://play.rust-lang.org/?code=fn%20main%28%29%20{%0A%20%20...}
HN displays that kinda okay, but if you don't have it looking like HN does, it can get to be almost two thousand characters.
Like you know, a url shortener.
http://play.rust-lang.org/?code=fn%20main%28%29%20{%0A%20%20...
Worst compression algorithm ever:
1) make a URL containing the data to compress (perhaps base-38 encoded or something) 2) Send it to a URL shortening service 3) store the returned link 4) use it every so often to ensure the link doesn't go dead 5) profit!