Software:Microsoft Bond
Developer(s) | Microsoft |
---|---|
Initial release | January 2015 |
Operating system | Windows, macOS, Linux |
Platform | Cross-platform |
Type | serialization format and library, IDL compiler |
License | MIT License |
Website | {{{1}}} |
Overview
Microsoft announced and open sourced Bond in early 2015 under the MIT License.[1] It is used schema rules and a rich type system to serialize and deserialize data in a backwards and forwards compatible manner.
Bond currently supports C++, C#, Java and Pyton on Lunux, MacOS and Windows. Microsoft Bond is similar to the Apache Thrift (used by Facebook), Ion (created by Amazon), or Protocol Buffers (created by Google). Data structures are defined in a .bond file and compiled via gbc, the Bond [2]
Example
Bond schemas are defined in with field names, along with integers that identify each field. The protocol itself only uses the integers, saving space for the field names during the transmission of the data. The names are only used in the generated code for readability.
namespace Examples struct Record { 0: string Name; 1: vector<double> Constants; }
Language support
Bond currently supports:[3]
See also
References
- ↑ "Microsoft Open Sources Cross-platform Serialization Library – Bond" (in en). https://www.infoq.com/news/2015/02/MicrosoftBond/.
- ↑ compiler/codege.
- ↑ microsoft/bond, Microsoft, 2020-09-16, https://github.com/microsoft/bond, retrieved 2020-09-18
External links