caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Protobuf and OCaml
@ 2015-02-25 16:58 Trevor Smith
  2015-02-25 17:32 ` Kenneth Adam Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Trevor Smith @ 2015-02-25 16:58 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Hello,

Is anyone out there using OCaml with Protobufs? If so, what library/tools
are you using, and how do you like the setup? Also, are you using Protobufs
in a production setting?

I found online but have not used any of the below myself:

1) piqi - http://piqi.org/
2) obitz - https://github.com/orbitz/ocaml-protobuf
3) whitequark's protobufs - https://github.com/orbitz/ocaml-protobuf

Curious to hear your experiences. Thank you.

Trevor

[-- Attachment #2: Type: text/html, Size: 806 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Protobuf and OCaml
  2015-02-25 16:58 [Caml-list] Protobuf and OCaml Trevor Smith
@ 2015-02-25 17:32 ` Kenneth Adam Miller
  2015-02-25 18:35 ` Malcolm Matalka
  2015-02-26 15:07 ` Koen De Keyser
  2 siblings, 0 replies; 6+ messages in thread
From: Kenneth Adam Miller @ 2015-02-25 17:32 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

Yeah, I use ocaml and protobuf. I use Piqi a lot, and it works fine. It's
easy to use piqi. You write your data types in the piqi language, and then
derive your .proto files from it using the piqic compiler. You can then do
the normal things with protobuf compilers to generate whatever language
bindings you want.

Yes, I have protobuf in two scenarios (one for binary analysis, another for
custom binary instrumentation) at my work, and I find it works nicely.

On Wed, Feb 25, 2015 at 11:58 AM, Trevor Smith <trevorsummerssmith@gmail.com
> wrote:

> Hello,
>
> Is anyone out there using OCaml with Protobufs? If so, what library/tools
> are you using, and how do you like the setup? Also, are you using Protobufs
> in a production setting?
>
> I found online but have not used any of the below myself:
>
> 1) piqi - http://piqi.org/
> 2) obitz - https://github.com/orbitz/ocaml-protobuf
> 3) whitequark's protobufs - https://github.com/orbitz/ocaml-protobuf
>
> Curious to hear your experiences. Thank you.
>
> Trevor
>

[-- Attachment #2: Type: text/html, Size: 1774 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Protobuf and OCaml
  2015-02-25 16:58 [Caml-list] Protobuf and OCaml Trevor Smith
  2015-02-25 17:32 ` Kenneth Adam Miller
@ 2015-02-25 18:35 ` Malcolm Matalka
  2015-02-26 14:54   ` Trevor Smith
  2015-02-26 15:07 ` Koen De Keyser
  2 siblings, 1 reply; 6+ messages in thread
From: Malcolm Matalka @ 2015-02-25 18:35 UTC (permalink / raw)
  To: Trevor Smith; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

At the moment I think whitequark's is probably the simplest,  easiest,  and
most well tested.  Ocaml-protobuf will be implemented in terms of his once
I get sufficient time and motivation.  Ocaml-protobuf provides a monadic
interface which I prefer and whitequark's does a lot of the heavy lifting
for you.
Den 25 feb 2015 18:00 skrev "Trevor Smith" <trevorsummerssmith@gmail.com>:

> Hello,
>
> Is anyone out there using OCaml with Protobufs? If so, what library/tools
> are you using, and how do you like the setup? Also, are you using Protobufs
> in a production setting?
>
> I found online but have not used any of the below myself:
>
> 1) piqi - http://piqi.org/
> 2) obitz - https://github.com/orbitz/ocaml-protobuf
> 3) whitequark's protobufs - https://github.com/orbitz/ocaml-protobuf
>
> Curious to hear your experiences. Thank you.
>
> Trevor
>

[-- Attachment #2: Type: text/html, Size: 1505 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Protobuf and OCaml
  2015-02-25 18:35 ` Malcolm Matalka
@ 2015-02-26 14:54   ` Trevor Smith
  0 siblings, 0 replies; 6+ messages in thread
From: Trevor Smith @ 2015-02-26 14:54 UTC (permalink / raw)
  To: Malcolm Matalka; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

Thanks for your input Kenneth and Malcolm. Helpful.

Trevor

On Wed Feb 25 2015 at 1:35:57 PM Malcolm Matalka <mmatalka@gmail.com> wrote:

> At the moment I think whitequark's is probably the simplest,  easiest,
> and most well tested.  Ocaml-protobuf will be implemented in terms of his
> once I get sufficient time and motivation.  Ocaml-protobuf provides a
> monadic interface which I prefer and whitequark's does a lot of the heavy
> lifting for you.
> Den 25 feb 2015 18:00 skrev "Trevor Smith" <trevorsummerssmith@gmail.com>:
>
> Hello,
>>
>> Is anyone out there using OCaml with Protobufs? If so, what library/tools
>> are you using, and how do you like the setup? Also, are you using Protobufs
>> in a production setting?
>>
>> I found online but have not used any of the below myself:
>>
>> 1) piqi - http://piqi.org/
>> 2) obitz - https://github.com/orbitz/ocaml-protobuf
>> 3) whitequark's protobufs - https://github.com/orbitz/ocaml-protobuf
>>
>> Curious to hear your experiences. Thank you.
>>
>> Trevor
>>
>

[-- Attachment #2: Type: text/html, Size: 1914 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Protobuf and OCaml
  2015-02-25 16:58 [Caml-list] Protobuf and OCaml Trevor Smith
  2015-02-25 17:32 ` Kenneth Adam Miller
  2015-02-25 18:35 ` Malcolm Matalka
@ 2015-02-26 15:07 ` Koen De Keyser
  2015-02-26 15:15   ` Kenneth Adam Miller
  2 siblings, 1 reply; 6+ messages in thread
From: Koen De Keyser @ 2015-02-26 15:07 UTC (permalink / raw)
  To: Trevor Smith; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]

I've worked with Piqi, converting a project that was using custom
serialization to Protobuf. This was a fairly pleasant experience: the main
developer was very responsive and the code base for the code generator is
sufficiently clean that it made adding custom functionality quite easy.

The main reason I went with Piqi is the code generation functionality: one
of the main reasons to adopt something like Protobuf is the possibility of
generating code in a multitude of languages (e.g. Python for scripting /
testing purposes) from a single definition file (the proto file in this
case). Any change there is automatically picked up by the build process in
all of the languages, so your code stays in sync across languages. This is
not the case if the definition of the struct is in Ocaml itself.

Koen De Keyser

On Wed, Feb 25, 2015 at 5:58 PM, Trevor Smith <trevorsummerssmith@gmail.com>
wrote:

> Hello,
>
> Is anyone out there using OCaml with Protobufs? If so, what library/tools
> are you using, and how do you like the setup? Also, are you using Protobufs
> in a production setting?
>
> I found online but have not used any of the below myself:
>
> 1) piqi - http://piqi.org/
> 2) obitz - https://github.com/orbitz/ocaml-protobuf
> 3) whitequark's protobufs - https://github.com/orbitz/ocaml-protobuf
>
> Curious to hear your experiences. Thank you.
>
> Trevor
>

[-- Attachment #2: Type: text/html, Size: 2156 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Protobuf and OCaml
  2015-02-26 15:07 ` Koen De Keyser
@ 2015-02-26 15:15   ` Kenneth Adam Miller
  0 siblings, 0 replies; 6+ messages in thread
From: Kenneth Adam Miller @ 2015-02-26 15:15 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1877 bytes --]

Well put Koen.

The other thing that's interesting is that with the build chain being piqi
-> proto files, you can add support for languages to automatically support
your data schema other than what the original protocol buffers project
provides for. So, originally pb started with python, java, and C/++. Now it
supports Google's go and all kinds of other languages.

On Thu, Feb 26, 2015 at 10:07 AM, Koen De Keyser <koen.dekeyser@gmail.com>
wrote:

> I've worked with Piqi, converting a project that was using custom
> serialization to Protobuf. This was a fairly pleasant experience: the main
> developer was very responsive and the code base for the code generator is
> sufficiently clean that it made adding custom functionality quite easy.
>
> The main reason I went with Piqi is the code generation functionality: one
> of the main reasons to adopt something like Protobuf is the possibility of
> generating code in a multitude of languages (e.g. Python for scripting /
> testing purposes) from a single definition file (the proto file in this
> case). Any change there is automatically picked up by the build process in
> all of the languages, so your code stays in sync across languages. This is
> not the case if the definition of the struct is in Ocaml itself.
>
> Koen De Keyser
>
> On Wed, Feb 25, 2015 at 5:58 PM, Trevor Smith <
> trevorsummerssmith@gmail.com> wrote:
>
>> Hello,
>>
>> Is anyone out there using OCaml with Protobufs? If so, what library/tools
>> are you using, and how do you like the setup? Also, are you using Protobufs
>> in a production setting?
>>
>> I found online but have not used any of the below myself:
>>
>> 1) piqi - http://piqi.org/
>> 2) obitz - https://github.com/orbitz/ocaml-protobuf
>> 3) whitequark's protobufs - https://github.com/orbitz/ocaml-protobuf
>>
>> Curious to hear your experiences. Thank you.
>>
>> Trevor
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3090 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-26 15:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 16:58 [Caml-list] Protobuf and OCaml Trevor Smith
2015-02-25 17:32 ` Kenneth Adam Miller
2015-02-25 18:35 ` Malcolm Matalka
2015-02-26 14:54   ` Trevor Smith
2015-02-26 15:07 ` Koen De Keyser
2015-02-26 15:15   ` Kenneth Adam Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).