From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: *** X-Spam-Status: No, score=3.4 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id E1356BBAF for ; Sat, 26 Sep 2009 09:37:48 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkkCALdhvUrRVdzPkGdsb2JhbACRS4h3PwEBAQEJCQwHEwOrBYE0jz8BAwIFBYQUBYFYYw X-IronPort-AV: E=Sophos;i="4.44,455,1249250400"; d="scan'208";a="35029537" Received: from mail-fx0-f207.google.com ([209.85.220.207]) by mail3-smtp-sop.national.inria.fr with ESMTP; 26 Sep 2009 09:37:47 +0200 Received: by fxm3 with SMTP id 3so2672736fxm.44 for ; Sat, 26 Sep 2009 00:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=/NrKgjGucwGhMtfKRKn9uP36jw6F+HSOnbSXfqEln4A=; b=JxJzoQQy3ZZgruHls7wb1JIGXJnw0pIPV1p6AfxJHSM9nRzXQ66ugZN5k62WlRZZ3W 25kaDsMC8Xe9cS7J+8hNuJp817lSeK0mfgW6HOKknU83liYdTgj/RBGo4KRTKN5xoCR3 qFa24PsJcTn2xg+GC3hZkcsRcR+LFGKQF9s7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=fT+Rvw5/RwkP/wZc43594hXeEAi3NRtVCeTzOeAXklAnyJG/8gK98bZOq6m2OO9858 4ujIqwkbUFgcfQWnR/FHukUM+NDjRMkikNWjQtMCCuZPoO6AJSmflks9qnmcJv0aAlts UvBnXcb0gK6lDeETn1uGP79uLQVMxA3p4EhWc= Received: by 10.86.192.34 with SMTP id p34mr1653289fgf.28.1253950667189; Sat, 26 Sep 2009 00:37:47 -0700 (PDT) Received: from lemon ([95.133.246.15]) by mx.google.com with ESMTPS id 12sm1305702fgg.18.2009.09.26.00.37.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Sep 2009 00:37:46 -0700 (PDT) Date: Sat, 26 Sep 2009 10:37:27 +0300 From: ygrek To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Generation of Java code from OCaml Message-Id: <20090926103727.d62cb776.ygrekheretix@gmail.com> In-Reply-To: <527cf6bc0909240502p1292ca1fs5890d3efeac49531@mail.gmail.com> References: <46ACB6F9-FFAE-4C9C-9E46-21CA2E93434C@mykola.org> <20090923195713.GA12236@annexia.org> <001a01ca3ced$8ef58050$ace080f0$@metastack.com> <527cf6bc0909240245g11ce241cr16ac482003bb25f2@mail.gmail.com> <4ABB5597.9010805@ens-lyon.org> <527cf6bc0909240502p1292ca1fs5890d3efeac49531@mail.gmail.com> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.12; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sat__26_Sep_2009_10_37_28_+0300_6_wEZwkOOJcOfhKr" X-Spam: no; 0.00; ocaml:01 def:01 camlp:01 camlp:01 serialize:01 2009:98 storm:98 wrote:01 caml-list:01 functions:01 arbitrary:02 ast:02 modifying:02 represented:02 string:02 X-Attachments: type="application/pgp-signature" --Signature=_Sat__26_Sep_2009_10_37_28_+0300_6_wEZwkOOJcOfhKr Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 24 Sep 2009 14:02:14 +0200 blue storm wrote: > What about factorising json-static to allow adding arbitrary code > generators (represented as functions from (string * type_def) list to > a camlp4 Ast) at camlp4-time ? You would have a design similar to > type-conv, wich allows adding new generators without modifying > type-conv itself. That would be really useful for other kinds of serialization. I would be gl= ad to=20 add json-static-like interface for bencode and php_serialize. --=20 ygrek http://ygrek.org.ua --Signature=_Sat__26_Sep_2009_10_37_28_+0300_6_wEZwkOOJcOfhKr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkq9xLgACgkQY0a5RXCNWgyVigCfZosf5U0GHigGgKW/VcwtmrMP vwEAoLG+3m06+3XY45nFKaWI4WxpdKXY =8+sj -----END PGP SIGNATURE----- --Signature=_Sat__26_Sep_2009_10_37_28_+0300_6_wEZwkOOJcOfhKr--