From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id AA5A77FA14 for ; Mon, 7 Jul 2014 17:10:46 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of whitequark@whitequark.org) identity=pra; client-ip=176.58.103.125; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="whitequark@whitequark.org"; x-sender="whitequark@whitequark.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of whitequark@whitequark.org designates 176.58.103.125 as permitted sender) identity=mailfrom; client-ip=176.58.103.125; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="whitequark@whitequark.org"; x-sender="whitequark@whitequark.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.whitequark.org) identity=helo; client-ip=176.58.103.125; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="whitequark@whitequark.org"; x-sender="postmaster@mail.whitequark.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcFAOG3ulOwOmd9/2dsb2JhbABag2CCeKk2AQEBAwaBOpkiAYEsdYQDAQEFOAJPBAcYLiwrGQiIPgnKBRMEhXCDV4RNgRUWhC0BBIpLpDeDSDg X-IPAS-Result: AtcFAOG3ulOwOmd9/2dsb2JhbABag2CCeKk2AQEBAwaBOpkiAYEsdYQDAQEFOAJPBAcYLiwrGQiIPgnKBRMEhXCDV4RNgRUWhC0BBIpLpDeDSDg X-IronPort-AV: E=Sophos;i="5.01,618,1400018400"; d="scan'208";a="83997762" Received: from fehu.whitequark.org (HELO mail.whitequark.org) ([176.58.103.125]) by mail2-smtp-roc.national.inria.fr with ESMTP; 07 Jul 2014 17:10:45 +0200 Received: by mail.whitequark.org (Postfix, from userid 33) id A107B4E5AA; Mon, 7 Jul 2014 15:10:44 +0000 (UTC) To: caml-list@inria.fr X-PHP-Originating-Script: 1000:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 07 Jul 2014 19:10:44 +0400 From: Peter Zotov In-Reply-To: References: Message-ID: <25a164c9efba9ae7ceefcb1779aba796@whitequark.org> X-Sender: whitequark@whitequark.org User-Agent: Roundcube Webmail/1.0.1 Subject: Re: [Caml-list] [ANN] capnp-ocaml 1.0.0 On 2014-07-07 17:46, Paul Pelzl wrote: > Q: Why would I want to use this over Protocol Buffers? > > A: Cap'n Proto has the clear advantage of first-class sum types, which > are mapped to OCaml variants in a straightforward fashion. You also > find yourself intrigued by the potential for better performance and > zero-overhead shared-memory message passing. I want to note that ppx_protobuf provides an efficient mapping for OCaml's sum types, which would map to most well-designed protocols naturally. https://github.com/whitequark/ppx_protobuf#variants -- Peter Zotov sip:whitequark@sipnet.ru