Hi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on:
https://developers.google.com/protocol-buffers/
Regards,

Mailing lists / lazarus / 2015-07
8 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on:
https://developers.google.com/protocol-buffers/
Regards,
"Leonardo M. Ram?" wroteHi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on: https://developers.google.com/protocol-buffers/
Yes, there are several. See e.g. fundamentals.
http://fundementals.sourceforge.net/
Michael.
Leonardo can you explain where you can use it?
Regards,
Ara
Aradeonas wroteLeonardo can you explain where you can use it?
Any service that needs to exchange data fast over the network with another service. if human-readability and general accesibility and so on is not important, then this will work a lot faster than e.g. XML or JSON.
Michael.
How fast compare to JSON?
Regards,
Ara
Yes, there are several. See e.g. fundamentals. http://fundementals.sourceforge.net/…
Nice!, I didn't know about this library.
Leonardo can you explain where you can use it? Ara http://www.fastmail.com - Choose from…
Currently one of my apps is sending JSON files to a server, with a structure similar to this:
{
"document_name": "doc 1",
"document_type": "pdf",
"content": BASE64_ENCODED_PDF
}
Where BASE64_ENCODED_PDF is an binary file that must be converted to base64 to be included into a json field.
The base64 encoding/decoding carries both processor and transfer size overhead, compared to a binary protocol.
Of course I could have created my own proprietary protocol, but I have some constraints, for example, the sender is a Java application, and the receiver is a FreePascal one, so, using a "standard" protocol, like Google's Protocol Buffers seems to fit very well in this particular scenario.
Regards,
Thank you.
Ara