I have made changes to my source from what I have learnt from your emails as well as replies from Richard Jones. I have also replaced my Str-functions with...
Johann Spies
jspies@...
Apr 1, 2008 8:11 am
9570
Hello, I get an error when I try to use LablTk. My configuration: - Windows XP - OCaml 3.10, native port Visual C - TclTk 8.5.1.0 (same problem with 8.4...
Hi list ! I'm fresh new to Ocaml, and have some practical issues with the language. First, I was wondering if someone knows of a way to look into cmi or cma ...
The problem appears to be with the variable M.gcc, which is defined in the module Machdep. The compiler thinks it has type bool, but you are using it here with...
On Tue, 1 Apr 2008 08:39:02 -0400, Hezekiah M. Carty wrote ... There's also cmigrep <http://homepage.mac.com/letaris/> though if I remember correctly, it has a...
On Tue, 1 Apr 2008 10:10:59 +0200, Johann Spies wrote ... Have you done any profiling with ocamlprof or gprof/shark/etc.? Where is the code spending its time? ...
Dear all, I just tried to write a object wrapper for the primitive list. Inside the class t, as I assume there should be a map method: method map :('a -> 'b)...
Conglun Yao
yaoconglun@...
Apr 1, 2008 2:06 pm
9578
On Tue, 1 Apr 2008 15:06:38 +0100, Conglun Yao wrote ... I suggest you look at the OCaml manual. Section 3.11 for this specific question...
... I did not do any profiling. I have never used it in the past. Maybe I will try and learn how to use when I have some time at hands. Regards Johann -- ...
Johann Spies
jspies@...
Apr 1, 2008 2:30 pm
9580
... Profiling OCaml is very easy. Just compile with -p, then run and collect profiling results using gprof: $ ocamlopt -p foo.ml -o foo $ ./foo $ gprof foo...
On Tue, 1 Apr 2008 15:32:56 +0100, Jon Harrop wrote ... Unless you're on OS X. In which case, gprof doesn't work (or it didn't in 3.09, I never did check with...
... In Debian and Fedora there is a program which is installed called 'ocamlobjinfo' which does what you want. This program comes from the main OCaml...
Thanks, William. It is of help, but still can't help me work around the problem. The type inference for the 'map' method is much more restrictive than the ...
Conglun Yao
yaoconglun@...
Apr 2, 2008 12:40 am
9584
Hello all , I am writing this function to extract an element from the array which is contained in the Hashtbl.However , since I am using for loops , the return...
Hi, AB-- First let me say that I'm just returning to OCaml after an extended absence, but I may be of some assistance. ... So why are you using for loops? ...
Thanks a loooooooot Chris,, that think helped and i am now able to install Ginseng,, a tool basd on OCAML on solaris machines.. Thaks again rgds Siddharth ... ...
On Wed, 02 Apr 2008 01:01:32 -0000, breedaditi wrote ... OK, there's a lot to go over here. I'll just place my notes in the code as comments: let rec get_col...
... Thanks Jon! I did that. The top lines show what I have expected: the Scanf and PrintF functions dominate. That is called for each line in the files. %...
Johann Spies
jspies@...
Apr 3, 2008 6:52 am
9589
... OCaml-CSV, which as I said you should be using instead of attempting to parse CSV files yourself, uses an imperative state machine so it should be...
Hi, While doing my little camlp4 (3.10) practice, I had the following questions: (1) Is there a simple approach to add some 'open' directive at the beginning...
Conglun Yao
yaoconglun@...
Apr 4, 2008 1:04 am
9591
... I know about OCaml-CSV and have used it in another program. In this case, however, I am only interested in the second field on each line. So I thought...
Johann Spies
jspies@...
Apr 4, 2008 7:18 am
9592
Hi ! Not an OCaml specific question, however I'm trying to feed properly the 'doc' field for 'Arg.parse'. Unix command : man man says : bold text type...
I am trying to use the csv-library, but I am wasting my time to get the typing acceptable to the compiler. I am not making any progress. The following...
Johann Spies
jspies@...
Apr 7, 2008 11:17 am
9594
Hello, It seems that the open directive doesn't play the same role when I use the top-level ocaml and the batch compiler ocamlc: With top-level, I can: -...
... Thank you for your answer. I tried your example, and got the results I was describing in my first post, not your results. This is a copy of my files, to be...
... Thank you for your answer. I tried your example, and got the results I was describing in my first post, not your results. This is a copy of my files, to be...
On Mon, 07 Apr 2008 15:34:44 -0000, alain_coste wrote ... OK, here is your problem. When you have a source file myModule.ml, and you compile it with ocamlc or...