I did a sort of joke similar to how JSON just declared itself a standard and astroturfed it: http://tnetstrings.org/ Take a look and I'll do a design for it and update the site more. -- Zed A. Shaw http://zedshaw.com/
On Fri, 2011-04-08 at 16:23 -0700, Zed A. Shaw wrote: > I did a sort of joke similar to how JSON just declared itself a standard > and astroturfed it: Shame we missed April 1st, we could have done an RFC... > http://tnetstrings.org/ > > Take a look and I'll do a design for it and update the site more. On the subject of numeric precision, any policy on large integers? The latest C-python lib branches based on the data length and will read the payload into a long, long long, or python arbitrary-precision integer depending on how big it is. Not pretty but helps me win benchmark games :-) Ryan -- Ryan Kelly http://www.rfk.id.au | This message is digitally signed. Please visit ryan@rfk.id.au | http://www.rfk.id.au/ramblings/gpg/ for details
On Apr 8, 2011, at 7:48 PM, Ryan Kelly wrote: > On Fri, 2011-04-08 at 16:23 -0700, Zed A. Shaw wrote: >> I did a sort of joke similar to how JSON just declared itself a standard >> and astroturfed it: > > Shame we missed April 1st, we could have done an RFC... > >> http://tnetstrings.org/ >> >> Take a look and I'll do a design for it and update the site more. > > On the subject of numeric precision, any policy on large integers? The > latest C-python lib branches based on the data length and will read the > payload into a long, long long, or python arbitrary-precision integer > depending on how big it is. Not pretty but helps me win benchmark > games :-) Okay I'm totally adding that trick into my common lisp implementation > > > Ryan > > -- > Ryan Kelly > http://www.rfk.id.au | This message is digitally signed. Please visit > ryan@rfk.id.au | http://www.rfk.id.au/ramblings/gpg/ for details >
> SIZE = [0-9]{1,9} I think this would be better expressed as SIZE = [1-9][0-9]* since leading zeroes are explicitly forbidden... right? Or even, for strictness: SIZE = [1-9][0-9]{0,8} ... > SIZE > A ascii encoded integer that is no longer than 9 digits long, and anyone receiving a message can abort at any length lower than that limit. ASCII. Also, according to this, aborting any string is valid... how about something like "it must parse at minimum 255 characters long strings"? ... > ] > List which you recurise into to fill with values of any type. Typo. ... Also, how about adding an "assert len(length) >= 9" to the example Python implementation... for conformance reasons... -- Tordek Editor in Chief.