... I already tried that. Doesn't help. ... No, it's OCaml's doing, although I am using the windoze shell. ruby -e "p ARGV" foo bar ["foo", "bar"] ruby -e "p...
-[ Tue, Mar 31, 2009 at 09:10:56AM +0200, Christophe TROESTLER ]---- ... Yes, this is what I though. But apparently not for records : let rec x = { ... } ...
... That is incorrect. Here is a trivial counter example: # type t = {x: t};; type t = { x : t; } # let rec r = {x=r};; val r : t = {x = {x = However, the rhs...
Jon Harrop
jon@...
Apr 1, 2009 8:07 pm
10992
For version 1.0.4 of ocaml-mysql, what version of Mysql are supported? I am running 5.0.38, and I get only "Client does not support authentication protocol...
Hi all, I am completely new to OCaml, and mostly new to functional programming. To practice a bit while reading the literature I have been implementing some...
Daniel de Kok
me@...
Apr 5, 2009 9:57 am
10994
Hello, I am trying to break the following circular reference: (A vertex contains a reference to edge, and an edge contains two reference to both ends) Vertex...
Hi all, I have a question about lazy infinite lists. I found http://c2.com/cgi/wiki?ExplicitLazyProgramming here an explanation of how can be done in OCaml....
citromatik
miguel.pignatelli@...
Apr 7, 2009 7:26 am
10996
... I would use "type 'a lazy_list = Cons of 'a * 'a lazy_list Lazy.t | Nil" to have a type for lazy finite and infinite list. ... recent ocaml version...
Hi, I'm trying to use gprof to diagnose some performance issues in a program of mine called binner. I used ocamlbuild to generate native code. The normal use...
... The way to use gprof is to compile and link your code with profiling support (use the '-p' option of ocamlopt), then run the executable normally. Finally...
Toby Kelsey
toby.kelsey@...
Apr 7, 2009 7:59 pm
10999
And I'm supposed to be using ocamlbuild name.p.native. Sorry for clogging the tubes...
Le jeu 09 avr 2009 11:11:42 CEST, ... You can use this syntax: let display_log ?(message: string option) (db:dbh): xml = <function text> but usually, you can...
... Ah, thanks! ... True, but me being who I am, I often find it useful to nail my functions to a particular type. That way I am telling the complier exactly...
... I am still interested in hearing whether this is possible. In the meanwhile I have resorted to a bit more imperative solution. The matrix ... let...
Daniel de Kok
me@...
Apr 10, 2009 9:29 am
11005
The following does not type check: let pair_op (f:'a->'a->'a) ((int1:int),(float1:float)) ((int2:int),(float2:float)) = (f int1 int2),(f float1 float2) let...
To make the cell type polymorphic, you could also pass in a default value: let init_matrix r c default f = let m = Array.init r (fun x -> Array.make c default)...
Hi all, Does anybody know of any high-performance http://en.wikipedia.org/wiki/Suffix_tree suffix tree implementation in OCaml? Naive implementations are also...
citromatik
miguel.pignatelli@...
Apr 16, 2009 4:27 pm
11009
... Hash: SHA1 First google hit =] http://alan.petitepomme.net/cwn/2007.09.04.html Peng ... Version: GnuPG v2.0.7 (GNU/Linux) ...
Peng Zang
peng.zang@...
Apr 16, 2009 4:34 pm
11010
... Yes, I have already checked that before. This implementation relies on several other modules from the author and is a bit complicated to follow it. That is...
citromatik
miguel.pignatelli@...
Apr 16, 2009 7:45 pm
11011
... Don't know if this is of any help: Efficient Implementation of Lazy Suffix Trees http://www.zbh.uni-hamburg.de/pubs/pdf/GieKurSto1999.pdf Don't think it...
On Wed, 01 Apr 2009 16:44:26 -0000 ... Yes, it is OCaml, in windows builds only, see caml_expand_command_line. Probably the reason for such behavior is that...
Hi, I have a 64-bit Ocaml 3.11.0 installation for Mac OS X, which I compiled from source and configured using ./configure -cc "gcc -m64" I'm trying to install...
... BTW, why does OCamlMakefile not default to using ocamlc for C-compiling? I mean it would ensure the C compiler is always called with the ocaml-compatible...
... Thanks for the tip. This worked. It actually also solved a related problem I'd been having, which was that PCRE was giving strange compatibility errors --...
... Jean-Christophe Filliatre has a generic implementation that can be instantiated with different kinds of dictionary, IIRC. I played with it a few years ago...
Jon Harrop
jon@...
Apr 21, 2009 12:46 am
11017
... Hi Daniel, Apologies for the slow response. I would not recommend phrasing this as a matrix initialization because it requires a specific ordering. If you...
Jon Harrop
jon@...
Apr 21, 2009 1:29 am
11018
Hi list what would be the easiest way to obtain a screenshot of an arbitrary X11 window (in linux) from an ocaml program ? I'm sure several libraries can do...