Re: [Caml-list] Non-blocking IO interface design

2012-04-09 Thread Anil Madhavapeddy
On 8 Apr 2012, at 21:37, Daniel Bünzli wrote: > > I think that the first five points are mostly met and the > cps transformation of blocking into non-blocking is relatively > straightforward and remains readable in my opinion. Regarding the 6th > point, using the included `setrip.native` program o

Re: [Caml-list] Re: oasis packaging questions

2012-03-09 Thread Anil Madhavapeddy
On 8 Mar 2012, at 22:26, Sylvain Le Gall wrote: > > 2012/3/8 Adrien : >> Hi, >> >> On 08/03/2012, Sylvain Le Gall wrote: >>> Hi, >>> >>> 2012/3/8 Daniel Bünzli : Le jeudi, 8 mars 2012 ŕ 09:31, Sylvain Le Gall a écrit : > setup.ml will be enough for me ;-) But I am biased. Fo

[Caml-list] working %.pp.ml target with ocamfind/ocamlbuild

2011-12-30 Thread Anil Madhavapeddy
There's a very useful %.pp.ml target in OCamlbuild that runs the source through camlp4 and outputs the result. This doesn't work when ocamlfind is used, as it includes the -pp flags within the ocamlfind invocation. I took a look at adding support for this into ocamlbuild (when -use-ocamlfind i

Re: [Caml-list] Re: how could the community help with Oasis-DB; towards a CPAN for OCaml?

2011-12-18 Thread Anil Madhavapeddy
On 18 Dec 2011, at 20:01, Benedikt Meurer wrote: > Am 18.12.2011 um 20:46 schrieb Ashish Agarwal : > >> On Sun, Dec 18, 2011 at 4:35 AM, Benedikt Meurer >> wrote: >> >> the OASIS port is named "caml-oasis". >> >> Please try to transition to the consistent name OCaml, a decision made at >> t

Re: [Caml-list] Storing ocaml values outside ocaml's heap

2011-12-08 Thread Anil Madhavapeddy
I think Ancient is exactly what you're looking for. Just disable swap (which you should do anyway on a big modern server), and it will let you keep in-memory, out-of-heap OCaml values that don't get scanned by the GC. Anil On 8 Dec 2011, at 08:19, William Le Ferrand wrote: > hi Stephane > >

Re: [Caml-list] [ANN] Argot: 1.0 release

2011-11-04 Thread Anil Madhavapeddy
On 4 Nov 2011, at 09:24, ri...@happyleptic.org wrote: > -[ Thu, Nov 03, 2011 at 09:15:57PM +0100, Fabrice Le Fessant ] >> Hi, >> >> By the way, Thomas is also working on a plugin for ocamldoc, with >> incremental search. An example of what it generates (for the stdlib and >> some of our inte

Re: [Caml-list] ocamlbuild circular dependencies

2011-10-26 Thread Anil Madhavapeddy
icitly part of the pack). So just try listing all the modules you use explicitly in the .mlpack and see if the issue goes away. -- Anil Madhavapeddy http://anil.recoil.org -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr

Re: [Caml-list] [ANN] Async, a monadic concurrency library

2011-10-26 Thread Anil Madhavapeddy
en not used on inside those, that would break a lot of other applications. Anyhow, directly checking the number is bad for portability reasons as the ERESTARTNOHAND is a Linux-ism. I'm taking a shot at porting Core/Async to OpenBSD at the moment, so will patch out that

Re: [Caml-list] Lwt and exceptions

2011-09-15 Thread Anil Madhavapeddy
On 15 Sep 2011, at 11:04, Mehdi Dogguy wrote: > On 13/09/2011 20:37, ri...@happyleptic.org wrote: >> The Lwt doc states that you should not use "raise" when using Lwt but >> use Lwt.fail instead. >> >> So, is it still OK to call functions (for instance from the stdlib) >> that may raise an exce

Re: [Caml-list] Lwt and exceptions

2011-09-13 Thread Anil Madhavapeddy
Yes, it's essential to do this for many common functions such as Hashtbl.find. The nice thing about Lwt is that you control yielding, so as long as you catch the exception locally and "convert" it into the Lwt monad, everything works great. The occasional exception leak is really hard to track

Re: [Caml-list] output-obj rule in ocamlbuild

2011-08-25 Thread Anil Madhavapeddy
_obj = !Options.ext_obj in let x_o = "%"-.-ext_obj in (* Rule to link a module and output a standalone object file *) rule "ocaml: cmx* & o* -> .m.o" ~tags:["ocaml"; "native"; "output_obj"] ~prod:"%.m.o" ~deps:["

[Caml-list] output-obj rule in ocamlbuild

2011-08-25 Thread Anil Madhavapeddy
Is there a built-in rule in ocamlbuild to generate the -output-obj output instead of a direct link? I note there are these built-in tags in the ocamlbuild source: ocaml_specific.ml:flag ["ocaml"; "link"; "native"; "output_obj"] (A"-output-obj");; ocaml_specific.ml:flag ["ocaml"; "link"; "byte";