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 4A6D27FC41 for ; Tue, 3 Mar 2015 15:43:11 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of sebastien.mondet@gmail.com) identity=pra; client-ip=209.85.215.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="sebastien.mondet@gmail.com"; x-sender="sebastien.mondet@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of sebastien.mondet@gmail.com designates 209.85.215.45 as permitted sender) identity=mailfrom; client-ip=209.85.215.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="sebastien.mondet@gmail.com"; x-sender="sebastien.mondet@gmail.com"; 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-la0-f45.google.com) identity=helo; client-ip=209.85.215.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="sebastien.mondet@gmail.com"; x-sender="postmaster@mail-la0-f45.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BnAwDXx/VUmy3XVdFag1RaBIMHrlWNdIFqAQuFbgKBIAdNAQEBAQEBEAEBAQEBBgsLCRQuhA8BAQEDARIRHQEbEgsBAwELBgUEBwMKDR0CAiIBEQEFAQoSBhMSEId4AQMJCA2vWj4xiy6Ba4J3j3YKGScDClSESgEBAQEBAQEDAQEBAQEBAQEUAQUOiwSCYYIJBAeCLTsSgTEFhGgKhWuIfIVpgVOQQhIjgQwJgX6CMSAxAQSCPgEBAQ X-IPAS-Result: A0BnAwDXx/VUmy3XVdFag1RaBIMHrlWNdIFqAQuFbgKBIAdNAQEBAQEBEAEBAQEBBgsLCRQuhA8BAQEDARIRHQEbEgsBAwELBgUEBwMKDR0CAiIBEQEFAQoSBhMSEId4AQMJCA2vWj4xiy6Ba4J3j3YKGScDClSESgEBAQEBAQEDAQEBAQEBAQEUAQUOiwSCYYIJBAeCLTsSgTEFhGgKhWuIfIVpgVOQQhIjgQwJgX6CMSAxAQSCPgEBAQ X-IronPort-AV: E=Sophos;i="5.09,681,1418079600"; d="scan'208";a="124185693" Received: from mail-la0-f45.google.com ([209.85.215.45]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 03 Mar 2015 15:43:10 +0100 Received: by labmn12 with SMTP id mn12so1664082lab.2 for ; Tue, 03 Mar 2015 06:43:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Dcr2AO92r25aplaFlXd7dQztLOlUafhzZNgkutA8dX0=; b=V8Fs3/DgBWAVJrjSZN3QIpjVFEhph8+4BBpFjO1fzv8kdkvb/K8p7sPHFXpQAe/t/T SqNloYu7c3N+eN82/Kai3QBqhxz5NXWkCNz7QYVkTOuK5po1uc9Mpsu/Jt/7/OmWqvLW rizGXfnEAyHV7VRJbYxQz2oAszQD2cTWLnRNEvE4+tzYMnBF5LtTUH1tgMR2H6qUVV8e z8R0Tcltdbhz2d9eMGABQnZ6wJ24wksv0mG3OC/fKE51aGd43A8bSMca5WiioQQzsKZ3 zvgJLaZEHYLV/v6te/9tYJ4i0W1SCjguPTMmvxn6Z5tM1r/ZqhJKO76UwYIz5CZS8htP CXTg== X-Received: by 10.152.36.226 with SMTP id t2mr10617210laj.53.1425393790037; Tue, 03 Mar 2015 06:43:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.42.74 with HTTP; Tue, 3 Mar 2015 06:42:49 -0800 (PST) In-Reply-To: References: <54F5B3F7.3030705@cea.fr> <54F5C3E6.8010404@cea.fr> From: Sebastien Mondet Date: Tue, 3 Mar 2015 09:42:49 -0500 Message-ID: To: Ivan Gotovchits Cc: =?UTF-8?Q?Fran=C3=A7ois_Bobot?= , Gabriel Scherer , OCaml Mailing List Content-Type: multipart/alternative; boundary=089e0158b5e68535bd0510635ae5 Subject: Re: [Caml-list] Dependencies between plugins --089e0158b5e68535bd0510635ae5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable We have also some code doing that there: https://github.com/hammerlab/ketrew/blob/master/src/lib/pure/ketrew_plugin.= ml#L52 One of the tricks used is that, at configure time, the list of findlib packages already linked is given to the library itself to avoid double loading. On Tue, Mar 3, 2015 at 9:32 AM, Ivan Gotovchits wrote: > But beware that Stog code is distributed under the terms of GPL v3. > > You may be also interested in JaneStreets ocaml-plugin library. > > On Tue, Mar 3, 2015 at 9:23 AM, Fran=C3=A7ois Bobot > wrote: > >> On 03/03/2015 14:40, Gabriel Scherer wrote: >> >>> Maxence Guesdon's static blog/website generator Stog ( >>> https://zoggy.github.io/stog/index.html ) >>> supports dynamic plugins, and its loading code is available at >>> >>> https://github.com/zoggy/stog/blob/e83c363c83465a7bfd1595816b3d9b >>> c8331af560/stog_dyn.ml#L119-L146 >>> >>> It also uses ocamlfind, but through the command-line rather than the >>> Findlib library. >>> >> >> Thank you for the pointer. His code is even able to create cmxs from cmxa >> if needed! >> >> >> -- >> Fran=C3=A7ois >> >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >> > > --089e0158b5e68535bd0510635ae5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
One of the t= ricks used is that, at configure time, the list of findlib packages already= linked is given to the library itself to avoid double loading.


=

On Tue, Mar 3, 20= 15 at 9:32 AM, Ivan Gotovchits <ivg@ieee.org> wrote:
But beware that Stog code is distrib= uted under the terms of GPL v3. =C2=A0

You may be also i= nterested in JaneStreets ocaml-plugin library.

On Tue, Mar 3, 2015 at 9= :23 AM, Fran=C3=A7ois Bobot <francois.bobot@cea.fr> wrot= e:
On 03/03/2015 14:40, Gabriel Sch= erer wrote:
Maxence Guesdon's static blog/website generator Stog ( https://zoggy.github.= io/stog/index.html )
supports dynamic plugins, and its loading code is available at

https://github.com/zog= gy/stog/blob/e83c363c83465a7bfd1595816b3d9bc8331af560/= stog_dyn.ml#L119-L146

It also uses ocamlfind, but through the command-line rather than the Findli= b library.

Thank you for the pointer. His code is even able to create cmxs from cmxa i= f needed!


--
Fran=C3=A7ois


--
Caml-list mailing list.=C2=A0 Subscription management and archives:
ht= tps://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners<= /a>
Bug reports:
http://caml.inria.fr/bin/caml-bugs


--089e0158b5e68535bd0510635ae5--