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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 10350 - 10379 of 11540   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
10350
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...
Ian Zerny
ianzerny
Offline Send Email
Nov 1, 2008
3:21 pm
10351
... 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@...
Send Email
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...
remi.vanicat@...
dl_ens
Offline Send Email
Nov 1, 2008
7:19 pm
10353
... 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@...
Send Email
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...
code17
code_1977
Offline Send Email
Nov 1, 2008
11:00 pm
10355
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...
code17
code_1977
Offline Send Email
Nov 2, 2008
8:27 am
10356
... Hi, You are looking for some form of UUID: http://en.wikipedia.org/wiki/UUID http://erratique.ch/software/uuidm Hope this helps, Dario Teixeira...
Dario Teixeira
darioteixeira
Offline Send Email
Nov 2, 2008
12:59 pm
10357
[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...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2008
1:08 pm
10358
... 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"...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2008
2:52 pm
10359
In addition to the other reply, there is an RFC 4122-compliant UUID generator libary for OCaml which you may find useful: ...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2008
2:53 pm
10360
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...
David Koppstein
koppology
Offline Send Email
Nov 2, 2008
3:28 pm
10361
... 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...
Jon Harrop
harropjon
Offline Send Email
Nov 2, 2008
3:37 pm
10362
... 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...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2008
4:08 pm
10363
... 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 ...
Jon Harrop
harropjon
Offline Send Email
Nov 2, 2008
4:46 pm
10364
... 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...
Ashish Agarwal
ashish_a1975
Offline Send Email
Nov 2, 2008
6:29 pm
10365
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....
code17
code_1977
Offline Send Email
Nov 2, 2008
6:37 pm
10366
... 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...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2008
9:37 pm
10367
... 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...
Dario Teixeira
darioteixeira
Offline Send Email
Nov 2, 2008
9:45 pm
10368
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...
code17
code_1977
Offline Send Email
Nov 2, 2008
11:02 pm
10369
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...
Hugo Ferreira
hugotwo3
Offline Send Email
Nov 4, 2008
8:05 pm
10370
... 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@...
Send Email
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...
Hugo Ferreira
hugotwo3
Offline Send Email
Nov 5, 2008
9:10 am
10372
Hello, After some experimentation and reading up on Florent Monnier's excellent tutorial [1] I have the answers. Thank you, H.F. [1]...
Hugo Ferreira
hugotwo3
Offline Send Email
Nov 5, 2008
10:47 am
10373
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...
Hugo Ferreira
hugotwo3
Offline Send Email
Nov 7, 2008
1:27 pm
10374
... 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...
Jon Harrop
harropjon
Offline Send Email
Nov 7, 2008
1:36 pm
10375
... 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...
Hugo Ferreira
hugotwo3
Offline Send Email
Nov 7, 2008
2:06 pm
10376
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...
William D. Neumann
scoey13
Offline Send Email
Nov 7, 2008
3:51 pm
10377
... On a Linux platform, you can read bytes from /dev/urandom (and get true random numbers instead of pseudo-random ones). -- Eric Cooper e c c @ c...
Eric Cooper
ecc@...
Send Email
Nov 7, 2008
4:00 pm
10378
... ^^^^ And by "true", you mean "also pseudo though generally better", of course... :-) Cheers, Dario Teixeira...
Dario Teixeira
darioteixeira
Offline Send Email
Nov 7, 2008
4:25 pm
10379
-[ 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...
rixed@...
rixed
Offline Send Email
Nov 7, 2008
5:13 pm
Messages 10350 - 10379 of 11540   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