[Caml-list] ocamldebug with GDB

2008-08-12 Thread Rob Stites
I have used Eclipse with OcamlDE but I would like to use DDD as a interface with GDB debugging Ocaml code. Is it even possible? If so, can you share your experience? Thanks. Rob Stites ___ Caml-list mailing list. Subscription management: http://y

[Caml-list] uintlib installation?

2008-08-12 Thread Martin Bishop
I grabbed the latest uintlib from OCamlForge, but I'm unsure how to install it so that I can use it in an OCaml program. I made the proper files (by running "ocaml native.ml"), but I'm not sure where to place them (and apparently you have to run the function install first? I'm not sure how to load

Re: [Caml-list] Record field label locality

2008-08-12 Thread blue storm
It might be a bit off-topic, but if you want to ease the syntaxic pain only, you can use the pa_openin ( http://alain.frisch.fr/soft.html#openin ) camlp4 extension : open Graph in { g with nodes = foo } ___ Caml-list mailing list. Subscription manageme

Re: [Caml-list] Record field label locality

2008-08-12 Thread Brighten Godfrey
On Aug 12, 2008, at 5:12 PM, Edgar Friendly wrote: Brighten Godfrey wrote: Actually, what I want seems to be the way OCaml treats methods in objects: given an object, you can name the method directly without mentioning its module. I can write a function let f x = x#some_method "argument"

Re: [Caml-list] Record field label locality

2008-08-12 Thread Edgar Friendly
Brighten Godfrey wrote: > Actually, what I want seems to be the way OCaml treats methods in > objects: given an object, you can name the method directly without > mentioning its module. I can write a function > > let f x = x#some_method "argument" > > where `x' might be an object defined in

Re: [Caml-list] Record field label locality

2008-08-12 Thread Brighten Godfrey
On Aug 10, 2008, at 12:38 PM, Jon Harrop wrote: On Sunday 10 August 2008 11:04:37 Brighten Godfrey wrote: Hi, Here's something that I've wondered about for years; maybe someone here can enlighten me. One of the few major annoyances in OCaml code style is that if I define a record in one modul

Re: [Caml-list] Tuple allocation overhead

2008-08-12 Thread Matthew William Cox
On Tue, Aug 12, 2008 at 11:08:58AM -0500, Raj Bandyopadhyay wrote: > I was wondering if someone has a good explanation for this. I assume it > has to do with some overhead of malloc, but I'm not sure. I doubt it's anything to do with malloc. The ocaml runtime does its own memory management, whic

Re: [Caml-list] camlp4: How to make a record expression w/o useless "with"

2008-08-12 Thread Richard Jones
On Mon, Aug 11, 2008 at 05:49:25PM +0100, Richard Jones wrote: > I have some code like the minimal example below. Notice the > '{ () with ... }' > record expression. If I remove the '() with' part, it fails to > compile. For reference, Bluestorm found an answer to my question, by building the

Re: [Caml-list] Tuple allocation overhead

2008-08-12 Thread Gerd Stolpmann
Raj Bandyopadhyay said: > 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: This experiment does not make much sense. Ocaml has its own memory management f

[Caml-list] ocamlc: how to keep sources and objects in different directories?

2008-08-12 Thread Roberto Bagnara
Hi there, it seems that `ocamlc' wants to create the .cmo file in the same directories as the .ml file. More specifically I observe this: $ ocamlc -g -c -I +gmp -I ../../../interfaces/OCaml ../../../interfaces/OCaml/ppl_ocaml_types.ml I/O error: ../../../interfaces/OCaml/ppl_ocaml_types.cmo:

[Caml-list] Tuple allocation overhead

2008-08-12 Thread Raj Bandyopadhyay
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 tu