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...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

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 1901 - 1930 of 11540   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1901
... When you link an OCaml program, order of the compilation units matters. If a.cmo uses b.cmo, then b.cmo must be given first. You can't have mutually...
Martin Jambon
BioMim
Offline Send Email
May 1, 2004
8:39 am
1902
... Actually not so. Ocamlopt does very smart things to optimize these operations: see: http://www.merjis.com/developers/ocaml_tutorial/ch11/ Rich. -- Richard...
Richard Jones
rwmjones
Offline Send Email
May 1, 2004
10:34 am
1903
Hi all, Could anyone explain to me how to interpret map_file of the Bigarray lib? What I don't get is: "The data contained in this big array are the contents...
Viktor Tron
viktortron
Offline Send Email
May 5, 2004
11:15 am
1904
... This is a mapping, so the representation in the file must be exactly the same that the one in memory. (it is one of the reason why this is so efficient)....
Remi Vanicat
dl_ens
Offline Send Email
May 5, 2004
11:50 am
1905
Sorry, yes, of course, that is why it is mapping and not parsing, sure. BTW, if I create a bigarray, I can marshal it to and from a file with Marshal. But how...
Viktor Tron
viktortron
Offline Send Email
May 5, 2004
12:01 pm
1906
... I don't see any other way that to map a new bigarray (in a shared map), and then to copy the one you want to save in it. ... It is not specified, and I...
Remi Vanicat
dl_ens
Offline Send Email
May 5, 2004
12:26 pm
1907
Hello, I'm an OCaml newbie (actually, I'm new to functional languages altogether and, for all intents and purposes, to compiled languages as well). I've...
brian donovan
h4x0rific
Offline Send Email
May 8, 2004
9:49 pm
1908
I have date and time types defined as: type date = { year : int; month : int; day : int; } type time = { hour : int; min : int; sec : int; microsec : int; ...
Richard Jones
rwmjones
Offline Send Email
May 10, 2004
10:51 am
1909
... The internal order of the fields follow the type definition (necessary for interfacing with C). But nothing is specified about the behavior of "compare"...
Martin Jambon
BioMim
Offline Send Email
May 10, 2004
11:47 am
1910
(There was a discussion on this a few months ago on one of the lists but I can't find it now ...) Does anyone have a library or code for sharing strings? I...
Richard Jones
rwmjones
Offline Send Email
May 10, 2004
12:17 pm
1911
... What about using an Hashtbl ? It provides a fair comparison function based on hashed strings. Nicolas Cannasse...
Nicolas Cannasse
ncannasse
Offline Send Email
May 10, 2004
12:38 pm
1912
... I would have said the same. However, the strings will not be garbage-collected. Maybe using one which is based on weak pointers could be better. It exists...
Martin Jambon
BioMim
Offline Send Email
May 10, 2004
1:00 pm
1913
... This was my first impression, but doesn't this mean each string is actually being stored twice? Rich. -- Richard Jones. http://www.annexia.org/...
Richard Jones
rwmjones
Offline Send Email
May 10, 2004
1:05 pm
1914
... Oooooooooops, it looks like it is in the standard lib, module Weak. Martin...
Martin Jambon
BioMim
Offline Send Email
May 10, 2004
1:06 pm
1915
... Ah yes, well spotted! So what's really needed is a weak hash table which only stores the strings once ... Rich. -- Richard Jones. http://www.annexia.org/...
Richard Jones
rwmjones
Offline Send Email
May 10, 2004
1:10 pm
1916
... No, you just store a "pointer" value. You can also store () instead of the string itself, but I don't think it would make a big difference. Martin...
Martin Jambon
BioMim
Offline Send Email
May 10, 2004
1:14 pm
1917
... Ah yes, of course, my mistake. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving...
Richard Jones
rwmjones
Offline Send Email
May 10, 2004
1:48 pm
1918
Hi all, I have (once again) a question about network in ocaml. I'm trying to write a simple "browser" but even after hours of reading about ocaml, network,...
promiller
Offline Send Email
May 10, 2004
11:04 pm
1919
... open_connection *should* work with Win2k. On the other hand, Andrei Formiga was saying on this list that he could not get it to work. The problem seemed...
Karl Zilles
kzilles
Offline Send Email
May 10, 2004
11:29 pm
1920
... What you really want is to use "hash consing". The idea is similar to what is being already been posted(using a hashtbl), but you can also get a nice...
Mike Furr
pointless_login
Offline Send Email
May 11, 2004
12:16 am
1921
... [...] ... I don't know if perl4caml works with Win2K. If it does, then you'll be able to save yourself a lot of aggrevation by just using LWP::UserAgent...
Richard Jones
rwmjones
Offline Send Email
May 11, 2004
8:11 am
1922
In Haskell there's a way to make an ordinary function into an infix operator. I think the syntax is: f `map` [1;2];; (or whatever the equivalent Haskell...
Richard Jones
rwmjones
Offline Send Email
May 11, 2004
8:13 am
1923
... No. All you can do is the converse: # assert ((=) ((+) 3 5) 8);; - : unit = () # assert ((=) (( * ) 3 5) 15);; - : unit = () # assert ((=) (( * ) 3 5) 8);;...
Frederic van der Plan...
fplancke2001
Offline Send Email
May 11, 2004
8:23 am
1924
... ... Yes you can, if your function takes 2 args. For instance: Objective Caml version 3.07+2 # let myfun x y = x + y;; val myfun : int -> int -> int = <fun>...
JM Nunes
Jose.deAbreuNunes@...
Send Email
May 11, 2004
8:35 am
1925
... I'm aware of this, but in this case I want my functions to have easy to remember names. Rich. -- Richard Jones. http://www.annexia.org/...
Richard Jones
rwmjones
Offline Send Email
May 11, 2004
8:38 am
1926
Le mardi 11 mai, à 9h38 +0100, ... Hello, if you don't mind using camlp4, you might be interested in a small extension that I wrote some time ago ...
Virgile Prevosto
virgilepr
Offline Send Email
May 11, 2004
8:52 am
1927
This script runs without a problem on Debian Sid but not on Woody with 3.06 installed. I would like to know why? #!/usr/bin/ocaml #use "topfind";; (* On the...
Johann Spies
jspies@...
Send Email
May 11, 2004
10:33 am
1928
... I guess it is because the system thinks that ocaml is a script (its first line is #!/usr/bin/ocamlrun), thinks it might be dangerous and uses /bin/sh. One...
Martin Jambon
BioMim
Offline Send Email
May 11, 2004
12:09 pm
1929
... This is right - running scripts as interpreters is a security risk. Another solution is to compile your own toplevel. This is useful since you can also...
Mark McLauchlan
jamandbrie
Offline Send Email
May 11, 2004
12:31 pm
1930
... Thanks Martin. That makes a difference. Now it complaining about the lines with #use and #require. I suppose one will have to compile that into a new...
Johann Spies
jspies@...
Send Email
May 11, 2004
12:53 pm
Messages 1901 - 1930 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