I've been reading about URI, and it seems we don't really need "//" since we are not using any "authority" in that scheme.
Also the list of registered protocols is actually smaller than i'd guess: http://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml so, i'm currently inclined to something like that: twist:12334566788= Where 3, 6 and 8 are doubled just to represent the overhead of base64 encoding. That's 18 bytes, shorter than t.co (which is 19 afaik). So we have a fixed size element to replace in text editor. The encoded base64 thing would be two 32 integers to specify user and post number k. Future URL gateways may be created by passing the string to the server, eg. "twist:12334566788=" => http://twister.resolver.com/12334566788= comments? regards, Miguel On Thu, Feb 25, 2016 at 8:27 AM, Miguel Freitas <[email protected]> wrote: > On Wed, Feb 24, 2016 at 12:07 PM, Vincent Olivier <[email protected]> wrote: >> >> >> How is this going along ? Need help ? >> > > I'll try to continue this weekend, but i'm not sure it will be finished > before i travel next week... > > One thing that would be nice to discuss though is the official format(s) > we should adopt for the shortened URLs (or URI?). I mean, something like: > > twister://username.k (where k is an integer, the post number) > > Actually I'd suggest we accept two formats from the start, one with > username as string and other with uid (another integer) which is possibly > smaller. So should we may define: > > twst1://username.k > twst2://uid.k > > Later optimizations (twst3, twst4 etc) may include further encoding uid > and k integers in a shorter representation (integer => binary => base64?). > > I don't know... I'm not good with these URI standard rules... > > regards, > > Miguel > > -- You received this message because you are subscribed to the Google Groups "twister-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
