logoalt Hacker News

ocrowtoday at 6:10 AM5 repliesview on HN

Seems like a coherent, sensible proposal, as one might expect from djb. Any notable protocols use them?


Replies

Scaevolustoday at 6:15 AM

BitTorrent's bencoding format, used in .torrent files, effectively uses netstrings-- but without the trailing commas, so it uses "5:hello" to represent filenames and similar.

asalahlitoday at 7:36 AM

Not sure if it counts as notable, but SCGI uses it too: https://python.ca/scgi/protocol.txt

toast0today at 6:34 AM

Php serialized uses

   s:size:value;
For strings, which is pretty similar. Size is in bytes.
Asmod4ntoday at 10:01 AM

zurl and mongrel2 are using it.