A friend and I are currently evaluating OCaml as the implementation language for a virtual machine. The interpreted language is yet undecided, but we expect it...
... What about an OCaml string or Bigarray for your data structure? This is perhaps not what you're after but I would recommend using LLVM to write a JIT in...
Jon Harrop
jonathandeanharrop@...
Nov 1, 2008 4:55 pm
10352
... Firstly, you will probably have more precise answer on the main caml-list, your question are not really beginner level question. ... Did you look at...
... FWIW, I found MetaOCaml to be fine for staging a term-level interpreter but failed to get any kind of performance improvement out of it when dealing with ...
Jon Harrop
jonathandeanharrop@...
Nov 1, 2008 7:48 pm
10354
Hi, I'm using OCaml to implement a library for a network application where many distributed processes running and communicating. A process can generate and...
Here is a more concrete example, I think may people have encountered the same problem: Suppose process A opens a local file and get some file descriptor fd. It...
[CC-ing the bitstring mailing list] ... This is just because the libpcap demo program is pretty stupid. Being just a demo program it tries to load the entire...
... No, you're not rewriting either map. You probably want to have a look for some resources on 'persistent' data structures to understand what's "really"...
I actually used a string * int key initially, but I thought that it was very silly to repeat the string a million times when once would suffice. Anyhow, now...
... I'd be surprised if the log is the performance bottleneck (you are in 64-bit?). ... You mean "ocamlopt -p" and "gprof". -- Dr Jon Harrop, Flying Frog...
... It shouldn't store the string, just a pointer to the string. On the other hand, you are right that there will be extra overhead (the tuple of two elements...
... Basically, everything is passed by reference in OCaml so you are not copying the data structure but referring back to it. After all, there is no point in ...
... key I've been using a map of maps also because it allows more flexible operations. I can perform operations on all the values, or all the values for each...
Hi, Thanks Dario and Richard for the suggestions on UUID. It seems that this problem can't be addressed universally with the plain composition of pid, ip etc....
... In all the cases I can think of that I've personally dealt with, we have either been able to assign a unique ID to each host or each host has come with a...
... Hi, Generally you an assume thay IPs are unique. However, in NATed environments the uniqueness of IP is trickier than what it seems at first. You can...
Again, thanks both Dario and Richard for the detail explanation. Now I understand the problem better. If we were building a particular application, then there...
Hello, I recall that the question has been discussed before, but I cannot find the post. Maybe someone can point me in the right direction? I am attempting to...
... one immediate answers: - cube is mallocated but never freed (the failwith should do the free too) also I'm not sure if your code can contain a null char,...
Florent Monnier
fmonnier@...
Nov 4, 2008 10:22 pm
10371
Hello, First and foremost, appreciate the corrections and feedback. ... Absolutely correct. Will change this. But... shouldn't I also free the cube before...
Hello, Dose anyone know how I may generate a arbitrary precision random number. The 64 bits is not enough. I looked at the Big_Int module but this has no...
... Call the 64-bit generator as many times as necessary and concatenate the bits in the results together to get a big random number. -- Dr Jon Harrop, Flying...
... Hmmm... that means I need to: a) Find a way to generate a value within a range b) Generating a Big_Int from all those values Might be doable. Got a think...
Or modify the interface to Random. Or, even easier, use another PRNG that's easy to pull bits from. E.g. here's a simple implementation of RC4 (written more...
-[ Fri, Nov 07, 2008 at 10:59:20AM -0500, Eric Cooper ]---- ... Last time I checked you coul not read many of these. It's good for an initial seed, not a long...