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.

Messages

  Messages Help
Advanced
Messages 9062 - 9091 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
9062
Hi ! I'm ashamed not to have grasped this yet. Moreover it's pretty sure this subject was already discussed - but can't find again where. So, the basic...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
8:00 am
9063
... Well, there are two kind of dependency: - a module may need a type that is defined in another module - a module may need a value (a "let") that is defined...
Remi Vanicat
dl_ens
Offline Send Email
Dec 1, 2007
8:47 am
9064
... Yes, you need to break the cyclic dependence by parameterizing one definition over another. Having big cyclic dependencies is a bad idea anyway... -- Dr...
Jon Harrop
harropjon
Offline Send Email
Dec 1, 2007
9:35 am
9065
Thanks Remi ! ... If two.ml uses several one.ml components, so they appear in this order : one.ml two.ml in the Makefile, a cheat to access a two.ml component ...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
11:37 am
9066
Thanks Jon ! ... Please Jon, could you develop a bit more on this ? I'm unable to see what you mean here. ... Ah ! I wondered whether the need of such cyclic...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
11:37 am
9067
Hi again, So I am still trying to optimize my programm. After a few more tests I noticed, that it is actually pretty fast at the beginning and then the speed...
Till Crueger
yavimaja
Offline Send Email
Dec 1, 2007
1:03 pm
9068
... [...] ... Sort of as an aside about enums ... The libvirt API bindings that I wrote have to deal with enums which are set by the C (libvirt) code. As a...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
3:10 pm
9069
... XML-Light (http://tech.motion-twin.com/xmllight.html) uses a simple n-ary tree to represent XML documents. ... I recently got into zippers (hmmm, that...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
3:14 pm
9070
... Jon's right. It'd be interesting to know what code you think needs circular dependencies. I've rarely come across any, and each time it turned out to be...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
3:17 pm
9071
... You're looking in the wrong place. The minor heap always grows until it hits some maximum size (32 K words IIRC, but you can adjust it) at which point the...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
3:20 pm
9072
... We wrote a memory profiler with the intent of releasing it as a commercial product but never got around to it. You most likely have a cache somewhere that...
Jon Harrop
harropjon
Offline Send Email
Dec 1, 2007
3:40 pm
9073
... Well, as I forget this possibility in my late post, I will show you here: For type: you have in one.ml: type t1 = Foo of Two.t2 ... in two.ml type t2 = ...
Remi Vanicat
dl_ens
Offline Send Email
Dec 1, 2007
4:18 pm
9074
... If the reference is a function, you can also use this : in one.ml: let f : (int -> string -> string) ref = ref(fun _ _ _ -> failwith "not implemented yet")...
Remi Vanicat
dl_ens
Offline Send Email
Dec 1, 2007
4:25 pm
9075
... Sure. Consider a pair of mutually recursive functions: # let rec even ?(xs=[]) ?(ys=[]) = function ... and odd ?(xs=[]) ?(ys=[]) = function ... # even...
Jon Harrop
harropjon
Offline Send Email
Dec 1, 2007
4:37 pm
9076
... I am not sure I really understand the information in the maps file. I had a look at it, as well as the smaps file on my system. I also made two snapshots...
Till Crueger
yavimaja
Offline Send Email
Dec 1, 2007
5:09 pm
9077
... No, to is not what is meant : minor_words : Number of words allocated in the minor heap since the program was started. This number is accurate in byte-code...
Remi Vanicat
dl_ens
Offline Send Email
Dec 1, 2007
5:34 pm
9078
... Thanks for the references. Reins also implements zippers and I've been meaning to study them. I do use xml-light (lightly), and so might be interested in...
Ashish Agarwal
ashish_a1975
Offline Send Email
Dec 1, 2007
7:12 pm
9079
... I do believe that it would be possible to handle such common cases, that are quite frequent (it occures in this case for GnuTLS, but also in openGL). ...
Florent Monnier
fmonnier@...
Send Email
Dec 1, 2007
7:38 pm
9080
... CamlIDL handles the case when an unknown value for an enum is given by raising an exception: invalid_argument("enum ty: bad enum ty value");...
Florent Monnier
fmonnier@...
Send Email
Dec 1, 2007
8:25 pm
9081
... Interesting ... How well could camlidl deal with the infamous virDomainPinVcpu function? http://libvirt.org/html/libvirt-libvirt.html#virDomainPinVcpu To...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
10:48 pm
9082
... For an example of this in real code, take a look at how other modules are linked in to virt-top: ...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
10:51 pm
9083
... This Perl script might help you to interpret /proc/pid/maps: http://annexia.org/tmp/maps.pl ... [...] ... Remi covered this already, but I'll add that this...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2007
10:56 pm
9084
Thanks for your answer, ... There is a "viewer" file module in this project : it is a movable an "zoomable" window on a universe computed by another file ...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
11:51 pm
9085
Thanks a lot Rémi ! ... Thanks for this nice illustration of the interesting method Jon spoke about. Regards, Fabrice...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
11:51 pm
9086
... That is interesting, thanks ! But It makes me think to this now : even forgetting these circular dependencies, IMHO any initialization of a reference that...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
11:51 pm
9087
... Thanks a lot ! ... That is absolutely cool ! ... Thanks for this interesting method I just discover here. Regards, Fabrice...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 1, 2007
11:51 pm
9088
... Thanks, Regards, Fabrice Nothing to do with the subject : The listing paper is nice. IMHO it would be even cooler with pale green strips instead of grey...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Dec 2, 2007
12:00 am
9089
Hi, How can I bytecode compile a source file that was written using the camlp4 stream parser syntax extension ([<>])? Thanks in advance, Tim...
Tim ODonnell
tjo5
Offline Send Email
Dec 2, 2007
12:57 am
9090
... You just supply "-pp camlp4oof" on the command line: $ cat >tmp.ml parser [< >] -> [];; $ ocamlc -pp camlp4oof tmp.ml -o tmp -- Dr Jon D Harrop, Flying...
Jon Harrop
harropjon
Offline Send Email
Dec 2, 2007
1:23 am
9091
... I would like to do the same thing for the parsed HTML tree that OcamlNet generates. Assuming I ever have time (and that someone hasn't beaten me to it.)...
Karl Zilles
kzilles
Offline Send Email
Dec 3, 2007
7:05 pm
Messages 9062 - 9091 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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