Software:Microsoft Bond

From HandWiki
Microsoft Bond
Developer(s)Microsoft
Initial releaseJanuary 2015
Operating systemWindows, macOS, Linux
PlatformCross-platform
Typeserialization format and library, IDL compiler
LicenseMIT 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

External links