Are protocol buffers with F # used?

Just curious - protocol buffers that can be used with F #? Any reservations, etc.?

+3
source share
3 answers

There is no F # specific, but there is OCaml alone, or there is a .NET "common" ( protobuf-net ).

Honestly, I just did not try to try protobuf-net with F # objects, partly because I just donโ€™t know enough F #, but if you can create POCOs, they should work. However, to work with protobuf-net, they must have some variability (perhaps even just private variability).

# DTO F #, protobuf-net Jon port .

+4

.

Protobuf-net Marc Gravell F #, .NET. .proto , .proto. .NET, , , Marshal OCaml. . , . , , .

Jon Skeet protobuf-csharp-port library .

F # (, , , , , ..) , . : Jon Skeet - 88 000 # (!).

, Google DateTime decimal.

Proto # Froto. ProtoParser, .proto -.

+9

, F #, , .NET. , , F #, .

My port will generate C # code, so you will need to create it as a separate project for your serialization model, but this should interact with F # without any problems. The generated types are immutable (with mutable collectors), so they should help in the context of F #.

Of course, you can always take the main parts of any project and come up with an F # idiomatic solution - whether you transfer the entire project to F # or use existing libraries using the F # code generator and auxiliary functions or something else like this.

+3
source

Source: https://habr.com/ru/post/1792241/


All Articles