Re: [Caml-list] a question bout exetract a sub-element of element in triple

2009-02-22 Thread Christophe Raffalli
Su Zhang a écrit : > I encountered a new problem which is I want to get " 1 " from a triple > "(0,2,[1,2,3])", which means I want to get the first value of the > third item in one triple and itself is a list, but when I use the > List.hd (third(0,2,[1,2,3])), it will give me the entire list which i

[Caml-list] a question bout exetract a sub-element of element in triple

2009-02-22 Thread Su Zhang
I encountered a new problem which is I want to get " 1 " from a triple "(0,2,[1,2,3])", which means I want to get the first value of the third item in one triple and itself is a list, but when I use the List.hd (third(0,2,[1,2,3])), it will give me the entire list which is [1,2,3] the definition of

Re: [Caml-list] ocaml garbage collector_S_

2009-02-22 Thread Kuba Ober
industrial control process, audio processing share a need for others pattern of allocation, solved using pools of memory range of various size. I think that there is a big class of realtime signal processing where dynamic memory allocation is not only uncalled for, but would be a performan

[Caml-list] Unusual type declaration and Sexplib

2009-02-22 Thread Dario Teixeira
Hi, I'm having some trouble serialising via Sexplib a data structure defined recursively. Consider module M defined below; note how type foobar_t includes a "with sexp" declaration, telling the Sexplib syntax extension to create (de)serialisers automatically. However, type t cannot rely on that

Fwd: [Caml-list] a problem about type recongnition

2009-02-22 Thread Su Zhang
-- Forwarded message -- From: Su Zhang Date: 2009/2/22 Subject: Re: [Caml-list] a problem about type recongnition To: William Neumann thank you very much, because my gmail mailbox can not be verified by yahoo and I use yahoo mailbox to join the group, yet it is still pending, si

Re: [Caml-list] ocaml garbage collector_S_

2009-02-22 Thread Jon Harrop
On Sunday 22 February 2009 11:26:14 Philippe Strauss wrote: > Remembering other needs like a concurrent GC and the multicore GC project > of the OSP 2008, does the idea of modifiying the GC of ocaml to make it a > "pluggable" subsystem, with 3 runtimes you may choose from, the > "traditional" GC, t

[Caml-list] ocaml garbage collector_S_

2009-02-22 Thread Philippe Strauss
Hello ocaml'ers, I've been long thinking about programming languages others than C, Perl, Python, the .Net family, java etc. Anytime I discover a language come to mind a rather "niche" but interesting field: audio signal processing, i.e. soft real time constraint and good numerical/overall perfo

Re: [Caml-list] a problem about type recongnition

2009-02-22 Thread blue storm
You need parenthesis around (n+1), and it's "if m>first(element ) && n< second(element)" : "and" is an OCaml keyword. There is a beginner list ( http://groups.yahoo.com/group/ocaml_beginners ) that would probably be more suited to those questions. On 2/22/09, Su Zhang wrote: > Hi all, > > I have