[Caml-list] propo/ je vai transferai $12.million sur ton compte ci oui je te le dit detail

2009-02-20 Thread deni usman
Invitation : "propo/ je vai transferai $12.million sur ton compte ci oui je te le dit detail". Par votre hôte deni usman: Date: samedi 21 février 2009 Heure: 4h 00 - 5h 00 (GMT+00:00) Invités: * jorge...@yahoo.com * leopoldoerne...@yahoo.com-br

Re: [Caml-list] Lazy and Threads

2009-02-20 Thread Yaron Minsky
You're totally right. I withdraw my complaint. y Yaron Minsky On Feb 20, 2009, at 1:36 PM, Xavier Leroy wrote: Victor Nicollet wrote: I'm working with both lazy expressions and threads, and noticed that the evaluation of lazy expressions is not thread-safe: Yaron Minsky wrote: At

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Mike Lin
These are good points. I tend to compulsively eliminate any kind of memory allocation from my numerical loops -- it's true the OCaml allocator is a lot faster than malloc, but you could end up repaying a lot of that back to the GC later! The silly library I sent out does operate on OCaml float arra

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Markus Mottl
Unless you want to interface C-calls into BLAS/LAPACK directly without bounds checking, releasing the OCaml-lock, and other "fru-fru", it seems unlikely that you will get much of an advantage using those libraries given the small size of your matrices. E.g. Lacaml is optimized for larger matrices

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Will M. Farr
Mike and Erick, In some of my work, I've got code which is constantly creating and multiplying 4x4 matrices (Lorentz transforms). I usually write in a functional style, so I do not generally overwrite old matrices with the multiplication results. I have discovered that, at these sizes, it's abou

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Mike Lin
Erick, we should compare notes sometime. I have a lot of code for doing this kind of stuff (I am working on empirical codon models with 61x61 rate matrices). The right way to speed up matrix-vector operations is to use BLAS via either Lacaml or ocamlgsl. But if, like me, you like to counterproducti

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Martin Jambon
Erick Matsen wrote: > Wow, once again I am amazed by the vitality of this list. Thank you > for your suggestions. > > Here is the context: we are interested in calculating the likelihood > of taxonomic placement of short "metagenomics" sequence fragments from > unknown organisms in the ocean. We s

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Will M. Farr
Erick, Sorry about the long email, but here is an explanation of what "boxing" means, how it slows you down in this case, and how you can (eventually) figure out whether it will slow you down in general. I'm not an expert, so I've probably made mistakes in the following, but I think the broad out

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Erick Matsen
Wow, once again I am amazed by the vitality of this list. Thank you for your suggestions. Here is the context: we are interested in calculating the likelihood of taxonomic placement of short "metagenomics" sequence fragments from unknown organisms in the ocean. We start by assuming a model of sequ

Re: [Caml-list] Building pcre-ocaml on OCaml 3.11.0 on MinGW

2009-02-20 Thread Gerd Stolpmann
GODI includes now MinGW support, and pcre is among the actually working packages. Just take it, or look there for how the build is done. Note that you should take GODI for 3.10 because there is still a bug in the 3.11 version. Gerd Am Freitag, den 20.02.2009, 14:28 + schrieb David Allsopp: >

Re: [Caml-list] true parallelism / threads

2009-02-20 Thread Gerd Stolpmann
Am Freitag, den 20.02.2009, 10:40 -0600 schrieb Atmam Ta: > Hi, > > I am trying to evaluate ocaml for a project involving large scale > numerical calculations. We would need parallel processing, i.e. a > library that distributes jobs accross multiple processors within a > machine and accross mult

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Xavier Leroy
> I'm working on speeding up some code, and I wanted to check with > someone before implementation. > > As you can see below, the code primarily spends its time multiplying > relatively small matrices. Precision is of course important but not > an incredibly crucial issue, as the most important th

Re: [Caml-list] Lazy and Threads

2009-02-20 Thread Xavier Leroy
Victor Nicollet wrote: > I'm working with both lazy expressions and threads, and noticed that the > evaluation of lazy expressions is not thread-safe: Yaron Minsky wrote: > At a minimum, this seems like a bug in the documentation. The > documentation states very clearly that Undefined is c

Re: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Jon Harrop
On Friday 20 February 2009 15:40:00 Erick Matsen wrote: > Hello Ocaml community--- > > I'm working on speeding up some code, and I wanted to check with > someone before implementation. > > As you can see below, the code primarily spends its time multiplying > relatively small matrices. Precision is

Re: [Caml-list] true parallelism / threads

2009-02-20 Thread Markus Mottl
2009/2/20 Atmam Ta : > My question is: is ocaml good for parallel processing / hreaded computation, > are there (mature) libraries or tools that let developers make use of > multicore and multimachine environments? For heavy-duty linear algebra you might want to use Lacaml: http://ocaml.info/ho

[Caml-list] Draft paper submission deadline extended: SETP-09

2009-02-20 Thread John Edward
Draft paper submission deadline extended: SETP-09   The deadline for draft paper submission at the 2009 International Conference on Software Engineering Theory and Practice (SETP-09) (website: http://www.PromoteResearch.org ) is extended due to numerous requests from the authors. The conference

Re: [Caml-list] true parallelism / threads

2009-02-20 Thread Will M. Farr
Atmam, I've had some luck using OCaml with MPI (using the OCamlMPI library at http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=401 ). That may not satisfy your needs as far as multi-core goes, but perhaps it will. I can't speak to the speed of the interface (my operations were compute-bound on t

Re: [Caml-list] true parallelism / threads

2009-02-20 Thread Hezekiah M. Carty
2009/2/20 Atmam Ta : > Hi, > > I am trying to evaluate ocaml for a project involving large scale numerical > calculations. We would need parallel processing, i.e. a library that > distributes jobs accross multiple processors within a machine and accross > multiple PCs. > Speed and easy programabili

Re: [Caml-list] true parallelism / threads

2009-02-20 Thread Yoann Padioleau
Atmam Ta writes: > Hi, > > I am trying to evaluate ocaml for a project involving large scale numerical > calculations. We would need parallel processing, i.e. a library that > distributes jobs accross multiple processors within a machine and accross > multiple PCs. > Speed and easy programability

[Caml-list] true parallelism / threads

2009-02-20 Thread Atmam Ta
Hi, I am trying to evaluate ocaml for a project involving large scale numerical calculations. We would need parallel processing, i.e. a library that distributes jobs accross multiple processors within a machine and accross multiple PCs. Speed and easy programability are important. I have tried to

Re: [Caml-list] ocamlbuild & deps

2009-02-20 Thread Daniel Bünzli
Le 20 févr. 09 à 16:39, Romain Bardou a écrit : I think there is a difference. It is indeed an optimization issue but not at the level of Ocamlbuild itself : it is as the level of your compilation process. If A *dynamically* depends on B, and your whole project (say, 10 hours of compilatio

RE: [Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread RABIH.ELCHAAR
I don't think you can do better than calling some C functions (bound checking, ... ). Why not have a look on ocaml bindings of C libraries (using bigarrays), like ocamlgsl (O Andrieu) http://oandrieu.nerim.net/ocaml/gsl/ or lacaml http://caml.inria.fr/cgi-bin/hump.fr.cgi?contrib=255 Hope this he

Re: [Caml-list] ocambuild, disabling caml rules ?

2009-02-20 Thread Romain Bardou
Daniel Bünzli a écrit : Is it possible to disable the default rules ? I'm using ocamlbuild for a plain C project with my own rules and it is painfull when something fails that it fallbacks on ocaml C's compilation rules. These rules wil anyway fail and they override the error that occured wit

[Caml-list] speeding up matrix multiplication (newbie question)

2009-02-20 Thread Erick Matsen
Hello Ocaml community--- I'm working on speeding up some code, and I wanted to check with someone before implementation. As you can see below, the code primarily spends its time multiplying relatively small matrices. Precision is of course important but not an incredibly crucial issue, as the mo

Re: [Caml-list] ocamlbuild & deps

2009-02-20 Thread Romain Bardou
Am I right in thinking that in rule specifications we could get rid of the ~dep(s) parameter of rules and have all deps be specified/discovered dynamically via the 'build' argument ? Otherwise stated is ~dep(s) just an optimization ? Out of curiosity any idea in the cost of suppressing these a

[Caml-list] Building pcre-ocaml on OCaml 3.11.0 on MinGW

2009-02-20 Thread David Allsopp
I've just had an enlightening few hours getting pcre-ocaml to compile under Windows (I tried a few years ago and, very lazily, just gave up). I've managed to get it to work but I'm wondering whether anyone else has done this and, if so, whether they can explain/confirm/correct a couple of the steps

[Caml-list] ocambuild, disabling caml rules ?

2009-02-20 Thread Daniel Bünzli
Is it possible to disable the default rules ? I'm using ocamlbuild for a plain C project with my own rules and it is painfull when something fails that it fallbacks on ocaml C's compilation rules. These rules wil anyway fail and they override the error that occured with my rule that should

[Caml-list] ocamlbuild & deps

2009-02-20 Thread Daniel Bünzli
Am I right in thinking that in rule specifications we could get rid of the ~dep(s) parameter of rules and have all deps be specified/ discovered dynamically via the 'build' argument ? Otherwise stated is ~dep(s) just an optimization ? Out of curiosity any idea in the cost of suppressing thes