News for hackers. Stuff that matters.
Re:Open Sourcing the Stupid-Simple Messaging Protocol by davorb on Thursday September 10, 2015 @03:23PM (#10200003)
Aren't those just P-strings with a semicolon?

https://en.wikipedia.org/wiki/String_%28computer_science%29#...

Re:Open Sourcing the Stupid-Simple Messaging Protocol by fazzone on Thursday September 10, 2015 @03:48PM (#10200165)
Pascal-style strings have the length stored in the first byte, so a string can only be 255 characters long. Netstrings have the length in text at the front of the string instead, so you need only preallocate a buffer of 20 characters to store the text representation of string lengths up to 2^64 bytes.