On the subject of laziness, is the implementation using co-routines or some alternative. What is the rationale for the choice made by the implementors of...
... Great answer! I would just add that another useful learning exercise is to reimplement some of the HOFs from the standard library. List.map is a good one...
Hi, I've studied this issue before posting and am familiar with the position ocaml implementors take. Certain patches on the net developed by outsiders are...
... I've been trying to get this patch into OCaml for some time: http://caml.inria.fr/mantis/view.php?id=3866 It solves some of the above problem for bytecode,...
[...] ... my_var is not a closure, it's a value computed by a closure. Then when the value my_var is used 3 times, the closure to create the value my_var is...
Florent Monnier
fmonnier@...
Apr 3, 2006 4:05 pm
5754
[...] ... No, it was not. --...
Florent Monnier
fmonnier@...
Apr 3, 2006 4:05 pm
5755
Good day, Threads have been giving me a headache lately. Problem statement 1) using a subset of safe threading primitives write portable ocaml programs that...
... Can you describe what problem you're trying to solve? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com ...
... What is the type of my_var? ... I think we need working code before we can say anything useful. ... Can you post your solution? -- Dr Jon D Harrop, Flying...
Certainly. Thread main starts several threads - thr1, thr2, etc. thr1 starts two more threads thr1_1 and thr1_2. These threads run forever, except if an error...
Hi, The raw module (in Lablgl i think) defines a function val of_float_array : float array -> kind:([< fkind] as 'a) -> 'a t I want to define a function which...
(I'm asking this here since I haven't heard back about my request to join the lablgtk mailing list yet...) Is there really nothing simpler than the GtkText...
Richard Lyman
richard.lyman@...
Apr 5, 2006 2:57 am
5762
No, I mean what actual concrete problem you're trying to solve. What will this program do? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and...
Thanks for expressing interest in my problem. Following is a relatively accurate description, yet I've omitted and obfuscated the description for privacy...
... Basically I don't believe that this is a problem which OCaml can solve well. One fundamental problem that OCaml has is that the garbage collector is not...
Hi, I'd like to hear recommendations for build tools to use with OCaml. As far as build tools goes, I have the most experience using ant with Java. What are...
I use OMake. It's like Make but smarter. It can build OCaml and C programs out of the box and is generally much nicer than Make. Good documentation too. ...
... Thanks. It isn't necessary to do so, since I've changed it to work with a kind parameter similar to the raw module, but is there no way to constrain the...
... I too use omake, and like it quite a bit. Though I'm not sure if I'd quite call the documentation good (though this is one of my constant bitching points...
... I use GNU make, with OCamlMakefile, but I hate writing Makefiles in general. http://www.ocaml-tutorial.org/compiling_ocaml_projects I haven't given omake a...
... To answer my own question: I guess I should have just tried to do what I needed before thinking that it would be hard (based only on the tutorials...
Richard Lyman
richard.lyman@...
Apr 6, 2006 9:34 pm
5772
... omake looks quite good for me. What is even more interessting for me is an alternative to the automake/autoconf system. Thus such a thing exist? cheers ...
... For pure OCaml programs you don't usually need automake/autoconf. Usually ocamlfind is sufficient, as in: ocamlfind ocamlc -package extlib -c my_prog.ml ...
... Assuming, of course, that everything you need to include has been packaged for ocamlfind. I recently repackaged David Monniaux's mlgmp package, and my GMP...
Unfortunately a lot of developers lose sight of the fact that a Makefile like specification is nothing but a DAG (directed acyclic graph) and create convoluted...
Hello, when I have something like module Hello = struct print_endline "hello" end or something like module Hello = struct let a = print_endline "hello" end ...
Oliver Bandel
oliver@...
Apr 7, 2006 4:34 pm
5777
... Yes. All of the values in the code are evaluated as they are encountered, including those inside a module. If you want to delay the evaluation of a ...
... Within the file, initialization is top to bottom. Across modules: You have to specify the modules in dependency order when linking. So if B depends on A,...