Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ocaml_beginners · Ocaml Beginners

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 4201 - 4230 of 13897   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
4201 Richard Jones
rwmjones Send Email
Sep 1, 2005
11:48 am
... Yes, ExtLib is work in progress. If there are functions which are missing, then please suggest them or even provide patches. Rich. -- Richard Jones, CTO...
4202 Chris Campbell
chrisdanx Send Email
Sep 1, 2005
7:27 pm
Hi, I just profiled my implicit surface polygonizer (a conversion of J Bloomenthals graphics gem IV) to see what's taking so long. compare_val is taking 357.32...
4203 Jon Harrop
harropjon Send Email
Sep 1, 2005
7:38 pm
... IIRC, yes. ... Look at the second section of gprof's profile, that describes how long was spent in each call from each function. Look to see which...
4204 Chris Campbell
chrisdanx Send Email
Sep 1, 2005
8:09 pm
... Looks like compare_val is being called most by a function camlPolygonizer__equal_113 which must be created by the compiler. Looks like that function is...
4205 Martin Jambon
BioMim Send Email
Sep 1, 2005
8:48 pm
... Try this: let ( =* ) ((x, y, z) : int * int * int) (x', y', z') = x = x && y = y' && z = z' let ( <>* ) ((x, y, z) : int * int * int) (x', y', z') = x <>...
4206 Chris Campbell
chrisdanx Send Email
Sep 1, 2005
10:08 pm
... Will do. I just tried an absurdly simple test to see how common compare_val is. For one call on a torus surface function, the following function does 5000+...
4207 Robert Roessler
robertr959 Send Email
Sep 1, 2005
10:08 pm
... I am glad you received examples that showed how easy this is... presumably anyone working with networking protocols designed to facilitate the transfer of...
4208 Jon Harrop
harropjon Send Email
Sep 2, 2005
12:11 am
I'll try to provide some general advice on this code. ... The types specified in the mli file do not affect the typing in the generated code, i.e. polymorphic...
4209 Hugo Ferreira
hugotwo3 Send Email
Sep 2, 2005
10:21 am
Hi, I have the following code snippet: let complete_mgu mgu = let sub k v = Hashtbl.replace mgu k (substitute mgu v) ; () in Hashtbl.iter ( sub ) mgu It simple...
4210 Richard Jones
rwmjones Send Email
Sep 2, 2005
12:00 pm
... IIRC triples of integers are boxed, resulting, in this case, in four times the allocation overhead compared to using an array or record. Also if you write:...
4211 Frederic van der Plan...
fplancke2001 Send Email
Sep 2, 2005
12:01 pm
... Indeed, from what you say it looks potentially dangerous. A safe option (but somewhat costlier) would be to store in the hashtable not the values...
4212 Richard Jones
rwmjones Send Email
Sep 2, 2005
12:04 pm
Have you thought about using a Map instead? What you are trying to do can be very nicely expressed using a map operation over a Map, and there can never be...
4213 Hugo Ferreira
hugotwo3 Send Email
Sep 2, 2005
12:29 pm
Hi Rich, ... I have opted to simply generate a new hash table when changing values whilst iterating through it. I guess this is equivalent to using Map but...
4214 Hugo Ferreira
hugotwo3 Send Email
Sep 2, 2005
12:35 pm
Frédéric, ... Changing the data to a reference will mean changing quite a bit of code. I will simply use the above function to generate a new hash table and...
4215 Remi Vanicat
dl_ens Send Email
Sep 2, 2005
12:41 pm
... No. triples of integers, record and array of 3 element do have exactly the same in memory representation. What you saying is true only for float. ... ...
4216 Jon Harrop
harropjon Send Email
Sep 2, 2005
1:03 pm
... It is safe in the sense that ML programs are safe (e.g. they cannot segfault) but it will probably give undefined behaviour when it replaces a value in the...
4217 Hugo Ferreira
hugotwo3 Send Email
Sep 2, 2005
2:28 pm
Hi Jon, ... When I meant safe it was in regards to execution behavior. ... Both options have been suggested. For now I will simply copy the hash table and...
4218 Jon Harrop
harropjon Send Email
Sep 2, 2005
3:03 pm
... Sorry, my internet connection is being very unreliable... :-( ... Right, so "substitution&quot; will not mutate the hash table, just read from it. -- Dr Jon D...
4219 Hugo Ferreira
hugotwo3 Send Email
Sep 2, 2005
3:26 pm
Hi Jon, ... No problem. ... Exactly. Hugo F....
4220 Chris Campbell
chrisdanx Send Email
Sep 2, 2005
5:25 pm
... Thanks. I partially rewrote it with type annotations almost everywhere and reduced parameter passing. compare_val still dominates but the over all run...
4221 Jon Harrop
harropjon Send Email
Sep 2, 2005
6:39 pm
... If the OCaml is 2 orders of magnitude slower then something is very wrong... ... Given the results of my ray tracer, I'd expect OCaml to be almost as fast...
4222 Martin Jambon
BioMim Send Email
Sep 2, 2005
7:06 pm
... What I understand is that all the following cases can happen if you add something during iter: 1) what you add will be scanned by iter because it is added...
4223 Chris Campbell
chrisdanx Send Email
Sep 2, 2005
9:39 pm
... Yep. :) ... Yep. My thought is either it is not culling properly or the data structures aren't suitable in terms of complexity (the hash tables probably)...
4224 André Næss
andnaess Send Email
Sep 2, 2005
10:31 pm
While writing a simple parser I decided I would force myself to drop the ever so tempting while loop, and see if I could figure out how to write in a more...
4225 Jon Harrop
harropjon Send Email
Sep 2, 2005
11:20 pm
... Is that marching cubes/tetrahedra? It would be great to publish an open-source 3D tesselator! ... Yep. I think Jacques overlooked that but it isn't too...
4226 Jon Harrop
harropjon Send Email
Sep 2, 2005
11:37 pm
... The evaluation order is unspecified in many cases for efficiency. There was a thread about this very recently on caml-list. ... Yes: don't assume that...
4227 David Thomas
david_hd Send Email
Sep 3, 2005
1:49 am
... Any particular reason behind that in particular? I'm a mite surprised that j and k are being multiplied by the same... ...
4228 Radu Grigore
radugrigore Send Email
Sep 3, 2005
8:37 am
... That is probably a typo since let def_hash (i, j, k) = i + (j lsl 10) + (k lsl 20) works almost twice as fast. ...
4229 Jon Harrop
harropjon Send Email
Sep 3, 2005
11:05 am
... Yeah, that was a mistake but it actually works just as well as with k<<20, which is what I intended to code. :-) -- Dr Jon D Harrop, Flying Frog...
4230 Jon Harrop
harropjon Send Email
Sep 3, 2005
11:06 am
... That's weird - it is actually slightly slower here. That's probably because I altered the problem though... -- Dr Jon D Harrop, Flying Frog Consultancy...
Messages 4201 - 4230 of 13897   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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