docelic is now known as docelic|sleepo
pattern_ has joined #ocaml
reltuk has joined #ocaml
lus|wazze has quit ["sul °°"]
reltuk has quit ["leaving"]
rhil|zzz is now known as rhil
Kinners has joined #ocaml
Smerdyakov has joined #ocaml
skylan has joined #ocaml
<teratorn> anyone use ocamlnet?
<teratorn> the damn thing just says "use read_mime_message" for example, but i don't even know how to access read_mime_message as it certainly isn't in the global scope
<teratorn> i do #load "netstring/netstring.cma";; which works
cys has joined #ocaml
<Kinners> you need to access it via Netmime.read_mime_message
cys has left #ocaml []
avida has joined #ocaml
pattern_ has quit ["..."]
Smerdyakov has quit ["sleep"]
avida has left #ocaml []
TachYon has quit [Remote closed the connection]
Kinners has left #ocaml []
docelic|sleepo has quit [No route to host]
__DL__ has joined #ocaml
<phubuh> hmm
<phubuh> i'm adding a lot of strings to a hashtable, and the time it takes to add one seems to increase linearly, yet irregularly
<phubuh> it starts out taking 0.2 seconds for 10,000 adds, now it's up to 4 seconds
<mellum> That shouldn't happen, really... maybe you've hit some worst case in the hash function?
<mellum> Are te strings very similar somehow?
<phubuh> well, they're lexicographically sorted english words
<phubuh> i'm applying this to an entire dictionary by the wat
<phubuh> there are about 500,000 words
<mellum> Hmm, do you start with the hash table sized appropriately already? Or does it get resized?
<phubuh> i'm passing 500,000 to Hashtbl.create
<phubuh> which should be more than enough
<mellum> Sorry, no idea then
<phubuh> :/
cDlm_ has joined #ocaml
cDlm has quit [Read error: 110 (Connection timed out)]
docelic has joined #ocaml
systems has joined #ocaml
lus|wazze has joined #ocaml
systems has quit ["Client Exiting"]
cDlm_ is now known as cDlm
lam has quit ["Lost terminal"]
lus|wazze has quit ["sul °°"]
lam has joined #ocaml
lus|wazze has joined #ocaml
<phubuh> :/
<lus|wazze> ?
<phubuh> hah, wrong window.
<lus|wazze> :/
lam has quit ["leaving"]
lam has joined #ocaml
lam has left #ocaml []
lam has joined #ocaml
pattern_ has joined #ocaml
Smerdyakov has joined #ocaml
vegai has quit [Connection timed out]
CybeRDukE has joined #ocaml
mattam_ has joined #ocaml
TachYon has joined #ocaml
TachYon has quit [Remote closed the connection]
mattam has quit [Read error: 110 (Connection timed out)]
<CybeRDukE> hi
<CybeRDukE> i need to learn ocaml and now i'm looking for a good introduction
<CybeRDukE> i had a look at the tutorial mentioned on ocaml.org, but that's quite complex imho
<CybeRDukE> do you know a good tutorial?
<mellum> Well, the book is OK I guess, or the introduction in the manual
<lam> CybeRDukE: there is an OCaml book
<CybeRDukE> you mean the oreilly-book?
<lam> yes
<CybeRDukE> mellum: i really don't like the introduction in the manual. you have to guess the syntax from examples... that's at least my impression after the first 20 pages
<CybeRDukE> lam: thx, just downloaded the pdf
<mellum> well, the syntax is pretty easy, and also there's a syntax definition elsewhere in the manual :)
TachYon has joined #ocaml
CybeRDukE has quit ["If computers were a religion, I'd be the Pope."]
lus|wazze has quit ["sul °°"]
lus|wazze has joined #ocaml
TachYon has quit [Remote closed the connection]
Smerdyakov has quit ["work"]
__DL__ has quit ["Bye Bye"]
mrvn_ has joined #ocaml
docelic has quit [Read error: 113 (No route to host)]
docelic has joined #ocaml
mrvn has quit [Read error: 60 (Operation timed out)]
CybeRDukE has joined #ocaml
<CybeRDukE> hi again
<CybeRDukE> you were right, the book is great!
CybeRDukE is now known as CybeR[away]
mattam_ is now known as mattam
adam has joined #ocaml
<adam> Is there a standard OCaml function like SML's String.implode?
adam is now known as adamc
<mattam> what does it do ?
<adamc> It's String.implode : char list -> string; it makes a string with the given characters.
<mattam> no, not standard
CybeR[away] has quit ["A computer scientist is someone who, when told to 'Go to Hell', sees the 'go to', rather than the destination, as harmful."]
whee has joined #ocaml
<mrvn_> adamc: let implode l = let s = String.create (List.length l) in let rec loop i = function [] -> s | x::xs -> s.[i] <- x; loop (i+1) xs in loop 0 l
mrvn_ is now known as mrvn
lus|wazze has quit ["sul °°"]
adamc has quit ["BitchX: need we say more?"]
__DL__ has joined #ocaml
__DL__ has quit [Client Quit]