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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id ADF8C7F1BA for ; Thu, 15 Nov 2012 17:09:55 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rixed@happyleptic.org) identity=pra; client-ip=213.251.171.101; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="rixed@happyleptic.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of rixed@happyleptic.org) identity=mailfrom; client-ip=213.251.171.101; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="rixed@happyleptic.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@eneide.happyleptic.org) identity=helo; client-ip=213.251.171.101; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="postmaster@eneide.happyleptic.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8HAE0TpVDV+6tl/2dsb2JhbABEi3G2U4EIgh4BAQU6TwsYLhQNGzSHeQMTsxMNiVSLSGkKgnuCRmEDlCeBVIszhRGCcA X-IronPort-AV: E=Sophos;i="4.83,258,1352070000"; d="scan'208";a="162634508" Received: from eneide.happyleptic.org ([213.251.171.101]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 15 Nov 2012 17:09:55 +0100 Received: from extranet.securactive.net ([82.240.34.113] helo=ccellier.rd.securactive.lan) by eneide.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1TZ20o-0001fd-Jm for caml-list@inria.fr; Thu, 15 Nov 2012 17:09:54 +0100 Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.80) (envelope-from ) id 1TZ20j-0000MK-I5 for caml-list@inria.fr; Thu, 15 Nov 2012 17:09:49 +0100 Date: Thu, 15 Nov 2012 17:09:49 +0100 From: rixed@happyleptic.org To: caml-list@inria.fr Message-ID: <20121115160949.GA1084@securactive.lan> References: <838ab953-d33f-42d5-a363-050217c1b883@googlegroups.com> <20121115092037.GC26744@securactive.lan> <50A4BD0A.9040804@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50A4BD0A.9040804@wp.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] Re: Preferred layout for new packages -[ Thu, Nov 15, 2012 at 10:59:38AM +0100, Dawid Toton ]---- > On 11/15/2012 10:20 AM, rixed@happyleptic.org wrote: > >-[ Thu, Nov 15, 2012 at 12:13:58AM -0800, vincent.hugot@gmail.com ]---- > >>I for one like the (short-)tests-as-comments approach: being near the > >>function, they serve as short specifications, and being comments, they don't > >>alter the compilation process in the least. > > > >The only drawback I saw is that adding or modifying a test triggers the > >recompilation of the whole unit when using makefiles (since the file changed). > >I wonder if there exist a tool that's able to find out that since only comments > >where changed the module need not be recompiled. Maybe omake can do this ? > > > > You usually want correct line numbers to be preserved in the > executable for e.g. assertion failures. So, in general, it's not > possible to save time in the way you describe unless the compiler > itself works in an incremental manner. > Dawid Good catch. Thank you.