... Hash: SHA1 Ha! You're brilliant. That's exactly what I wanted. I didn't know you had to explictly enable recursive types. Why isn't this enabled by...
Peng Zang
peng.zang@...
Jun 1, 2007 11:55 pm
7909
Hello all, I should like to know more about subtyping polymorphism and OCaml ( if I'm not the only OCaml programmer in the world that worries about the...
Has anyone had success using ocamlnet 2.2.7's nexplex (under godi) on Mac OS X (Tiger)? Details below, but I'm not yet terribly interested in debugging my ...
... This has nothing to do with Godi. Search for ocamlnet in the archives of caml-list, I recommend the fa.caml Google Group. ... Most definitely. Thanks, Joel...
... Certainly, I never said otherwise (in my original post I talked about an "incomplete feature"). What you cannot do in OCaml, for example, is subtype an...
... I think you mean that you may only create subtypes of certain (subtypable) OCaml types. You cannot create a subtype of any OCaml type, of course. ... What...
... Are you using the same compiler binaries on both client and server? Are they identical architecture and OS? -- Dr Jon D Harrop, Flying Frog Consultancy...
... I'm afraid to say that probably you shouldn't use Marshal to send data between hosts. It's not generally a safe thing to do; and differences in the...
Hello, I've been hacking a bit in Ocaml lately, but I've had a lot of trouble writing a good makefile as I have done for my C projects. Problem 1: ocamlc...
... I don't think there is a simple solution to this one. The new ocamlbuild copy all source file in a new directory before the build, something similar could...
Mathias Kende
mathias@...
Jun 4, 2007 9:45 pm
7921
... As Mathias said, I don't think there's a good solution to this. Is it really necessary? ... For libraries, definitely install findlib (the command is...
... http://en.wikipedia.org/wiki/Algebraic_data_type What I would like to do is define a type in the interface like so: type foo = Foo | Bar of int and use the...
... Yes, it would be better if you could write the definition in the source file and write: type foo = ... in the interface file. Note that you can make the...
... You're right, I forgot those ... but "objects are slow and seldom used in OCaml" (Richard Jones dixit ) so i don't use them unless I see a good reason to ...
... Sounds like you really would benefit from using objects to represent your data structures. Jacques Garrigue has already wrapped several data structures in ...
... Don't take what I say too literally! Please test it, and if it's fast enough for you then that is fine. Unless you're calling #methods from tight inner...
... That's the way it works. The .mli file documents the signature you want to export, and the .ml file is the implementation of that. You could have some...
Shalom, Jon. JH> Regarding performance, it may not be significant because JH> method calls are unlikely to be in the inner loop. If only one method call will...
... The distinction is not clear to me. Any loop or even any task working on one or several objects must call a #method somewhere, mustn't it ? Could you...
... Iterating over the elements of your list class will work like this: # let print_seq seq : unit = seq#iter print_endline;; val print_seq : < iter : (string...
Hello. I need to write floating point values to a binary file. The file must be in a specific format for compatibility with outside applications, and the...
... If you can mmap the file, then you might be able to use Bigarray (Bigarray.float32_elt). Other than that, this is definitely a question for Jon to...
... I think the easiest solution is probably to code that bit in C. The Bigarray module does provide 32-bit float storage but I'm not sure you can dissect it ...
... The Int32.bits_of_float function return the int32 whose bits contain the float in single precision. ... through the C level (which may be easier though). ...
Mathias Kende
mathias@...
Jun 5, 2007 7:31 pm
7937
Hi all, hope all is well I wondered if anyone had an idea of how to get around needing a hashtable in which all the keys are strings, but, the values may be of...