Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 6356 - 6385 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6356
... 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 ...
Bill James
w_a_x_man
Offline Send Email
Aug 2, 2006
7:22 am
6357
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...
Bill James
w_a_x_man
Offline Send Email
Aug 2, 2006
7:59 am
6358
... elements of ... let doubled a b = List.for_all2 (fun m n -> m = 2 * n) (List.sort compare a) (List.sort compare b) ;;...
Bill James
w_a_x_man
Offline Send Email
Aug 2, 2006
8:40 am
6359
... 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...
Richard Jones
rwmjones
Offline Send Email
Aug 2, 2006
9:01 am
6360
... 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...
Bill James
w_a_x_man
Offline Send Email
Aug 2, 2006
5:32 pm
6361
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...
Brian Makin
merimus
Offline Send Email
Aug 2, 2006
7:00 pm
6362
... 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...
Richard Jones
rwmjones
Offline Send Email
Aug 2, 2006
10:36 pm
6363
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" { ...
Brian Makin
merimus
Offline Send Email
Aug 3, 2006
2:13 am
6364
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...
prosysd
Offline Send Email
Aug 3, 2006
3:30 am
6365
I have some Ocaml and C code that can be found at (I would paste it in, but formatting and stuff makes it easier to post than paste). ...
Joshua Smith
kognative
Offline Send Email
Aug 3, 2006
3:39 am
6366
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...
Jonathan Roewen
consulatewizard
Offline Send Email
Aug 3, 2006
3:47 am
6367
Please ignore this post. Thanks. George...
prosysd
Offline Send Email
Aug 3, 2006
4:49 am
6368
... 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...
Richard Jones
rwmjones
Offline Send Email
Aug 3, 2006
9:01 am
6369
... 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...
Matthieu Dubuget
dubuget
Offline Send Email
Aug 3, 2006
9:31 am
6370
... 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 ...
Jon Harrop
harropjon
Offline Send Email
Aug 3, 2006
12:26 pm
6371
Aight, changed to the CAML macros. also added -cclib -lstdc++ g++ -c -I/usr/lib/ocaml db.cpp ocamlmktop -custom -o foo_top db.o foo.ml -cclib -lstdc++ ...
Brian Makin
merimus
Offline Send Email
Aug 3, 2006
2:02 pm
6372
... This symbol should be coming from libcamlrun.a, normally found in /usr/lib/ocaml/<version>/libcamlrun.a Rich. -- Richard Jones, CTO Merjis Ltd. Merjis -...
Richard Jones
rwmjones
Offline Send Email
Aug 3, 2006
2:32 pm
6373
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 ...
Brian N. Makin
merimus
Offline Send Email
Aug 3, 2006
2:59 pm
6374
... 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...
William D. Neumann
scoey13
Offline Send Email
Aug 3, 2006
3:11 pm
6375
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...
Richard Jones
rwmjones
Offline Send Email
Aug 3, 2006
4:15 pm
6376
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...
Brian N. Makin
merimus
Offline Send Email
Aug 3, 2006
4:35 pm
6377
... 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...
William D. Neumann
scoey13
Offline Send Email
Aug 3, 2006
4:44 pm
6378
will do....
Brian N. Makin
merimus
Offline Send Email
Aug 3, 2006
4:56 pm
6379
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....
Chris Campbell
chrisdanx
Offline Send Email
Aug 3, 2006
9:11 pm
6380
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...
Brian N. Makin
merimus
Offline Send Email
Aug 4, 2006
7:36 pm
6381
#load "camp4o.cma" --Jonathan Bryant...
Jonathan Bryant
jonboy3182
Offline Send Email
Aug 4, 2006
7:42 pm
6382
... You're just following instructions. Unfortunately, the instructions aren't very clear on one essential point: you need CamlP4 to support the stream literal...
Matt Gushee
mcgushee
Offline Send Email
Aug 4, 2006
7:54 pm
6383
dangit, I thought I had tried that. thank you very much. ... and [< ... instructions ... support the...
Brian N. Makin
merimus
Offline Send Email
Aug 4, 2006
8:16 pm
6384
I'd rather to that: (toplevel) #load "camlp4o.cma";; (compilation) ocamlc -pp camlp4o toto.ml -- Martin Jambon, PhD http://martin.jambon.free.fr...
Martin Jambon
BioMim
Offline Send Email
Aug 4, 2006
8:22 pm
6385
... Yes, you're right. Sorry. -- Matt Gushee...
Matt Gushee
mcgushee
Offline Send Email
Aug 4, 2006
8:31 pm
Messages 6356 - 6385 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help