I've got some rather large records that contain a bunch of OpenGL vertex information. These also have associated textures. Sometimes these get 're-skinned39;...
Hi OCaml programmers ! Coming from C++ beginner, I try to forget - for a time - oo use and to focus on modules. I hope to reuse "show_array" code : let...
Hi ! In order to learn OCaml, I begin to program toy applications. For example : the knight that runs one times on each square of the chess board. Here is the...
Hi, The LISPers threw a programming contest for the upcoming International Lisp Conference (ILC 2007) in Cambridge U.K. The contest is a cute card game called...
I have one connected socket and two threads. 1. thread should wait for data, do recv and process the result as soon as any data is available 2. thread should...
Hi, After a careful evaluation process, candidate languages for a proposed financial markets analysis programming project have been narrowed down to a very...
Hi, is it possible to specify a format for floats in string_of_float. E.g. could I say that I want 5 decimals or e.g. an xxe+/-yy notation like 1.56e23? I know...
Hello all, According to the latest (3.09) Objective Caml manual, (*) is the multiplication function int->int->int, just like (+) or (/). My toplevel begs to...
Shalom. I want to make a function that takes argument of type "('a, 'b, 'c) format" (or "... format4"), all following arguments, and silently ignores them all,...
Hello all, let me describe a ocamlmktop-specific compilation problem that I encountered : I have two modules, let's call them A and B, that are completely...
Shalom. Maybe my task will force me to use recursive modules instead of currently used non-recursive ones. Will there be any runtime penalty when calling ...
I've got a file that has many, many whitespace-delimited integers (and one whitespace-delimited string, as the very first element). I'm looking for a clean way...
Hello why this comment line below gives a wrong error message ? (* some comment with \" *) File "test.ml", line 1, characters 0-2: Comment not terminated ...
Hi, to generate file names, I'd like to format numbers that I include in file names like in an fprintf. So 1 would be something like 0001, 2 would be something...
I'm working through the translation of the O'Reilly book, and I'm currently at the chapter on lexing and parsing. The code from the following section doesn't...
Hello all, in principle a module whose .cmo file is in a faraway directory should be treated no different from the other modules, as long as you provide the...
I'm starting on a project for which I'll need to parse a javascript file, and I was wondering what people would suggest for the parser part. Are lex and yacc...
Hello, I've an algorithm (to be exact a Viterbi decoder for HMMs) that uses Map to store some keys. Since the algorithm works for all type of keys that can be...
Hello all, I'm looking for a good library for OCaml to do post-processing of XHTML. I want to write programs that read enhanced XHTML on standard input and ...
Hello all, In my home-made Ocaml toplevel (created with ocamlmktop) I always start by typing the command open My_Pervasives;; This module contains shortcuts...
Hello I got this message after running ocamldebug in batch mode : Reload program ? (y or n) Fatal error: exception End_of_file 1. which file is ended ? std...
Hi ! I've switched from C++ to OCaml few weeks ago - nice Christmas gift ! Very glad, will never go back. - and try to get familiarized with this language that...
Shalom. I want to define a function that takes two arguments, a and b. I want to force a "strict" subtyping relation on them: if call "func a b" passes the...
Hello all, I want to write a function that takes an XML tree, a search tag and a search attribute. The function walks the tree, looking for tag that matches...
I have a list of chess pieces, and I wrote code to go through, find a piece at a current location, remove it from the list, and return both the piece and the...
Hi all, I am trying to use emacs to produce literate Ocaml Programs using noweb. I find that the syntax highlighting tools and chunk navigation features in...
Hi, I'm a bit embarassed to send this email because I have to post a lot of code and probably the problem is trivial. However, I've played around with it for...