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 2858D7F91C for ; Tue, 24 May 2016 01:09:16 +0200 (CEST) IronPort-PHdr: 9a23:48gfIhIVaD/yCzp4N9mcpTZWNBhigK39O0sv0rFitYgVK//xwZ3uMQTl6Ol3ixeRBMOAu6MC0Lud6v++EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35XxjLH5osKNKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46Fp34d6XK77Z6U1S6BDRHRjajhtpZ7djgTYVQaE+lcbV2wXlFIIX1mEv1nGWcLduy37u+5K8r2cL8n3BeQ4UDKj4qMtQgLljjUDNhY06nvels1pka8dqxL39DJlxIuBT4ifLvtzeuvmdtMXX2dbFpJeXiZbA464KZAED+cbMPxwoIz0pl9Iphy7U1r/TNjzwyNF0yellZYx1P4sRESbhQE= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=gabriel.scherer@gmail.com; spf=Pass smtp.mailfrom=gabriel.scherer@gmail.com; spf=None smtp.helo=postmaster@mail-ig0-f178.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.213.178; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.213.178 as permitted sender) identity=mailfrom; client-ip=209.85.213.178; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@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-ig0-f178.google.com) identity=helo; client-ip=209.85.213.178; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-ig0-f178.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DTAACajENXf7LVVdFcg1U4fQapAYVlixUBDYF3IoVvAoEwBzgUAQEBAQEBAQERAQEJCwsJIS+CLYIWAQEEEhEdARsSCwEDDAYFCw0CAgkdAgIiAREBBQEKBAENBhMIChCHcgEDFw6kNYExPjGLO4FqglgFiBQKGScDClKDVAEBAQEGAQEBAQEaAgYQcYUmhE2EP4MBglkFhkEMhxiKUoFWhCqIIII3jGWODRIegQ8eAQGCOw0cgWcgMolRAQEB X-IPAS-Result: A0DTAACajENXf7LVVdFcg1U4fQapAYVlixUBDYF3IoVvAoEwBzgUAQEBAQEBAQERAQEJCwsJIS+CLYIWAQEEEhEdARsSCwEDDAYFCw0CAgkdAgIiAREBBQEKBAENBhMIChCHcgEDFw6kNYExPjGLO4FqglgFiBQKGScDClKDVAEBAQEGAQEBAQEaAgYQcYUmhE2EP4MBglkFhkEMhxiKUoFWhCqIIII3jGWODRIegQ8eAQGCOw0cgWcgMolRAQEB X-IronPort-AV: E=Sophos;i="5.26,358,1459807200"; d="scan'208";a="219417915" Received: from mail-ig0-f178.google.com ([209.85.213.178]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 24 May 2016 01:09:15 +0200 Received: by mail-ig0-f178.google.com with SMTP id fh2so1648169igd.1 for ; Mon, 23 May 2016 16:09:15 -0700 (PDT) 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-transfer-encoding; bh=VM5g1pj7vC+ev71xZ/FSw5dz8Ij25fV9ZcGOgFYB/+g=; b=nSSzNfggwBkJF3xN+NttCNvCV2eABMAoRsTZv2SLh0RqJthM4WO7wvNvAeA+G6bLCz FvkfONRrUVly86ZjC47GMx7u+a7IgYafh8CXtsujk3/oiSTWAPYN1cSIqylSsnLtq19g dT3lL6X80xB2FzxWNe6yx5ctdSWXg8+o4UILNIBdn2h3bKyVB3rRRRi5ixMyY5gXD2ZW S7+ohJEGKqdKrzz43fD3sVGRYms12J9oa90O6Q2eg8Q8V/invJr39m1g4rHnKxDpHrWc B600MeuUOJ/p58WPgQTuwCRm15sUlO5hKUAbEQzVO8ykobJg5kFVbNAPjKiquSVZdwJs /xXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VM5g1pj7vC+ev71xZ/FSw5dz8Ij25fV9ZcGOgFYB/+g=; b=dOpPPhdlEYFRTA/3Fv+QSW6flMKC552hhx0DdzV5gp+WiutEfZl8OfKRvZBuxhegvZ 5gxMurMy/XTs1z8VrRqHD3zQ6wkDUG4o5OQ1tUypxwUZRXlLK8Owo2zZlWGJYnKN3D7n ItTU62jUpDwGsf1qytG1efY6mOv1neZu/ocr+BzSxDHCuNg1nHYroYrAAFyeew2rY4t9 ZVAXxcdH+bNmciEq7DCrs48sNLrY9Tn2LGAhlgRVkwU+7T1BBQCvla9rhCl+YRTtZXAd YjsB1iZw/LViflk4ZSA0Wm4aSzg3HkM2l+jSiR6vmbdS46m3Ux7wgHEZpudbvxyEYyYr yS3A== X-Gm-Message-State: AOPr4FV7KOiRxSYEHMxdHIS1/wAt+X6AcyiLycONjm2/m+uFZOZCEYd45Kfe0kZVThC/pt/xZq75OfBaZ9p+lA== X-Received: by 10.50.37.147 with SMTP id y19mr14550700igj.42.1464044953880; Mon, 23 May 2016 16:09:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.89.195 with HTTP; Mon, 23 May 2016 16:08:34 -0700 (PDT) In-Reply-To: References: <61A649C2ACD24F2297F2FEC72F2969DF@erratique.ch> From: Gabriel Scherer Date: Mon, 23 May 2016 19:08:34 -0400 Message-ID: To: =?UTF-8?Q?Daniel_B=C3=BCnzli?= Cc: Martin DeMello , OCaml List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] [ANN] Bos 0.1.0 There are some parts of the ocamlbuild internals that have their own implementations of file path handling and quoting/escaping, and that are a bit too arcane to my taste. (I tend to not change them because they mostly work well, but they come back to bite us once in a while.) When I got the announcement for Bos, I indeed thought that it could be a nice idea to have a look. (I probably won't do it myself in the short term, my development time is very constrained right now; plus the fact that I cannot test on Windows myself makes me wary of changing those parts of the codebase.) On Mon, May 23, 2016 at 6:43 PM, Daniel B=C3=BCnzli wrote: > Le mardi, 24 mai 2016 =C3=A0 00:17, Martin DeMello a =C3=A9crit : >> Do you think this would be a good route towards getting ocamlbuild worki= ng seamlessly on windows? > > Well bos does not do any kind of magic to work well on windows except avo= iding what needs to be avoided, namely fork(2). Contrary to what it's name = suggests the Unix library is not a bad OS abstraction layer and works quite= well on windows; even more so with the work David Allsopp put into 4.03. > > At the moment, but it may change in the future, bos is only a more lighte= r and simpler way to work with the Unix library correctly. Unix programming= can be tricky and quite verbose, e.g. to setup program pipelines. Also not= e that bos' simpler interface may be not be suitable for all programs, i.e.= bos doesn't replace Unix. > > IIRC (Gabriel may want to comment) to get ocamlbuild working seamlessly o= n windows one needs to get rid of fork, a few pointless shellouts and make = people stop use Sh command specs in their plugins. So I don't think bos nec= essarily helps here, using Unix conservatively in ocamlbuild should do. > > Best, > > Daniel > > > > -- > 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