Re: [Caml-list] Problem with un-flushed output getting mangled

2011-09-30 Thread Jerome Vouillon
Hello, On Thu, Sep 29, 2011 at 08:00:47PM -0400, Taylor Venable wrote: > My trouble is this: if I fail to call flush on the output channels in > step #4, I get mangled output. By mangled I mean that in the middle of > one line, suddenly the data from another line appears. The other line > exists e

Re: [Caml-list] Nproc: process pools for OCaml (request for suggestions)

2011-11-30 Thread Jerome Vouillon
Hi, On Tue, Nov 29, 2011 at 06:54:46PM -0800, Martin Jambon wrote: > I would like to publicize Nproc, which is an implementation of process > pools for OCaml based on fork, pipes, Marshal and Lwt: > > https://github.com/MyLifeLabs/nproc > > Using Nproc involves: > > 1. Creating a pool of N pr

Re: [Caml-list] is there a more concise way to write this?

2012-01-20 Thread Jerome Vouillon
On Fri, Jan 20, 2012 at 09:37:17AM +0100, Sebastien Ferre wrote: > You can make it even more concise by defining a helping function. > > let b2l b x = if b then [x] else [];; > > let a = > b2l out o @ > b2l value v;; You can also include the list concatenation in the helper function: le

[Caml-list] [ANN] Js_of_ocaml version 1.1

2012-03-23 Thread Jerome Vouillon
Hi, I'm happy to announce a new release of Js_of_ocaml, a compiler from OCaml bytecode to Javascript. This tool lets you write OCaml programs that run on Web browsers. You can use it to deploy your OCaml applications everywhere (smartphones, tablets, desktop computers, ...), or to take advantage

Re: [Caml-list] Strategies for finding memory leaks

2012-04-03 Thread Jerome Vouillon
On Tue, Apr 03, 2012 at 12:42:08PM +0200, Gerd Stolpmann wrote: > This reminds me of a problem I had with a specific C binding (for mysql), > years ago. That binding allocated custom blocks with badly chosen > parameters used/max (see the docs for caml_alloc_custom in > http://caml.inria.fr/pub/doc