Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Adrien Nader <adrien@notk.org>
To: Alain Frisch <alain@frisch.fr>
Cc: Xavier Leroy <Xavier.Leroy@inria.fr>, caml-list@inria.fr
Subject: Re: [Caml-list] Accelerating compilation
Date: Mon, 9 Sep 2013 19:08:30 +0200	[thread overview]
Message-ID: <20130909170830.GA7161@notk.org> (raw)
In-Reply-To: <522D8605.1050603@frisch.fr>

On Mon, Sep 09, 2013, Alain Frisch wrote:
> On 09/06/2013 06:30 PM, Xavier Leroy wrote:
> >- Make sure the .opt compilers (ocamlc.opt, ocamlopt.opt) are
> >   installed.  They are significantly faster than their non-.opt
> >   counterparts, and some Linux distros package the .opt compilers
> >   separately and don't install them by default.
> 
> Shouldn't we change the official installation procedure (from
> sources), so that the .opt compilers are installed as "ocamlc" and
> "ocamlopt" (not "ocamlc.opt", "ocamlopt.opt") when they are
> available?  And suggest to do the same for distribution packages?
> It would make the life of other projects easier if they could just
> call "ocamlc" without having to check if "ocamlc.opt" is available
> or not.
> 
> Or are there compelling arguments in favor of using the bytecode
> version of ocamlc/ocamlopt?

That sounds like the wrong place to fix this and a possible
incompatibility with quite a lot of code. Ocamlfind already handles it
nicely; the only thing missing is configuration.

Such things depend distribution policies. Bytecode is often smaller or
maybe that the native code generation for a given platform fails in a
subtle way.

If you make the .opt version unavailable, you'll break several build
scripts which don't use ocamlfind. You'll also break ocamlfind installs
which are set to use the .opt versions. You could make a symlink but
that won't work on Windows and I'm sure there will be many more issues.

Moreover, after having spent pretty much all my free time during the
past 3 months in the build system of the compiler, I strongly believe
that the fewer changes happen there, the better (when talking about my
sanity at least :) ).

Btw, considering that cross-compilation support will be in trunk very
soon, it's better not to assume anything about what's installed and rely
blindly on ocamlfind calling the right binaries (that or autotools).

-- 
Adrien Nader

  parent reply	other threads:[~2013-09-09 17:08 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06 13:56 Romain Bardou
2013-09-06 14:55 ` Markus Mottl
2013-09-06 15:19   ` Romain Bardou
2013-09-06 15:27     ` Gabriel Scherer
2013-09-06 15:33       ` Alain Frisch
2013-09-06 20:51     ` Fabrice Le Fessant
2013-09-09  7:44       ` Romain Bardou
2013-09-11 13:00       ` Francois Berenger
2013-09-11 13:46         ` Wojciech Meyer
2013-09-12  1:23           ` Francois Berenger
2013-09-12 15:15             ` Jacques Le Normand
2013-09-30  8:06       ` [Caml-list] from oasis to obuild (original subject was Re: Accelerating compilation) Francois Berenger
2013-09-30  8:18         ` Török Edwin
2013-09-30  9:00         ` Fabrice Le Fessant
2013-09-30  9:13           ` Anil Madhavapeddy
2013-09-30 11:13             ` Alain Frisch
2013-09-30 11:19               ` Anil Madhavapeddy
2013-09-30 11:27                 ` Alain Frisch
2013-09-30 11:36                   ` Anil Madhavapeddy
2013-09-30  9:18           ` Francois Berenger
2013-09-30 14:11         ` Sylvain Le Gall
2013-10-01  0:57           ` Francois Berenger
2013-10-01 12:25             ` Sylvain Le Gall
2013-09-07 11:37     ` [Caml-list] Accelerating compilation Matej Kosik
2013-09-08  6:37     ` Francois Berenger
2013-09-06 15:18 ` Gabriel Scherer
2013-09-06 15:28   ` Romain Bardou
2013-09-06 16:04   ` Markus Mottl
2013-09-06 16:30 ` Xavier Leroy
2013-09-07 19:13   ` Wojciech Meyer
2013-09-07 21:42     ` Jacques-Pascal Deplaix
2013-09-08  1:59       ` Markus Mottl
2013-09-09  7:59   ` Romain Bardou
2013-09-09  8:25   ` Alain Frisch
2013-09-09  8:35     ` Francois Berenger
2013-09-09 10:13     ` Anil Madhavapeddy
2013-09-09 17:08     ` Adrien Nader [this message]
2013-09-09 17:17       ` Gabriel Kerneis
2013-09-10  2:01     ` oleg
2013-09-10 10:21       ` Gerd Stolpmann
2013-09-10 16:15       ` Adrien Nader
2013-09-10 16:46       ` Xavier Leroy
2013-09-10 16:53         ` Adrien Nader
2013-09-10 17:43           ` ygrek
2013-09-06 18:45 ` Martin Jambon
2013-09-09  8:15   ` Romain Bardou
2013-09-09  8:36     ` Francois Berenger
2013-09-09  8:41       ` Thomas Refis
2013-09-09 17:32     ` Aleksey Nogin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130909170830.GA7161@notk.org \
    --to=adrien@notk.org \
    --cc=Xavier.Leroy@inria.fr \
    --cc=alain@frisch.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox