Yurik has quit ["Client exiting"]
docelic is now known as docelic|sleepo
taj has joined #ocaml
teratorn has quit [Excess Flood]
teratorn has joined #ocaml
teratorn has quit [Excess Flood]
teratorn has joined #ocaml
teratorn has quit [Excess Flood]
teratorn has joined #ocaml
taj has quit [Read error: 113 (No route to host)]
rhil|zzz is now known as rhil
Kinners has joined #ocaml
pattern_ has quit ["..."]
wax has joined #ocaml
Smerdyakov has quit ["sleep"]
rhil is now known as rhil|zzz
lam has quit [leguin.freenode.net irc.freenode.net]
rhil|zzz has quit [leguin.freenode.net irc.freenode.net]
mrvn_ has quit [leguin.freenode.net irc.freenode.net]
rox has quit [leguin.freenode.net irc.freenode.net]
foxster has quit [leguin.freenode.net irc.freenode.net]
themus has quit [leguin.freenode.net irc.freenode.net]
emu has quit [leguin.freenode.net irc.freenode.net]
wax has quit [leguin.freenode.net irc.freenode.net]
docelic|sleepo has quit [leguin.freenode.net irc.freenode.net]
skylan has quit [leguin.freenode.net irc.freenode.net]
asqui has quit [leguin.freenode.net irc.freenode.net]
asqui has joined #ocaml
asqui has quit [Excess Flood]
wax has joined #ocaml
docelic|sleepo has joined #ocaml
skylan has joined #ocaml
emu has joined #ocaml
asqui has joined #ocaml
lam has joined #ocaml
rhil|zzz has joined #ocaml
mrvn_ has joined #ocaml
rox has joined #ocaml
foxster has joined #ocaml
themus has joined #ocaml
asqui has quit [Excess Flood]
asqui has joined #ocaml
Kinners has left #ocaml []
reltuk has joined #ocaml
reltuk has quit ["leaving"]
docelic|sleepo is now known as docelic
Yurik has joined #ocaml
systems has joined #ocaml
gene9 has joined #ocaml
cDlm_ has joined #ocaml
systems has quit [Read error: 113 (No route to host)]
cDlm has quit [Read error: 110 (Connection timed out)]
karryall has joined #ocaml
skylan has quit [Read error: 60 (Operation timed out)]
docelic has quit [Read error: 54 (Connection reset by peer)]
docelic has joined #ocaml
cDlm_ is now known as cDlm
gene9 has left #ocaml []
Yurik has quit ["Client exiting"]
docelic is now known as docelic|away
<teratorn> can i open and use a third-party module, like ocamlnet, from the interactive interpreter?
<Riastradh> Yes -- do: #load "path/to/ocamlnet.cma";; and 'open Ocamlnet;;', I think.
<teratorn> ah ty
<teratorn> unbound value "load" :(
<Riastradh> No, it's '#load' -- the # wasn't the interpreter prompt.
<Riastradh> It should look like:
<Riastradh> # #load "/path/to/ocamlnet.cma";;
<teratorn> oh hehe
<Riastradh> # open Ocamlnet;;
<teratorn> Reference to undefined global `Pcre'
<teratorn> guess i need that too!
<teratorn> funny, i thought the debian package installed it...
<teratorn> funny, i did install it
<teratorn> s/i/it
<teratorn> ooooh
<teratorn> _I_ have to load it myself, how silly
<teratorn> silly modules, ought to load their own dependencies!
* teratorn squishes modules
<Riastradh> How do they know where to load them?
<Riastradh> Well, there's probably a flag to ocaml which adds the right path, but I don't know what it is.
<teratorn> well relative paths work
<teratorn> "pcre/pcre.cmx"
<teratorn> so apparently there's a built-in module search path
<teratorn> which is nice
mattam_ has joined #ocaml
<teratorn> of course there's the issue of global scope
<teratorn> loading one thing should put arbitrary crap into your global space
<teratorn> err
<teratorn> shouldn't
<teratorn> but that's what module-level scope as global scope is for
* teratorn isn't 100 percent clear on ocaml scoping
<teratorn> does it do that?
<Riastradh> Do what?
<teratorn> each module is sperately scoped right?
<teratorn> like
<teratorn> nm
<teratorn> it does, of course
* teratorn keeps veryfying his assumptions from the dynamically typed world :)
mattam has quit [Read error: 110 (Connection timed out)]
mattam_ has quit [leguin.freenode.net irc.freenode.net]
docelic|away has quit [leguin.freenode.net irc.freenode.net]
mattam has joined #ocaml
docelic|away has joined #ocaml
owll has joined #ocaml
docelic|away is now known as docelic
Smerdyakov has joined #ocaml
CybeRDukE has joined #ocaml
phubuh has joined #ocaml
<phubuh> hey guys
<phubuh> since lists aren't mutable, why don't they hash to the same hash?
<Smerdyakov> You mean equal lists?
<phubuh> oh, yes, sorry.
<Smerdyakov> Beats me
<phubuh> is there any way to create a hashtable (without completely reimplementing it) whose keys are lists?
<phubuh> so that after add [1; 2; 3], find [1; 2; 3] succeeds
<phubuh> hrm, Hashtbl.hash [1; 2; 3] yields the same result each time
<phubuh> but then again, so does Hashtbl.hash "foo"
<phubuh> :(
<teratorn> well naturally
<phubuh> hashtbl just hashes after address for all non-primitives? :/
<phubuh> byterun/hash.c looks very thread-unsafe
CybeRDukE is now known as CybeR[away]
<phubuh> hashtables are pretty useless if i can't use strings as keys
systems has joined #ocaml
<phubuh> uh, okay, this is really confusing me
<phubuh> let foo = "bar"; Hashtbl.add t foo; now Hashtbl.mem t foo should return true, shouldn't it?!
<systems> no
<phubuh> why's that?
<systems> .. ; ... ; .... ; .... is an expression sequence that return the value of the last expression
<phubuh> yes, what i meant was, after adding foo to t, shouldn't Hashtbl.mem t foo return true?
<systems> no type Hashtbl.add ;; in interactive mode
<phubuh> i am possibly the biggest idiot in the world
<systems> you will see Hashtbl.add signature
<phubuh> i just realized that i forgot the value ;_;
<systems> it returns () .. unit not a bool
<phubuh> thanks :)
<systems> :P
<systems> i am newbie by the way
<systems> dont thank newbies :)
<teratorn> why not?
<systems> i dont know , newbies feel guilty when someone tells em thank you
<teratorn> oh, i don't
<systems> ;)
karryall has quit ["tcho"]
mrvn has joined #ocaml
systems has quit ["Client Exiting"]
mrvn_ has quit [Read error: 110 (Connection timed out)]
CybeR[away] is now known as CybeRDukE
skub has joined #ocaml
skub has left #ocaml []
owll has quit ["Client Exiting"]
h has quit [Killed (bear.freenode.net (h(?) <- zelazny.freenode.net))]
h has joined #ocaml
Smerdyakov has quit ["work"]
lus|wazze has joined #ocaml
systems has joined #ocaml
systems has quit ["Client Exiting"]
CybeRDukE has quit ["There are 10 kinds of people in the world: Those who understand binary and those who don't..."]
<mrvn> There are 1 people in the world: Those that start counting at 0 and the other kind.
Demitar has joined #ocaml
Demitar has quit ["There are bubbles in the air..."]
TachYon has joined #ocaml
Demitar has joined #ocaml
Demitar has quit ["There are bubbles in the air..."]
<Riastradh> How do people generally do 'class variables' in OCaml, such that every subclass has its own allocation for them?
skub has joined #ocaml
skub has left #ocaml []