Re: [Caml-list] static C library of wrappers: compilation issues

2012-04-26 Thread Török Edwin
On 04/26/2012 10:58 AM, Xavier ALLAMIGEON wrote: Dear caml-list, I'd like to build a static C library implementing an interface to an OCaml library, but I get some compilation errors. Here's an example of the problem. 1) The ml_code.* files contain a hello_world function which I'd like to

Re: [Caml-list] Memory fragmentation

2012-04-20 Thread Török Edwin
On 04/20/2012 06:12 PM, SerP wrote: Hi! We have developped a daemon on ocaml using the lwt lib(libev). It processes about 800 requests per second, but it increases to 2 Gb in memory for a hour of work. We have studied the problem for a long time, using mtrace, mallinfo and other tools, and

Re: [Caml-list] Efficient scanning of large strings from files

2012-03-18 Thread Török Edwin
On 03/16/2012 04:49 PM, Jérémie Dimino wrote: Le Fri, 16 Mar 2012 14:03:38 +0100, Philippe Veber philippe.ve...@gmail.com a écrit : Say that you'd like to search a regexp on a file with lines so long that you'd rather not load them entirely at once. If you can bound the size of a match by k

Re: [Caml-list] Package installation assumptions made by odb

2012-02-13 Thread Török Edwin
On 02/13/2012 03:39 PM, Romain Bardou wrote: Le 13/02/2012 14:04, Edgar Friendly a écrit : On 02/13/2012 06:01 AM, Arnaud Spiwack wrote: I see an immediate problem with packages that install several executable files (for instance, Melt provides a library and a collection of tools, none of

Re: [Caml-list] SELinux and FastCGI netplex applications

2011-12-24 Thread Török Edwin
On 12/24/2011 03:50 PM, Paolo Donadeo wrote: Sorry for cross posting in two mailing lists, but I'm going mad with SELinux on a server of mine equipped with CentOS 6.2. The problem is to run a FastCGI netplex application in peace with Apache and SELinux. Apache and the application communicate

Re: [Caml-list] try ocaml website

2011-12-23 Thread Török Edwin
On 12/23/2011 08:00 PM, Fabrice Le Fessant wrote: Dear ocamllers, We worked hard on our Try OCaml website, started by Çagdas, and we managed to improve it enough, so that we think people can start using it (and hopefully, improving it). It is available here: http://try.ocamlpro.com/

Re: [Caml-list] Issues with OCaml on Windows, MinGW build

2011-11-24 Thread Török Edwin
On 11/24/2011 08:25 AM, Paul A. Steckler wrote: For a long while, we've been building software for Windows using the OCaml MinGW cross-compiler on Fedora. That tack allows building the software pretty much the same as it's built for native Linux. But the OCaml MinGW packages for Linux haven't

Re: [Caml-list] Interfacing with C: bad practice

2011-08-16 Thread Török Edwin
On 08/16/2011 10:37 AM, Dmitry Bely wrote: I would like to share my experience of writing bad C bindings. The following code is wrong, although no living in harmony with the garbage collector rule seems to be violated: value wrp_ml_cons (value v, value l) { CAMLparam2(v, l);

Re: [Caml-list] Interfacing with C: bad practice

2011-08-16 Thread Török Edwin
On 08/16/2011 11:25 AM, Dmitry Bely wrote: 2011/8/16 Török Edwin edwinto...@gmail.com: On 08/16/2011 10:37 AM, Dmitry Bely wrote: I would like to share my experience of writing bad C bindings. The following code is wrong, although no living in harmony with the garbage collector rule seems

Re: [Caml-list] Interfacing with C: bad practice

2011-08-16 Thread Török Edwin
On 08/16/2011 12:53 PM, Dmitry Bely wrote: On Tue, Aug 16, 2011 at 1:46 PM, ri...@happyleptic.org wrote: -[ Tue, Aug 16, 2011 at 11:43:24AM +0300, Török Edwin ] 'list' should be reachable via caml_local_roots, so if it really gets an invalid value it sounds like a bug to me. list may

Re: [Caml-list] Interfacing with C: bad practice

2011-08-16 Thread Török Edwin
On 08/16/2011 07:27 PM, Richard W.M. Jones wrote: Grrr now _my_ program has a bug. -- #include stdio.h #include stdlib.h void f (int a, int b); int g (void); int *global = NULL; int main (void) { int x = 1;

Re: [Caml-list] www.ocaml.org

2011-08-14 Thread Török Edwin
On 2011-08-14 10:31, Francis Dupont wrote: In your previous mail you wrote: Doesn't it redirect to caml.inria.fr for you? = it is not: the 3 servers ([abc].dns.gandi.net) show a CNAME to webredir.vip.gandi.net, not to caml.inria.fr (which BTW will be an illegal CNAME chain). Yes

Re: [Caml-list] Priority queues

2011-06-30 Thread Török Edwin
On 06/30/2011 02:30 PM, Andrew wrote: Hi there, Does the standard library provide priority queues in OCaml? I'll be taking exams where I can use OCaml in a few days, but I couldn't find much documentation on priority queues online. No, but the manual has an example of implementing