Re: [Caml-list] exception not registered.Abandon

2010-03-15 Thread Olivier Andrieu
On Sat, Mar 13, 2010 at 20:33, Florent Monnier wrote: > Le samedi 13 mars 2010 19:55:37, vous avez écrit : >> On Sat, Mar 13, 2010 at 07:36:16PM +0100, Florent Monnier wrote: >> > > > I have compiled a program using the native compiler, then when I run >> > > > the executable I get this error mess

Re: [Caml-list] gc overhead

2010-03-03 Thread Olivier Andrieu
On Mon, Mar 1, 2010 at 01:16, Warren Harris wrote: > I would like to determine what percentage of my application's cpu time is > spent in the garbage collector (for tuning purposes, but also just to > monitor the overhead). Is there any way to obtain this information short of > using gprof? Additi

Re: [Caml-list] 2147483648l < 2147483647l

2010-01-05 Thread Olivier Andrieu
On Tue, Jan 5, 2010 at 13:59, Matej Kosik wrote: > Hello, > > I am sorry, I have a stupid question. > I would like to ask if this: > >        # 2147483648l < 2147483647l;; >        - : bool = true > > should not regarded as a bug. In my project I need Int32 value and above > behavior surprised me.

Re: [Caml-list] How to read different ints from a Bigarray?

2009-10-28 Thread Olivier Andrieu
On Wed, Oct 28, 2009 at 14:54, Goswin von Brederlow wrote: > Hi, > > I'm working on binding s for linux libaio library (asynchron IO) with > a sharp eye on efficiency. That means no copying must be done on the > data, which in turn means I can not use string as buffer type. hmm I think you could

Re: [Caml-list] Pre-processor sub-process

2009-09-28 Thread Olivier Andrieu
Hi, On Sun, Sep 27, 2009 at 22:58, Matthieu Dubuget wrote: > Hello, > > I'm trying to have bin-prot compiled with mingw version of OCaml with > the original OCamlMakefile. > > This fails on my computer. > > I reproduced the problem here: > > On linux, there is no problem: > > On cygwin: > $ uname

Re: [Caml-list] Conditional compilation

2009-08-18 Thread Olivier Andrieu
On Tue, Aug 18, 2009 at 04:37, Edgar Friendly wrote: > I'm starting to think that optcomp is just a mismatch for what I'm > trying to do, and I'm trying to use the wrong tool for the job.  That > said, I don't think it's the best solution (especially with already long > compile times for the projec

Re: [Caml-list] Caml on CentOS: problem with -custom option

2009-06-09 Thread Olivier Andrieu
On Tue, Jun 9, 2009 at 16:01, Sébastien Hinderer wrote: > > Just out of curiosity: does anybody see what could cause the -lcurses > flag to be present when -custom is specified ? the ocaml bytecode runtime includes some functions that uses curses so that the compiler can display improved error mes

Re: [Caml-list] Strange, occasional build failure with ocamlmklib / ranlib

2009-06-02 Thread Olivier Andrieu
On Tue, Jun 2, 2009 at 16:46, Richard Jones wrote: > I just want to post this here in case it rings a bell with anyone: > > ocamlfind ocamlc -c guestfs.mli > ocamlfind ocamlc -c guestfs.ml > ocamlfind ocamlopt -c guestfs.ml > ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmo > -L

Re: [Caml-list] Sys.command and quotes

2009-05-05 Thread Olivier Andrieu
On Tue, May 5, 2009 at 10:58, Matthieu Dubuget wrote: > Hello, > > I have a problem with mingw version of ocaml (compiled by hand, or with > godi). > > 1- Is the following reproducible? > > 2- If yes, do you consider this as a bug? > > It seems that in "Sys.command s", if the first and the last ch

Re: [Caml-list] in_channel_of_descr questions

2009-03-25 Thread Olivier Andrieu
Hi, On Wed, Mar 25, 2009 at 13:37, Christoph Bauer wrote: > Hello, > > I have some questions concerning in_channel_of_descr: my program > has a list of sockets. I need the sockets itself for a select-Loop > and an in_channel for the convenient input_line function. At the end, > which one should i

Re: [Caml-list] Licensing of the OCaml autoconf macros

2009-01-23 Thread Olivier Andrieu
Hi guys, On Thu, Jan 22, 2009 at 12:40, Richard Jones wrote: > Stefano Zacchiroli and I are collecting autoconf macros related to > OCaml into a central project: > > http://forge.ocamlcore.org/projects/ocaml-autoconf/ > > http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=ocaml-autoconf/ocaml-autoc

Re: [Caml-list] caml_alloc + 64 bits - caml_alloc.h

2009-01-13 Thread Olivier Andrieu
On Tue, Jan 13, 2009 at 10:37, malc wrote: > P.S. This whole value->intnat->long makes me wonder how OCaml is > ever supposed to work on LLP64... It does already, since 3.10. From byterun/config.h : /* Win64 model: IL32LLP64 */ typedef ARCH_INT64_TYPE intnat; where ARC_INT64_TYPE is ei

Re: [Caml-list] conjunctive type in polymorphic variants

2008-10-09 Thread Olivier Andrieu
Hi, On Thu, Oct 9, 2008 at 06:15, Conglun Yao <[EMAIL PROTECTED]> wrote: > Sorry, I can't fully understand the source code, but it seems we can > only define a polymorphic variant with only one additional type > declaration, like > `A of int or `A of (int * int) > rather than `A o

Re: [Caml-list] Strange behaviour of string_of_float

2008-06-23 Thread Olivier Andrieu
On Mon, Jun 23, 2008 at 10:45, David Allsopp <[EMAIL PROTECTED]> wrote: > All that said, the values given by > string_of_float cannot always be fed back to float_of_string anyway (e.g. > float_of_string (string_of_float nan)) euh, why do you say that ? it does : # float_of_string (string_of_flo

Re: [Caml-list] Strange behaviour of string_of_float

2008-06-23 Thread Olivier Andrieu
On Mon, Jun 23, 2008 at 10:32, Mattias Engdegård <[EMAIL PROTECTED]> wrote: >>My intent is to extract an ASCII representation of an OCaml float >>value so that it can be used to recreate *exactly* the same value, at >>least on the same architecture. > > A somewhat more portable (and readable, maybe