caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Edgar Friendly <thelema314@gmail.com>
To: Tiphaine Turpin <Tiphaine.Turpin@irisa.fr>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Batteries and portability
Date: Thu, 11 Jun 2009 09:10:47 -0500	[thread overview]
Message-ID: <4A311067.5010905@gmail.com> (raw)
In-Reply-To: <4A30CD39.1010804@irisa.fr>

Tiphaine Turpin wrote:
> Dear list,
> 
> When trying to execute a compiled program on another machine, I get the
> following error:
> 
> Fatal error: exception
> Sys_error("/usr/share/camomile/database/general_category.mar: No such
> file or directory")
> 
> I don't think I'm using camomille and I'm not compiling with -linkall,
> however linking takes a lot of time in my opinion (~15 seconds for about
> 2000loc). Is it the expected behavior of batteries to always expect this
> file (and maybe others) to be present ?
> 
> 
> Tiphaine
> 
Batteries uses camomile (one L) for its UTF8 ropes.  It is the expected
behavior for it to load those files on startup even if one doesn't use
ropes.  We'd love for this kind of thing to be optimized out by the
compiler, but this might be one case where the compiler can't tell
whether the side-effects of module initialization (reading from files)
can be elided.

If someone has a solution for this, we'd love to solve this problem in a
not-too-hackish way, but I worry that a non-camomile build of batteries
is the only way to eliminate this dependency.  Of course it's possible
to depend on files stored elsewhere, but camomile is quite set up to use
external files for its unicode conversion tables.

E


  reply	other threads:[~2009-06-11 14:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11  9:24 Tiphaine Turpin
2009-06-11 14:10 ` Edgar Friendly [this message]
2009-06-11 14:23   ` [Caml-list] " Tiphaine Turpin
2009-06-11 15:42   ` David MENTRE
2009-06-12 12:09     ` David Rajchenbach-Teller
2009-06-11 15:46 ` dmitry grebeniuk
2009-06-11 16:38   ` Tiphaine Turpin
2009-06-11 15:59 ` dmitry grebeniuk
2009-06-12 13:08   ` Tiphaine Turpin
2009-06-13 17:50     ` Peng Zang
2009-06-13 21:44       ` dmitry grebeniuk

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=4A311067.5010905@gmail.com \
    --to=thelema314@gmail.com \
    --cc=Tiphaine.Turpin@irisa.fr \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).