[Caml-list] Re : Findlib fails to build on OS X Leopard

2008-07-16 Thread MONATE Benjamin 205998
Hi, > My colleague is trying to install GODI but it's choking on findlib > 1.2.2. Specifically, the command used to locate the std. lib. in > get_stdlib is not compatible with OS X's sed: > > ocamlc -where | sed "s/\r//" || ... We had the same problem in Frama-C configure.in files and fixed it b

Re: [Caml-list] Q: type conversion with Gdome

2008-07-16 Thread Yang Shouxun
On Wednesday 16 July 2008 17:44:18 Claudio Sacerdoti Coen wrote: > Dear Yang, > > not every node is an element. Thus you need to use dinamic cast: > > let node = ... in > (* next line may raise GdomeInit.DOMCastException *) > let element = Gdome.element_of_node node in > ... Thank you very muc

[Caml-list] Findlib fails to build on OS X Leopard

2008-07-16 Thread Nathaniel Gray
My colleague is trying to install GODI but it's choking on findlib 1.2.2. Specifically, the command used to locate the std. lib. in get_stdlib is not compatible with OS X's sed: ocamlc -where | sed "s/\r//" || ... The version of sed included with Leopard doesn't support backslash-escapes like \r

Re: [Caml-list] Troublesome nodes

2008-07-16 Thread Jacques Garrigue
From: Jeremy Yallop <[EMAIL PROTECTED]> > Dario Teixeira wrote: > > type ('a, 'b) t = private 'a constraint 'a = [< super_node_t ] > > I don't think this is quite what you want yet, although it's getting > close! > > The first problem is that phantom types must be implemented in terms > of ab

Re: [Caml-list] Troublesome nodes

2008-07-16 Thread Dario Teixeira
Hi, > The first problem is that phantom types must be implemented in terms > of abstract (or at least generative) types. A simple example to > illustrate the problem: the types > > int t > and > float t > > denote the same type given the alias declaration > > type 'a t = unit >

Re: [Caml-list] memory usage

2008-07-16 Thread Jean Krivine
I agree. I should use Int64 instead of just int, but I still think that the application (Random.int max_int) should not be exception prone. Since max_int is architecture dependent, then so should be Random.int no? But you point is well taken. Thanks again J On Wed, Jul 16, 2008 at 2:44 PM, Andre

Re: [Caml-list] memory usage

2008-07-16 Thread Andres Varon
On Jul 16, 2008, at 2:07 PM, Jean Krivine wrote: Good news, I just tested the patch and it works great with my application! I just had to modify the module random since a call to (Random.int max_int) may raise and exception (it is made for 32 bits integers). So I guess that modification shou

Re: [Caml-list] Re: thousands of CPU cores

2008-07-16 Thread Erik de Castro Lopo
Richard Jones wrote: > On a different, but not unrelated topic, Debian have a cross-compiler > (based on MinGW) so you don't need to leave the safety & comfort of > Linux in order to build Windows DLLs and binaries. > > http://packages.debian.org/search?keywords=mingw32 I am the main author of

Re: [Caml-list] memory usage

2008-07-16 Thread Jean Krivine
Good news, I just tested the patch and it works great with my application! I just had to modify the module random since a call to (Random.int max_int) may raise and exception (it is made for 32 bits integers). So I guess that modification should be included in the patch. Thanks a lot Andres. Jean

Re: [Caml-list] Re: thousands of CPU cores

2008-07-16 Thread Gerd Stolpmann
Am Mittwoch, den 16.07.2008, 10:59 +0200 schrieb Michaël Grünewald: > Gerd Stolpmann wrote: > > > Well, there's now SFU for Windows (but only for XP Professional and > > Windows 2003, not for XP Home and Vista, AFAIK). That's a cool solution > > when you want to run Win32 and POSIX programs on th

Re: [Caml-list] memory usage

2008-07-16 Thread Jean Krivine
Great thanks! J On Wed, Jul 16, 2008 at 10:16 AM, Andres Varon <[EMAIL PROTECTED]> wrote: > > On Jul 15, 2008, at 3:38 PM, Jean Krivine wrote: > >> I'd be glad to try the patch if you could post it somewhere! > > I have posted it in: > > http://research.amnh.org/~avaron/ocaml/ > > best, > > Andre

Re: [Caml-list] memory usage

2008-07-16 Thread Andres Varon
On Jul 15, 2008, at 3:38 PM, Jean Krivine wrote: I'd be glad to try the patch if you could post it somewhere! I have posted it in: http://research.amnh.org/~avaron/ocaml/ best, Andres J On Tue, Jul 15, 2008 at 3:31 PM, Andres Varon <[EMAIL PROTECTED]> wrote: Hello Jean, There is no

Re: [Caml-list] Another question about modules

2008-07-16 Thread Andre Nathan
On Wed, 2008-07-16 at 03:54 +0200, Martin Jambon wrote: > I hope you'll find this useful > :-) It was, thanks :) I am translating this code to ocaml, and the original version is written in an object-oriented fashion, so there's naturally an impedance mismatch on the translation... I'll wait a bit

Re: [Caml-list] Another question about modules

2008-07-16 Thread Daniel Bünzli
Le 16 juil. 08 à 03:05, Ashish Agarwal a écrit : It seems the circular dependency error is given only when you do ocamlbuild a.native Some errors are reported differently when you use ocamlbuild because of its automatic dependency analysis, I started a list here [1]. Daniel [1] http://b

Re: [Caml-list] Re: thousands of CPU cores

2008-07-16 Thread Richard Jones
On a different, but not unrelated topic, Debian have a cross-compiler (based on MinGW) so you don't need to leave the safety & comfort of Linux in order to build Windows DLLs and binaries. http://packages.debian.org/search?keywords=mingw32 Fedora are going to offer a MinGW cross-compiler and li

Re: [Caml-list] Q: type conversion with Gdome

2008-07-16 Thread Claudio Sacerdoti Coen
Dear Yang, not every node is an element. Thus you need to use dinamic cast: let node = ... in (* next line may raise GdomeInit.DOMCastException *) let element = Gdome.element_of_node node in ... Cheers,

[Caml-list] Q: type conversion with Gdome

2008-07-16 Thread Yang Shouxun
Hello everyone, I've been using Gdome for some time now and I always find it difficult to deal with the type system. Here is the issue: The document class has a method getElementsByTagName : tagname:Gdome.domString -> Gdome.nodeList and from a nodeList object I can only get Gdome.node obj

Re: [Caml-list] Re: thousands of CPU cores

2008-07-16 Thread Michaël Grünewald
Gerd Stolpmann wrote: Well, there's now SFU for Windows (but only for XP Professional and Windows 2003, not for XP Home and Vista, AFAIK). That's a cool solution when you want to run Win32 and POSIX programs on the same system, and maybe an alternative to using virtualization. But it is nothing

[Caml-list] JFLA 2009: 1er appel aux communications

2008-07-16 Thread Alan Schmitt
(This message is intentionally written in French) * MERCI DE FAIRE CIRCULER * MERCI DE FAIRE CIRCULER * MERCI DE FAIRE CIRCULER * PREMIER APPEL AUX COMMUNICATIONS PREMIER APPEL AUX COMMUNICATIONS JFLA'2009 (http://jfla.inria.fr/) Journées Fran