Hi all
I am implementing a language by generating OCaml code for input source
and using the OCaml native code compiler. However, I've run into a
strange problem.
On using my code generator on a large program, I generate a file
containing about 75K lines of OCaml. The native code compiler
Hi folks
I was performing a little experiment to try and quantify some of the
overhead of memory allocation in OCaml. Here is a the kind of little
program that I am using for timings:
let rec alloc3 n l =
if n = 0 then l
else alloc3 (n-1) ((1,2,n)::l)
The alloc3 function allocates a
Thanks Richard!
I added my C code to array.c (in the development version which I got
from CVS), and added an external declaration in array.ml. However, I now
get the following compiler error:
File _none_, line 1, characters 0-1:
Error: Error while linking boot/stdlib.cma(Array):
The external
);
}
}
CAMLreturn (res);
}
Adrien wrote:
You can compile with the -unsafe flag. If you're using arrays a lot,
it can easily speed your program by 50%. If your program is array
based, the speedup can be even more important.
2008/7/24 Raj Bandyopadhyay [EMAIL PROTECTED]:
Hi
I have
Hi
I have an application which copies a lot of (small) OCaml arrays using
the Array library (Array.sub and Array.blit) functions. This is turning
out to be extremely expensive.
Is there any general way/trick to reduce the cost of this kind of
operation? I haven't found a way not to copy as
Hi OCaml folk
I apologize if I've been asking too many questions on this list
recently, but I'm working on a heavy OCaml application and need help
sometimes.
I am having a disagreement with a colleague about how the equality
operators in OCaml work and am trying to resolve it conclusively.
Hi ocaml folks
I have a C program that makes callbacks to the OCaml runtime via the
callback_exn() mechanism. Unfortunately, the OCaml code is raising some
exception. It seems to be one of the built-in OCaml exceptions, and not
something that I have defined in my OCaml code.
I would like to