docelic has quit ["later"]
brwill|zzz is now known as brwill
lus|wazs has quit ["sul °°"]
lus|wazs has joined #ocaml
systems has joined #ocaml
m[kel[ has joined #ocaml
mattam_ has quit [leguin.freenode.net irc.freenode.net]
smklsmkl has quit [leguin.freenode.net irc.freenode.net]
whee has quit [leguin.freenode.net irc.freenode.net]
mattam_ has joined #ocaml
smklsmkl has joined #ocaml
whee has joined #ocaml
asqui has quit [Excess Flood]
asqui has joined #ocaml
smklsmkl has quit [Read error: 54 (Connection reset by peer)]
Smerdyakov has quit ["Client exiting"]
Smerdyakov has joined #ocaml
Smerdyakov has quit ["brb"]
systems has quit ["Client Exiting"]
Smerdyakov has joined #ocaml
Smerdyakov has quit [Remote closed the connection]
Smerdyakov has joined #ocaml
lus|wazs has quit ["sul °°"]
Smerdyakov has quit [Read error: 54 (Connection reset by peer)]
Smerdyakov has joined #ocaml
Smerdyakov has quit ["tryin' stuff"]
Smerdyakov has joined #ocaml
Smerdyakov has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has joined #ocaml
teratorn has joined #ocaml
Smerdyakov has quit ["brb"]
Smerdyakov has joined #ocaml
Smerdyakov has quit [Read error: 54 (Connection reset by peer)]
Smerdyakov has joined #ocaml
Psion has joined #ocaml
Smerdyakov has quit [Killed (NickServ (for nickname owner))]
Psion is now known as Smerdyakov
Smerdyakov has quit ["sleep"]
whee has quit ["Leaving"]
__DL__ has joined #ocaml
docelic has joined #ocaml
docelic has quit [Remote closed the connection]
lus|wazs has joined #ocaml
mattam_ is now known as mattam
teratorn has quit [Read error: 110 (Connection timed out)]
systems has joined #ocaml
async has joined #ocaml
<
async>
is a reference of a class the same size (in memory) of the class?
<
async>
basically, i have a large Hashtbl of type (int, class)
<
async>
but different numbers may be associated with the same class... so the Hashtbl could grow very large
<
Riastradh>
Er, classes are first-class values?
<
Riastradh>
What part of my question didn't you understand?
<
async>
yeah they are
<
async>
just i wasn't sure what first-class values are
<
async>
i just don't want to be storing 50 copies of one class in a Hashtbl
<
Riastradh>
How do you get a class value?
<
async>
i have a list of the classes that ive created
<
Riastradh>
But how do you get classes in the first place?
<
Riastradh>
No, that's how you get instances of classes.
<
async>
i don't understand the question
<
Riastradh>
OK, suppose I do:
<
Riastradh>
class foo = object method print = print_string "foo" end
<
Riastradh>
How do you put the class 'foo' into a list?
<
async>
let classlist : foo list ref = ref [];
<
async>
classlist := !classlist @ [new foo];;
phubuh has joined #ocaml
<
async>
something like that
<
Riastradh>
Er, first of all, why are you using refs here?
<
async>
no reason specifically
<
Riastradh>
Second, that's a list of foo -instances- -- not a list containing the class 'foo' itself.
<
async>
crap, i misworded my initial question
<
async>
i just don't want to be storing 50 copies of one instance in a Hashtbl ;)
<
mattam>
basically a reference is a pointer, so sizeof(int) approximatively
<
mattam>
and no copies
<
async>
so storing 50 instance references would be a lot more efficient than storing 50 instances?
systems has quit ["Client Exiting"]
<
async>
(instances of the same class)
<
phubuh>
has storing 50 objects in a hashtable been proven to be too inefficient by a profiler or likewise?
async has quit ["leaving"]
async has joined #ocaml
async_ has joined #ocaml
async_ has quit [Client Quit]
Smerdyakov has joined #ocaml
ragzter has joined #ocaml
<
phubuh>
ragzter 8]
<
ragzter>
phubuh 8}
whee has joined #ocaml
__DL__ has quit [leguin.freenode.net irc.freenode.net]
Riastradh has quit [leguin.freenode.net irc.freenode.net]
lam has quit [leguin.freenode.net irc.freenode.net]
vegai has quit [leguin.freenode.net irc.freenode.net]
brwill has quit [leguin.freenode.net irc.freenode.net]
__DL__ has joined #ocaml
Riastradh has joined #ocaml
lam has joined #ocaml
vegai has joined #ocaml
brwill has joined #ocaml
asqui has quit [Excess Flood]
asqui has joined #ocaml
brwill is now known as brwill|nap
docelic has joined #ocaml
lus|wazs has quit ["sul °°"]
lus|wazs has joined #ocaml
docelic has quit ["later folks"]
brwill|nap is now known as brwill|out
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
lus|wazs has quit ["sul °°"]
lus|wazs has joined #ocaml