... I'm using the mingw version of OCaml under windoze. ocamlc and ocaml work properly when invoked from the DOS prompt, but ocamlopt doesn't. I suspect it's ...
I'm going to post this on comp.lang.ruby, where a C goon has been beating his chest and crowing about the fact that C is so much faster than Ruby and even...
... I don't have a faster version (see below for why), but I will make some comments on the code / coding style. ... On my computer this takes ages to run if I...
... Yes, when running benchmarks like this one has to redirect the output. ... I had to make a program that did the same thing as the C program. ... Good...
It appears that threads in ocaml are implemented as user level threads within a single kernel thread. Is there a kernel level thread module or some way to do...
... It depends which threading library you use, but normally it will use kernel threads. http://caml.inria.fr/pub/docs/manual-ocaml/manual038.html Anyhow, the...
I have a C++ library which contains a class and I am trying to create an interface from ocaml. I have created something like this in a c++ file. extern "C" { ...
Hi Everyone, I am trying to read float values from file. When I read 2.03032177023e-40 and convert to a float with float_of_string, I get 0.0000. Can someone...
I can only guess it's use of caml_copy_string mixed with caml_alloc_string. If you're going to copy a C-string (what caml_copy_string is for), perhaps try...
... Tricky one ... I would start by adding '-cclib -lXXX' where XXX is whatever library C++ programs need these days. That ought to get rid of at least two...
... According to http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html#htoc229, you should use CAML macros. value create_class(value v1) { CAMLparam1 ( v1...
... I just posted an improved version on there which is more array-based. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists ...
... This symbol should be coming from libcamlrun.a, normally found in /usr/lib/ocaml/<version>/libcamlrun.a Rich. -- Richard Jones, CTO Merjis Ltd. Merjis -...
My c version sharing a struct works fine. camlrun is on the link line, it has the symbol in it. adding -lcamlrun doesn't help, and explicitly including ...
... First of all, are you sure that the string is being read in correctly? If you print it out (or look at it in the toplevel, whatever), does it have the...
I know in your original code you wrap the whole function definition with extern "C" { ... }. However is that sufficient to cause the call to caml_alloc to...
Ummm, yea. That would be a problem. I wrapped my caml headers in extern "C" and it works fine. Anyone on the Ocaml dev team reading? If noone speaks up I'll...
... They prefer you to just submit the bugs anyway, as that ensures it gets into the system. William D. Neumann ... "There's just so many extra children, we...
It works fine now. The problem was it would not compile but the library used to link wrong (should have used lablgtk2, not lablgtk). Sorry I wasn't clear....
Anytime I try any of the example code with deals with streams and [< ... >] syntax I get a Syntax Error on '[<' for example # [< '1 >] ;; ^^ Syntax error what...
... You're just following instructions. Unfortunately, the instructions aren't very clear on one essential point: you need CamlP4 to support the stream literal...