[Caml-list] Compiler bug with bigarray

2009-11-04 Thread Goswin von Brederlow
Hi, I just finished adding a (int, int31_elt) Bigarray.kind for 4 byte taged integers independent of the architecture to Bigarray. While testing it I noticed that the generated assembler consists of this: open Bigarray let get_foo (a : (int, int31_elt, c_layout) Array1.t) x = Array1.unsafe_get a

Re: [Caml-list] AST versus Ocaml

2009-11-04 Thread Jon Harrop
On Wednesday 04 November 2009 22:21:24 Jan Kybic wrote: > > and crashes rather than performance. Moreover, I would note that the > > performant ATS code out there seems to go to *great* lengths to avoid the > > GC whenever possible, so I suspect it is extremely slow in the context of > > heavily al

Re: [Caml-list] AST versus Ocaml

2009-11-04 Thread Jan Kybic
> I haven't found the time to give ATSLang a serious test drive but I had a > brief conversation with Hongwei Xi about his work and goals. He is into > systems programming, which is closely related to high performance programming > in the context of serial code but foundations for easy parallel

Re: [Caml-list] AST versus Ocaml

2009-11-04 Thread Jon Harrop
On Wednesday 04 November 2009 15:42:42 Jan Kybic wrote: > > Shivkumar Chandrasekara said: > >I switched from OCaml to ATS for numerical computations. I did this > >because I was thinking of switching to some low-level language anyway > >(for efficiency). I think ATS is a good fit for OCaml types w

[Caml-list] [ANN] open-sourcing of the XAPI toolstack

2009-11-04 Thread Thomas Gazagnaire
We are pleased to announce the open-sourcing of the XAPI toolstack, written in OCaml, as used in the Citrix XenServer product line. The XAPI toolstack is licensed under the LGPL v2.1 with a special static linking exception. **context** Xen [1] is an open-source type 1 hypervisor, providing the

Re: [Caml-list] AST versus Ocaml

2009-11-04 Thread Jan Kybic
> Shivkumar Chandrasekara said: >I switched from OCaml to ATS for numerical computations. I did this >because I was thinking of switching to some low-level language anyway >(for efficiency). I think ATS is a good fit for OCaml types who also >want low-level control of memory and CPU. (You can alwa

Re: [Caml-list] AST versus Ocaml

2009-11-04 Thread malc
On Wed, 4 Nov 2009, Jan Kybic wrote: > Dear all, > > I am an Ocaml user but execution speed is very important for me, so I am > constantly looking for ways to make my programs faster, if possible > without sacrificing the high-level language benefits (genericity, > garbage collection, safety). I

Re: [Caml-list] AST versus Ocaml

2009-11-04 Thread Kevin Cheung
Unfortunately, I don't have much to say about AST at the moment. But if it is as fast as it claims to be, then it might do what Jon Harrop is trying to achieve with HLVM. Kevin. On Wed, 4 Nov 2009, Jan Kybic wrote: I am an Ocaml user but execution speed is very important for me, so I am con

[Caml-list] AST versus Ocaml

2009-11-04 Thread Jan Kybic
Dear all, I am an Ocaml user but execution speed is very important for me, so I am constantly looking for ways to make my programs faster, if possible without sacrificing the high-level language benefits (genericity, garbage collection, safety). I have just come across a language called AST (http

Re: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread Matthieu Dubuget
Message original Sujet : Re: [Caml-list] Howto execute a command without the "cmd" windows opening? De : Alain Frisch Pour : matthieu.dubu...@gmail.com Date : Wed Nov 04 2009 13:22:01 GMT+0100 (CET) > Matthieu Dubuget wrote: >> Is there any way to run a program and get the proces

Re: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread Alain Frisch
Matthieu Dubuget wrote: Is there any way to run a program and get the process status without using cmd.exe ? Did you try Unix.create_process? Alain ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/

Re: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread Adrien
That's a bit hackish but you can also try to change the COMSPEC environment variable which points to cmd.exe by default. --- Adrien Nader ___ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Arc

RE: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread David Allsopp
> If i find a way to read the exit status of the process… Pass a PROCESS_INFORMATION structure to CreateProcess (in order to get the hProcess for the process you created) and then use GetExitCodeProcess[1]. You can use WaitForSingleObject passing hProcess to it if you need to block until the pr

Re: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread Matthieu Dubuget
>> It's been on my todo list to wrap the CreateProcess Win32 API function[1] in >> a C stub function - someone else may have done this (possibly in >> ocaml-win32[2] or something like that), though. The API is very simple (most >> parameters will be NULL) so the stub would not take long to write.

Re: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread Matthieu Dubuget
> It's been on my todo list to wrap the CreateProcess Win32 API function[1] in > a C stub function - someone else may have done this (possibly in > ocaml-win32[2] or something like that), though. The API is very simple (most > parameters will be NULL) so the stub would not take long to write. > >

RE: [Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread David Allsopp
> The problem is that a "c:\windows\system32\cmd.exe" windows pops up: > I'd like to avoid this. Both Sys.command and Unix.system use cmd in order to provide command line parsing (it gives the closest equivalent to the Unix version - except for the usual quoting weirdness of cmd as compared to bas

[Caml-list] Howto execute a command without the "cmd" windows opening?

2009-11-04 Thread Matthieu Dubuget
Hello, I'm trying to run a separated program from an ocaml program (linked with "-subsystem windows" flexlink option). I'm using mingw flavour of Ocaml. The program to run separately is also an ocaml program, linked with "-subsystem windows". The problem is that a "c:\windows\system32\cmd.exe" w