trrkkkkk has quit [Read error: 113 (No route to host)]
<jordan->
how do i represent the empty character in ocaml?
<jordan->
for example i want a char representation of ""
<jordan->
i have a function: string_to_list defined as follows.. let l = ref [] in ((String.iter (fun x -> l := (List.append !l [x])) s); !l);; which right now maps "" to [], which is wrong.
sponge45 has quit ["zzzzzzzzzz"]
<fremo>
jordan-: are you sure this character exists ? :)
danly has joined #ocaml
danly has quit ["Leaving"]
Smerdyakov has quit ["Leaving"]
buluc1 has joined #ocaml
dibblego has quit ["Leaving"]
marburg has joined #ocaml
bluestorm has joined #ocaml
<marburg>
if i have a function written in moo.ml, how do I use that fuction in cow.ml?
<flux__>
jordan-, I don't see how that is wrong
<flux__>
marburg, Moo.func ()
<flux__>
marburg, ocamlc -o prog moo.ml cow.ml
<marburg>
flux__: alright, neat. how about if I want to use it from the interactive ocaml shell?
<ulfdoz>
ocaml?
<flux__>
jordan-, btw, you don't need all those pafenthesis, you can drop atleast (( and (List..
falconair has quit [Client Quit]
<flux__>
marburg, #load "moo.cmo";; or #use "moo.ml";; or ocaml moo.(ml|cmo)
<flux__>
then again Moo.foo
<flux__>
or open Moo;; after which the functions are in the current scope
bluestorm has quit ["Konversation terminated!"]
<marburg>
flux__: that's exactly what I needed :D
* marburg
dances
danly has joined #ocaml
Skal has joined #ocaml
<flux__>
glad to help with the first steps, although peering through the manual is a good idea too ;)
pango__ has joined #ocaml
<flux__>
marburg, btw, another point: you have found rlwrap (or ledit), haven't you?
<flux__>
useful little things
<marburg>
flux__: sorry, what?
* marburg
looks up rlwrap
pango_ has quit [Remote closed the connection]
<Shimei>
So I've been reading _Practical_OCaml_. It's pretty interesting, I like how the first major example project uses marshaling and hashtables to make a database. Fun stuff.
<flux__>
shimei, so how do you like the book?
<flux__>
people here have been asking that
<Shimei>
I'm not far enough to review it yet, but I think it does a good job of showing OCaml off. It seems to be intended to awe experienced programmers (who already know another language), rather than the complete newbie.
_velco has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [No route to host]
danly has quit [Remote closed the connection]
iZZy`` has quit [Read error: 60 (Operation timed out)]
iZZy`` has joined #ocaml
marburg has quit [Remote closed the connection]
gene9 has joined #ocaml
pango__ has quit [Remote closed the connection]
pango has joined #ocaml
gene9 has quit [Remote closed the connection]
love-pingoo has joined #ocaml
velco has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
lde has quit ["ERC Version 5.1.4 (IRC client for Emacs)"]
dibblego has joined #ocaml
trrkkkkkk has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 104 (Connection reset by peer)]
trrkkkkk has quit [Read error: 145 (Connection timed out)]
Snark has joined #ocaml
MisterC has joined #ocaml
lde has joined #ocaml
Skal has quit [Read error: 60 (Operation timed out)]
iZZy`` is now known as ikaros
dibblego has quit [Read error: 110 (Connection timed out)]
joshcryer has quit [Connection timed out]
Leonidas has joined #ocaml
khaladan_ has joined #ocaml
khaladan has quit [Connection timed out]
khaladan has joined #ocaml
khaladan_ has quit [Read error: 145 (Connection timed out)]
chessguy has joined #ocaml
Smerdyakov has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [Read error: 148 (No route to host)]
trrkkkkkk has joined #ocaml
trrkkkkk has quit [Read error: 145 (Connection timed out)]
chessguy has quit [Read error: 60 (Operation timed out)]
ramkrsna has quit [Read error: 104 (Connection reset by peer)]
ramkrsna has joined #ocaml
trrkkkkkk has quit [Read error: 113 (No route to host)]
trrkkkkkk has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [Read error: 113 (No route to host)]
jordan- has quit ["This computer has gone to sleep"]
bmiller has joined #ocaml
trrkkkkkk has joined #ocaml
trrkkkkk has quit [Read error: 145 (Connection timed out)]
love-pingoo has quit ["Leaving"]
ramkrsna has quit [Remote closed the connection]
velco has quit [Remote closed the connection]
danly has joined #ocaml
_fab has joined #ocaml
unfo- has quit [Read error: 110 (Connection timed out)]
_velco has quit ["I'm outta here ..."]
bluestorm has joined #ocaml
trrkkkkk has joined #ocaml
trrkkkkkk has quit [Read error: 148 (No route to host)]
jajs has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
MisterC has quit [Remote closed the connection]
bluestorm has quit [zelazny.freenode.net irc.freenode.net]
Smerdyakov has quit [zelazny.freenode.net irc.freenode.net]
Leonidas has quit [zelazny.freenode.net irc.freenode.net]
cmeme has quit [zelazny.freenode.net irc.freenode.net]
batdog|gone has quit [zelazny.freenode.net irc.freenode.net]
descender has quit [zelazny.freenode.net irc.freenode.net]
ppsmimou has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
jdev has quit [zelazny.freenode.net irc.freenode.net]
piggybox has quit [zelazny.freenode.net irc.freenode.net]
eradman has quit [zelazny.freenode.net irc.freenode.net]
bluestorm has joined #ocaml
Smerdyakov has joined #ocaml
Leonidas has joined #ocaml
cmeme has joined #ocaml
batdog|gone has joined #ocaml
descender has joined #ocaml
ppsmimou has joined #ocaml
piggybox has joined #ocaml
Oatmeat|umn has joined #ocaml
jdev has joined #ocaml
eradman has joined #ocaml
chessguy has joined #ocaml
piggybox has quit [Connection timed out]
Leonidas has quit [Read error: 113 (No route to host)]
jajs has quit [Remote closed the connection]
jajs has joined #ocaml
mellum has quit [Read error: 104 (Connection reset by peer)]
joshcryer has joined #ocaml
Skal has joined #ocaml
postalchris has joined #ocaml
bluestorm has quit [Read error: 104 (Connection reset by peer)]
bluestorm has joined #ocaml
grigorij has joined #ocaml
<pango>
ftp://ftp.berlios.de/pub/mldonkey/pango/goodies/hashquality.ml (testing the quality of strings hashing...)
<pango>
Hashtbl.hash works like (s.[0] * 19 + s.[1]) * 19 + s.[2] ... so the number of collisions for single words is not minimal...
<pango>
(using a native int rolling accumulator, and stripping the sign before returning)