Hacker News new | past | comments | ask | show | jobs | submit login

I believe Oskar is bit packing the data into the string, somewhere in his twitter feed he explains it.

Edit: Found it: https://twitter.com/OskSta/status/1198958801363308544

He designed it so you can fit a saved town in a tweet.

"It's my own very context specific implementation. I know how many bits I need for each bit of data, so I just store it all in a big bit array. I then convert that bit array to my own custom base 64 format, based on 64 web safe characters."

Worth reading the whole thread, as will all of Oskars twitter feed its super interesting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: