www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT] Printf Oriented Message Protocol

reply Paul Backus <snarwin gmail.com> writes:
https://github.com/Parrot-Developers/libpomp

 This library offers a simple protocol to encode/decode messages 
 and exchange
them between processes on a socket (inet or local).
 A message is composed of a 32-bit id and a payload. The payload 
 is composed
of any number of typed arguments.
 The encoding/decoding is done with printf/scanf like functions 
 with a format
string and a variable number of arguments. However, no actual string formatting is done, the payload is a binary representation of arguments. Since D aims to be the premier language for printf-oriented programming, perhaps this is worth keeping an eye on.
Aug 13
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 14/08/2024 4:53 AM, Paul Backus wrote:
 https://github.com/Parrot-Developers/libpomp
 
 This library offers a simple protocol to encode/decode messages and 
 exchange
them between processes on a socket (inet or local).
 A message is composed of a 32-bit id and a payload. The payload is 
 composed
of any number of typed arguments.
 The encoding/decoding is done with printf/scanf like functions with a 
 format
string and a variable number of arguments. However, no actual string formatting is done, the payload is a binary representation of arguments. Since D aims to be the premier language for printf-oriented programming, perhaps this is worth keeping an eye on.
Aw shucks, it doesn't support IOCP. Guess its useless for me :( lol
Aug 13