mfp changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released | Inscription for OCaml Meeting 2010 is opened http://wiki.cocan.org/events/europe/ocamlmeetingparis2010
ReachingFarr has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
tmaedaZ is now known as tmaeda
krankkatze has quit [Remote host closed the connection]
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
SEcki has quit [Remote host closed the connection]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
Sgeo has quit [Ping timeout: 264 seconds]
avsm has quit [Client Quit]
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
Amorphous has quit [Ping timeout: 264 seconds]
tmaeda has quit [Ping timeout: 276 seconds]
tmaedaZ has joined #ocaml
Amorphous has joined #ocaml
<derdon> still anyone there to help?
<Camarade_Tux> don't ask to ask, just ask ;-)
<derdon> ok :)
<derdon> this is my code: http://paste.pocoo.org/show/193554/
<derdon> but ocaml says there is an error in line 14
<Camarade_Tux> method x = let a = 3
<Camarade_Tux> ?
<derdon> oh, got it :) thank you very much
<Camarade_Tux> and it's not name=~command but ~comand:name
<Camarade_Tux> ah, err, wait a bit, misread
<derdon> oh, yes
<derdon> so ~name=command is correct?
<Camarade_Tux> your List.filter call is weird
<Camarade_Tux> I would have used List.filter ((=) name) !callbacks
<Camarade_Tux> or List.filter (fun s -> name = s) !callbacks
<Camarade_Tux> (does the same)
<derdon> yes, (=) is better
<derdon> I like how ocaml uses infix operators :)
sc30317 has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
<mrvn> Many people write ( = ) so ( * ) doesn't look like the odd thing out.
<derdon> nevertheless, I cannot use (=)
orbitz_ has joined #ocaml
struktured has quit [*.net *.split]
boscop has quit [*.net *.split]
derdon has quit [*.net *.split]
linus5 has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
shr3kst3r has quit [*.net *.split]
infoe has quit [*.net *.split]
Amorphous has quit [*.net *.split]
thieusoai has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
caligula_ has quit [*.net *.split]
ski has quit [*.net *.split]
mrvn has quit [*.net *.split]
_unK has quit [*.net *.split]
sshc has quit [*.net *.split]
peper has quit [*.net *.split]
ninegrid has quit [*.net *.split]
orbitz has quit [*.net *.split]
Chile has quit [*.net *.split]
Associat0r has quit [*.net *.split]
rwmjones has quit [*.net *.split]
MrEvil has quit [*.net *.split]
drk-sd has quit [*.net *.split]
drewbert has quit [*.net *.split]
Demitar has quit [*.net *.split]
mal`` has quit [*.net *.split]
CodeBlock has quit [*.net *.split]
javax_ has quit [*.net *.split]
jeddhaberstro has quit [*.net *.split]
Ori_B_ has quit [*.net *.split]
|Jedai| has quit [*.net *.split]
bitbckt has quit [*.net *.split]
bacam has quit [*.net *.split]
joewilliams_away has quit [*.net *.split]
mehdid has quit [*.net *.split]
hugin has quit [*.net *.split]
orbitz_ has quit [Client Quit]
orbitz has joined #ocaml
Tianon has joined #ocaml
bitbckt has joined #ocaml
Ori_B has joined #ocaml
bacam has joined #ocaml
_unK has joined #ocaml
Associat0r has joined #ocaml
rwmjones has joined #ocaml
MrEvil has joined #ocaml
boscop has joined #ocaml
drk-sd has joined #ocaml
derdon has joined #ocaml
drewbert has joined #ocaml
struktured has joined #ocaml
Demitar has joined #ocaml
linus5 has joined #ocaml
Pepe_ has joined #ocaml
CodeBlock has joined #ocaml
mal`` has joined #ocaml
javax_ has joined #ocaml
shr3kst3r has joined #ocaml
infoe has joined #ocaml
jeddhaberstro has joined #ocaml
Chile has joined #ocaml
joewilliz has joined #ocaml
sshc has joined #ocaml
bitbckt has quit [Changing host]
bitbckt has joined #ocaml
mehdid has joined #ocaml
Amorphous has joined #ocaml
thieusoai has joined #ocaml
Asmadeus has joined #ocaml
caligula_ has joined #ocaml
ski has joined #ocaml
mrvn has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
hugin has joined #ocaml
peper has joined #ocaml
<mrvn> derdon: let print_tuple (a,b,c,d) = Printf.printf "%s %p %s %s\n" a b c d
<mrvn> derdon: It might make sense to use a hashtable instead of a list
<derdon> okay. why a hashtable?
|Jedai| has joined #ocaml
<mrvn> O(log n) lookup
<derdon> currently, callbacks is a list of tuples
Tianon has quit [Quit: brb]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
<derdon> should it be a list of hashtables then? or a hashtable of tuples?
<derdon> ah, I see. a hastable of tuples!
<mrvn> (string, tuple) Hashtbl.t
<mrvn> and method get_help command = try Hashtbl.find callbacks command with Not_found -> "No such command" or something.
alp has joined #ocaml
alp has quit [Read error: Connection reset by peer]
Alpounet has quit [Read error: Connection reset by peer]
alp__ has joined #ocaml
alp__ has quit [Read error: Connection reset by peer]
Alpounet has joined #ocaml
Associat0r has quit [Quit: Associat0r]
sc30317 has quit [Quit: Leaving]
philtor has joined #ocaml
Sgeo has joined #ocaml
xcthulhu has joined #ocaml
boscop_ has joined #ocaml
jeddhaberstro has quit [Ping timeout: 264 seconds]
boscop has quit [Ping timeout: 258 seconds]
philtor has quit [Ping timeout: 276 seconds]
drk-sd has quit [Quit: {'EXIT', drk-sd, "bye"}]
derdon has quit [Quit: derdon]
drunK has joined #ocaml
peper has quit [Ping timeout: 246 seconds]
|Jedai| has quit [Ping timeout: 246 seconds]
sshc has quit [Ping timeout: 246 seconds]
_unK has quit [Ping timeout: 246 seconds]
Chile has quit [Ping timeout: 246 seconds]
Amorphous has quit [*.net *.split]
thieusoai has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
caligula_ has quit [*.net *.split]
ski has quit [*.net *.split]
mrvn has quit [*.net *.split]
_Jedai_ has joined #ocaml
sshc has joined #ocaml
peper has joined #ocaml
Chile has joined #ocaml
Amorphous has joined #ocaml
thieusoai has joined #ocaml
Asmadeus has joined #ocaml
caligula_ has joined #ocaml
ski has joined #ocaml
mrvn has joined #ocaml
MrEvil has quit [Ping timeout: 245 seconds]
drunK is now known as _unK
drewbert has quit [Quit: Leaving.]
xcthulhu has quit [Ping timeout: 265 seconds]
ninegrid has joined #ocaml
myu2 has joined #ocaml
bzzbzz has quit [Quit: leaving]
enthymeme has joined #ocaml
rwmjones has quit [Read error: Connection timed out]
rwmjones has joined #ocaml
thrasibule has joined #ocaml
valross has joined #ocaml
boscop_ has left #ocaml []
boscop has joined #ocaml
_unK has quit [Remote host closed the connection]
yakischloba has quit [Quit: Leaving.]
rwmjones has quit [Ping timeout: 248 seconds]
ulfdoz has joined #ocaml
thrasibule has quit [*.net *.split]
Sgeo has quit [*.net *.split]
Mr_Awesome has quit [*.net *.split]
mfp has quit [*.net *.split]
mbishop has quit [*.net *.split]
Camarade_Tux has quit [*.net *.split]
sfuentes has quit [*.net *.split]
TaXules has quit [*.net *.split]
thrasibule has joined #ocaml
Sgeo has joined #ocaml
Mr_Awesome has joined #ocaml
mfp has joined #ocaml
mbishop has joined #ocaml
Camarade_Tux has joined #ocaml
sfuentes has joined #ocaml
TaXules has joined #ocaml
caligula_ has quit [Read error: Operation timed out]
caligula_ has joined #ocaml
oc13 has joined #ocaml
ygrek has joined #ocaml
ttamttam has joined #ocaml
enthymeme has quit [Quit: ]
ttamttam has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 245 seconds]
ttamttam has joined #ocaml
oc13 has quit [Ping timeout: 260 seconds]
rwmjones has joined #ocaml
Yoric has joined #ocaml
ikaros has joined #ocaml
spearalot has joined #ocaml
Submarine has joined #ocaml
th5 has joined #ocaml
myu2 has quit [Quit: Leaving...]
myu2 has joined #ocaml
xcthulhu has joined #ocaml
oc13 has joined #ocaml
_zack has joined #ocaml
oc13 has quit [Ping timeout: 252 seconds]
ygrek has joined #ocaml
myu2_ has joined #ocaml
myu2 has quit [Ping timeout: 246 seconds]
quelqun_dautre has quit [Ping timeout: 260 seconds]
quelqun_dautre has joined #ocaml
spearalot has quit [Quit: Computer has gone to sleep]
_zack has quit [Quit: Leaving.]
myu2_ has quit [Remote host closed the connection]
myu2 has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
spearalot has joined #ocaml
myu2 has quit [Remote host closed the connection]
_andre has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
pimmhogeling has joined #ocaml
_zack has joined #ocaml
derdon has joined #ocaml
_unK has joined #ocaml
ikaros has joined #ocaml
pimmhogeling has quit [Remote host closed the connection]
alp has joined #ocaml
Alpounet has quit [Read error: Connection reset by peer]
tmaedaZ is now known as tmaeda
alp has quit [Client Quit]
Alpounet has joined #ocaml
jimmyb2187 has joined #ocaml
tmaeda has quit [Ping timeout: 248 seconds]
tmaeda has joined #ocaml
derdon has quit [Quit: derdon]
ikaros has quit [Ping timeout: 246 seconds]
orbitz has quit [Quit: Reconnecting]
orbitz has joined #ocaml
valross has quit [Quit: Ex-Chat]
bzzbzz has joined #ocaml
ikaros has joined #ocaml
xcthulhu has quit [Ping timeout: 265 seconds]
oc13 has joined #ocaml
shr3kst3r has quit [Quit: leaving]
oc13 has quit [Quit: Leaving.]
rwmjones has left #ocaml []
rwmjones has joined #ocaml
bzzbzz has quit [Quit: leaving]
bzzbzz has joined #ocaml
_unK has quit [Remote host closed the connection]
tmaeda is now known as tmaedaZ
drk-sd has joined #ocaml
yakischloba has joined #ocaml
pimmhogeling has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 276 seconds]
spearalot has quit [Quit: -arividerchi]
CcSsNET has quit [Ping timeout: 248 seconds]
ccasin has joined #ocaml
kaustuv has joined #ocaml
CcSsNET has joined #ocaml
_zack has quit [Quit: Leaving.]
derdon has joined #ocaml
Associat0r has joined #ocaml
thieusoai has quit [Quit: Leaving]
th5 has quit [Quit: th5]
thieusoai has joined #ocaml
pimmhogeling has quit [Ping timeout: 265 seconds]
joewilliz has quit [Quit: ZNC - http://znc.sourceforge.net]
joewilliams has joined #ocaml
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
ikaros has quit [Quit: Leave the magic to Houdini]
ttamttam has quit [Quit: Leaving.]
Demitar has quit [Quit: Bubbles!]
kaustuv has quit [Ping timeout: 265 seconds]
Demitar has joined #ocaml
slash_ has joined #ocaml
SEcki has joined #ocaml
Submarine has quit [Quit: Leaving]
ikaros has joined #ocaml
Mr_Awesome has quit [Quit: Hilarity ensues.]
Sgeo has quit [Read error: Connection reset by peer]
Blasa has joined #ocaml
Blasa is now known as Guest84023
Guest84023 has left #ocaml []
eb4890 has joined #ocaml
Yoric has quit [Quit: Yoric]
enthymeme has joined #ocaml
joewilliams is now known as joewilliams_away
xcthulhu has joined #ocaml
_unK has joined #ocaml
fraggle_ has quit [Quit: -ENOBRAIN]
<Camarade_Tux> thelema: btw, the reason I'm using Sexp and not Marshal is because I only deal with text, might be (string * string) list, but nothing fancier
maskd has joined #ocaml
<thelema> Camarade_Tux: fair enough. It's definitely better than writing your own parser/pretty printer.
fraggle_ has joined #ocaml
<Camarade_Tux> I'd also like to disable the compression in Marshal since it's really bad for any other compression you may want to apply later on (I think a patch for that would most probably be accepted and should be pretty easy)
<thelema> Are your string*string lists that big?
<Camarade_Tux> for my current project (should never reach 10MB, and that's generous), no, but I had bigger strings in another project
<Camarade_Tux> hmmm, according to Murphy's Law, a user will have a string bigger than 16MB on a 32bit machine =/
yakischloba has quit [Read error: Connection reset by peer]
<Camarade_Tux> thanks for the link, it'll probably be useful =)
Submarine has joined #ocaml
ttamttam has joined #ocaml
joewilliams_away is now known as joewilliams
yakischloba has joined #ocaml
joewilliams is now known as joewilliams_away
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
xcthulhu has quit [Ping timeout: 276 seconds]
Demitar has quit [Quit: Bubbles!]
enthymeme has joined #ocaml
Demitar has joined #ocaml
xcthulhu has joined #ocaml
ulfdoz_ has quit [Quit: Reconnecting]
ulfdoz has joined #ocaml
ttamttam has quit [Quit: Leaving.]
ulfdoz has quit [Quit: sry]
ulfdoz has joined #ocaml
joewilliams_away is now known as joewilliams
rwmjones has quit [Ping timeout: 248 seconds]
joewilliams is now known as joewilliams_away
rwmjones has joined #ocaml
krankkatze has joined #ocaml
eb4890 has quit [Ping timeout: 258 seconds]
_andre has quit [Quit: leaving]
xcthulhu has quit [Ping timeout: 252 seconds]
smimou has quit [Ping timeout: 248 seconds]
smimou has joined #ocaml
<derdon> how can I define recursive methods?
<derdon> ``method rec foo = ...`` doesn't work
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
<flux> simply use your defined self-object
<flux> recd-keyword is not required
<derdon> ok
<flux> .. onject (self) method foo = 5 + self#foo end
<derdon> is there a recursion limit?
<derdon> by the way: is a recursive function/method the usual way to create an infinite loop in ocaml?
<flux> if the recursion isn't tail recursion, the size of the stack will limit the amount of recursion you can do
<flux> and yes it is
<flux> (obviously it is tail-recursion in thoss cases)
<flux> usually the consecutive rounds of infinite loops depend on each other, so therefore it is not convenient to use while loops, unless you also use mutable state
<flux> so when one writes an infinite loop, the next round of the loop gets the state of the previous loop as its parameter
<derdon> my infinite loop doesn't get any parameters at all
<derdon> let rec loop () = ...; loop ()
<derdon> well, it gets unit
maskd has quit [Quit: leaving]
bzzbzz has quit [Quit: leaving]
enthymeme has joined #ocaml
jeddhaberstro has joined #ocaml
<flux> it gets return type unit?
<flux> it should get return type 'a..
<flux> oh, right, you mean as its parameter, nvm
<derdon> why is no exception raised when I hit Ctrl+C when a function waits for input (for example read_line)? there is the text "Interrupted." displayed, but no exception is raised
Submarine has quit [Ping timeout: 258 seconds]
<flux> in toplevel?
<flux> possibly toplevel hooks SIGINT on its own
<derdon> flux: does it make a difference whether in toplevel or an executed *.ml file?
xevz has left #ocaml []
<derdon> the exception End_of_file is raised when I hit Ctrl+D
<derdon> but no exception (only output) when I hit Ctrl+C
<flux> derdon, Sys.catch_break true
<derdon> ok, a bit strange
<derdon> thanks
ccasin has quit [Quit: Leaving]
Associat0r has quit [Quit: Associat0r]
Associat0r has joined #ocaml
maskd has joined #ocaml
ulfdoz has quit [Ping timeout: 264 seconds]
bmp has joined #ocaml
valross has joined #ocaml
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
ygrek has quit [Ping timeout: 245 seconds]
pimmhogeling has joined #ocaml
slash_ has quit [Quit: Lost terminal]