[2012-Nov-07] Centimeter of Sand

Blame Quintushalls for this.

Moderator: Kimra

The centimeter...

Postby thelordofcheese » Fri Nov 09, 2012 9:12 pm

... so, the centimeter is an LSD blotter?
thelordofcheese
 

Re: [2012-November-07] Centimeter of Sand

Postby thelordofcheese » Fri Nov 09, 2012 9:15 pm

thelordofcheese
 

Re: [2012-November-07] Centimeter of Sand

Postby thelordofcheese » Fri Nov 09, 2012 9:21 pm

stinky613 wrote:Since I'm not a nerd--not even a little bit--I felt absolutely compelled to write some Ruby functions to encode text to centimeters.

https://github.com/stinky613/centimeter-encoding


You could have represented 100 characters in a 2-character pair so capitals and punctuation could be represented, then reduced the number with a reversible hash.
thelordofcheese
 

Re: [2012-November-07] Centimeter of Sand

Postby stinky613 » Mon Nov 12, 2012 4:22 am

thelordofcheese wrote:
stinky613 wrote:Since I'm not a nerd--not even a little bit--I felt absolutely compelled to write some Ruby functions to encode text to centimeters.

https://github.com/stinky613/centimeter-encoding


You could have represented 100 characters in a 2-character pair so capitals and punctuation could be represented, then reduced the number with a reversible hash.


True. The thing is once you start down that path when do you stop? Just a-z and punctuation? Capitals too? Use more than 2-digit pairs and encode all ASCII? All UTF-8 characters?

I specifically didn't encode punctuation or capitals because I wasn't trying to make any assumptions beyond the A = 01, etc pattern in the comic, and for a ten minute project with relatively few (and simple) cases I felt a switch was plenty sufficient.

[EDIT] Looks like I got carried away when I did this. I just noticed the comic started at A=00. Oh well.
stinky613
 
Posts: 2
Joined: Wed Nov 07, 2012 3:15 pm

Re: [2012-November-07] Centimeter of Sand

Postby Clamtor » Mon Nov 12, 2012 1:28 pm

In case anyone was intrigued by the concept of this but isn't aware of the terminology of information theory; Zach pretty much described a derivation of Range-Encoding[1]/Arithmetic-Coding[2]. This is used in popular codecs such as h.264.

[1] http://en.wikipedia.org/wiki/Range_encoding
[2] http://en.wikipedia.org/wiki/Arithmetic_coding
Clamtor
 

Re: [2012-November-07] Centimeter of Sand

Postby belgarion9989 » Sun Nov 18, 2012 5:40 am

By today's standards the grain of sand would be a collection, not a library. In fact, the grain would most likely be used as an archive. In order for a collection to be a library it must have a librarian facilitating access to it.

Had to be said.
belgarion9989
 
Posts: 1
Joined: Wed Nov 07, 2012 3:41 am

Previous

Return to Latest Comic Discussion 3: Revenge of the Son of Latest Comic Discussion 2

Who is online

Users browsing this forum: No registered users and 3 guests