Hello! I've spent the last couple of hours cruising around the web trying to figure out how to get ocamlbuild to make a toplevel. It clearly has that...
I am trying to dynamically create a list given a function and a size. I have done this successfully with an array but I am having problems appending an item to...
Hello, I'd like to produce an interactive toplevel including the bitstring library syntax ([1]). After reading the documentation, i guess i have use the...
Hi, I am an absolute beginner of Ocaml (2 days!), I installed Ocaml on Windows Vista and it seems working but when I try to compile with ocamlopt I get an...
I was wondering how you would iterate through a given list within a function. I have the following function that sums up all the elements in the list: let...
Is there any way to replace module M = Set.Make(struct type t = int let compare = compare end) open M with the single line open Set.Make(struct type t = int...
I have the following: module type ROOT = sig val root : string end module Make(Root:ROOT) : sig (** lots of functions the depend on the same root. *) end Now I...
Hi, beeing a diligent worker I try to document my code. But I don't know how to document function parameters that use pattern matching, e.g. let save_result...
Hi all, Consider the following function to split a string in a list of words: let wlexer = Genlex.make_lexer [",";".";";";"[";"]";"92;"";"(";")";"'"] let...
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...
Hi OCaml Beginners I'm a co-organizer of this year's Commercial Users of Functional Programming (CUFP) workshop. CUFP is a workshop devoted to the people...
Hello fellow beginners--- I would like to compile my program for OS X users, and have an account on a mac machine (I run linux). I've set up a development...
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...
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...
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...
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...
Hello, I found a problem dealing with the ocamlopt compiler. I wrote a function with lots of nested for-cycle and it took more than half of an hour on...
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....
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...
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...
Suppose I have a record of type T, which holds an immutable member f which is a function that takes as first parameter a record of type T. And I want to create...
Hi all, I am going to follow this tutorial: http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk2-tutorial/c108.html I have no Windows box available for the...
Hi all, I have a big number (~10e6) of strings (in fact, titles of articles), and I want to cluster together those that are very similar (i.e. those that are ...
Hi all, I'm trying to write a simple C function in order to learn how C code can be called from OCaml. This function just eliminates all the characters from a...
Hi all, I am looking for some tutorial about OcamlNet. I mean, something begining by printing a "Hello world" HTML page. (Not a reference manual ;-)) I dont...
Hi, I have an application that can only use the 32-bit version of ocaml. I also have an application that uses the 64-bit version of ocaml. I was wondering...
Hi all, When trying to http://batteries.forge.ocamlcore.org/doc.preview:batteries-alpha3/html/api/index.html include batteries in a program I get the...