Conversation
Notices
-
Embed this notice
prefetcher (prefetcher@miku.place)'s status on Saturday, 19-Aug-2023 06:47:43 JST prefetcher
the only good data serialization format is the bespoke .txt format i've designed for early danger/u/ that allowed people to randomly inject HTML into posts even though everything was escaped -
Embed this notice
ロミンちゃん (romin@shitposter.club)'s status on Saturday, 19-Aug-2023 06:47:40 JST ロミンちゃん
@jeff @prefetcher bencode is ugly as sin. -
Embed this notice
autism :verified: (jeff@misinformation.wikileaks2.org)'s status on Saturday, 19-Aug-2023 06:47:41 JST autism :verified:
Strings are length-prefixed base ten followed by a colon and the string.
For example 4:spam corresponds to ‘spam’.
Integers are represented by an ‘i’ followed by the number in base 10 followed by an ‘e’.
For example: i3e corresponds to 3 and i-3e corresponds to -3. Integers have no size limitation. i-0e is invalid. All encodings with a leading zero, such as i03e, are invalid, other than i0e, which of course corresponds to 0.
Lists are encoded as an ‘l’ followed by their elements (also bencoded) followed by an ‘e’. For example l4:spam4:eggse corresponds to [‘spam’, ‘eggs’].
Dictionaries are encoded as a ‘d’ followed by a list of alternating keys and their corresponding values followed by an ‘e’.
For example, d3:cow3:moo4:spam4:eggse corresponds to {‘cow’: ‘moo’, ‘spam’: ‘eggs’} and d4:spaml1:a1:bee corresponds to {‘spam’: [‘a’, ‘b’]}. Keys must be strings and appear in sorted order (sorted as raw strings, not alphanumerics).
-
Embed this notice
autism :verified: (jeff@misinformation.wikileaks2.org)'s status on Saturday, 19-Aug-2023 06:47:42 JST autism :verified:
@prefetcher BEP0003 bencode -
Embed this notice
autism :verified: (jeff@misinformation.wikileaks2.org)'s status on Saturday, 19-Aug-2023 08:00:27 JST autism :verified:
@romin @prefetcher it's not for you to READ, it's for the machine to parse ロミンちゃん likes this.
-
Embed this notice