I spent the last six months essentially not doing any programming at all. Now that I am getting inspiration again, I am resuming my attempts to learn ocaml. ...
How do I refer to e.g. unit_big_int from Big_int? I've tried a few variants like Big_int:unit_big_int and Big_int.unit_big_ent, but gotten compiler errors. -- ...
The question I have is whether or not can I take the tail of a int list list? it seems that List.tl is infeasible under this circumstance, here is my code: let...
... another. You probably mean let rec arrangement x ys accumulated = match ys with []-> x::accumulated ... or better yet (using the rev_append function from...
Hi all, I have a question on ocaml, is there a way to write a empty element say a which can make a::ax=ax ? I tried to find out in library, yet I didn't get...
Hey Guys, Does ocaml have anything similar to Haskall's ':t' interpreter command? Or python's 'dir', or 'help'? Maybe there is something else I should be using...
Hello, can someone suggest me the precise point in camlp4 source where the alternative syntax for bigarray ( the use of this syntax a.{i,j} instead of...
Hi Fellow OCaml Programmers OCaml presentations are welcome at CUFP - The Commercial Users of Functional Programming workshop, which this year will be held in ...
Hello, I am trying to understand the stream-based parser construction. Here my simple example: let keywords = [ "/*"; "*/" ];; let rec parse_comment = parser ...
I wrote a recursive function to find the content between two strings. But the problem is that if this file is too big, I will get Stack_overflow. Could anybody...
... Your code works ok for me. Restart your toplevel and try again, probably you are mixing definitions while testing your function. M; -- View this message in...
Hello, I was wondering if a program written in OCaml needs to be theorem-proved to be sure it does what it is intended. I mean, is there a theorem prover for...
Here is the code I use: if y=0 then sum anss None (m+1) (List.rev cx) sum(rebuild anss (n,n,[0])) None (n+1) (ys) I know it is wrong to put two clauses in the...
Hi there Is there any good IDE for OCAML with autocompleter (just like netbeans and eclipse for java)? I tried already Camelia, cancho and tried to get a...
Hello all. I've been wondering if opened channels are closed when garbage ... It seems to me that channels are effectively closed when deallocated, but I'd...
Hi: When I write the following: match bool_var with ... I get a warning that the second case is unused. I had thought it would try to match bool_var's value,...
Hi all. I have code that compiles fine if I do not define an interface, but cannot get it to work with what I feel is a valid mli file. I summarize what I...
Hi all, How would you indent this? Mysql.iter ~f:(fun a -> Array.iter (fun x -> match x with Some v -> Printf.printf "%s " v | None -> Printf.printf "NULL " )...
I installed the mingw version of OCaml for windows and set up the cygwin tools. When attempting to create an executable of a simple factorial program, this...
Hi all, I'm trying to write a function that checks if a given word can be formed with the letters of another one (frequency matters). For example: # isMadeOf...
Hi all, I am getting the following error compiling godi-ocamlgraph 1.0#1 on ... src/sig_pack.cmi src/dot_ast.cmi lib/unionfind.cmx lib/heap.cmx lib/bitv.cmx...
Hello, I'm having trouble getting tuareg to work in GNU Carbon Emacs on Mac OS 10.5.6. I've installed Ocaml and can launch it from the terminal. I've...
Hey! Nice to meet you all; new to the group. I'm a third-year university student doing programming language research, and I use OCaml since it sorta wins at...
I'm indeed a beginner in Caml (using MacCaml); please forgive my elementary question. How to write a comment in Caml (a kind of explanation, a sentence not...
Hello, exists there an Ocaml based physics engine library like APE by Alec Cove (for ActionScript, http://www.cove.org/ape/)? Bye Andreas -- Software Developer...
Hi, I'm trying to compile "virt-mem" 0.3.1 with ocaml 3.11.0. The compilation fails with the following files : kernel.ml, virt_mem_ksyms.ml, virt_mem_mmap.ml,...