00:01
ReachingFarr has joined #ocaml
00:07
ygrek has quit [Ping timeout: 245 seconds]
00:09
tmaedaZ is now known as tmaeda
00:10
krankkatze has quit [Remote host closed the connection]
00:16
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
00:24
SEcki has quit [Remote host closed the connection]
00:29
avsm has quit [Quit: Leaving.]
00:29
avsm has joined #ocaml
00:31
Sgeo has quit [Ping timeout: 264 seconds]
00:34
avsm has quit [Client Quit]
00:40
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
00:48
Amorphous has quit [Ping timeout: 264 seconds]
00:50
tmaeda has quit [Ping timeout: 276 seconds]
00:55
tmaedaZ has joined #ocaml
01:03
Amorphous has joined #ocaml
01:11
<
derdon >
still anyone there to help?
01:12
<
Camarade_Tux >
don't ask to ask, just ask ;-)
01:13
<
derdon >
but ocaml says there is an error in line 14
01:15
<
Camarade_Tux >
method x = let a = 3
01:16
<
derdon >
oh, got it :) thank you very much
01:16
<
Camarade_Tux >
and it's not name=~command but ~comand:name
01:16
<
Camarade_Tux >
ah, err, wait a bit, misread
01:16
<
derdon >
so ~name=command is correct?
01:17
<
Camarade_Tux >
your List.filter call is weird
01:17
<
Camarade_Tux >
I would have used List.filter ((=) name) !callbacks
01:17
<
Camarade_Tux >
or List.filter (fun s -> name = s) !callbacks
01:18
<
Camarade_Tux >
(does the same)
01:18
<
derdon >
yes, (=) is better
01:18
<
derdon >
I like how ocaml uses infix operators :)
01:18
sc30317 has joined #ocaml
01:20
ikaros has quit [Quit: Leave the magic to Houdini]
01:27
<
mrvn >
Many people write ( = ) so ( * ) doesn't look like the odd thing out.
01:27
<
derdon >
nevertheless, I cannot use (=)
01:29
orbitz_ has joined #ocaml
01:30
struktured has quit [*.net *.split]
01:30
boscop has quit [*.net *.split]
01:30
derdon has quit [*.net *.split]
01:30
linus5 has quit [*.net *.split]
01:30
Pepe_ has quit [*.net *.split]
01:30
shr3kst3r has quit [*.net *.split]
01:30
infoe has quit [*.net *.split]
01:30
Amorphous has quit [*.net *.split]
01:30
thieusoai has quit [*.net *.split]
01:30
Asmadeus has quit [*.net *.split]
01:30
caligula_ has quit [*.net *.split]
01:30
ski has quit [*.net *.split]
01:30
mrvn has quit [*.net *.split]
01:30
_unK has quit [*.net *.split]
01:30
sshc has quit [*.net *.split]
01:30
peper has quit [*.net *.split]
01:30
ninegrid has quit [*.net *.split]
01:30
orbitz has quit [*.net *.split]
01:30
Chile has quit [*.net *.split]
01:30
Associat0r has quit [*.net *.split]
01:30
rwmjones has quit [*.net *.split]
01:30
MrEvil has quit [*.net *.split]
01:30
drk-sd has quit [*.net *.split]
01:30
drewbert has quit [*.net *.split]
01:30
Demitar has quit [*.net *.split]
01:30
mal`` has quit [*.net *.split]
01:30
CodeBlock has quit [*.net *.split]
01:30
javax_ has quit [*.net *.split]
01:30
jeddhaberstro has quit [*.net *.split]
01:30
Ori_B_ has quit [*.net *.split]
01:30
|Jedai| has quit [*.net *.split]
01:30
bitbckt has quit [*.net *.split]
01:30
bacam has quit [*.net *.split]
01:30
joewilliams_away has quit [*.net *.split]
01:30
mehdid has quit [*.net *.split]
01:30
hugin has quit [*.net *.split]
01:30
orbitz_ has quit [Client Quit]
01:30
orbitz has joined #ocaml
01:31
Tianon has joined #ocaml
01:32
bitbckt has joined #ocaml
01:32
Ori_B has joined #ocaml
01:32
bacam has joined #ocaml
01:32
_unK has joined #ocaml
01:32
Associat0r has joined #ocaml
01:32
rwmjones has joined #ocaml
01:32
MrEvil has joined #ocaml
01:32
boscop has joined #ocaml
01:32
drk-sd has joined #ocaml
01:32
derdon has joined #ocaml
01:32
drewbert has joined #ocaml
01:32
struktured has joined #ocaml
01:32
Demitar has joined #ocaml
01:32
linus5 has joined #ocaml
01:32
Pepe_ has joined #ocaml
01:32
CodeBlock has joined #ocaml
01:32
mal`` has joined #ocaml
01:32
javax_ has joined #ocaml
01:32
shr3kst3r has joined #ocaml
01:32
infoe has joined #ocaml
01:33
jeddhaberstro has joined #ocaml
01:33
Chile has joined #ocaml
01:33
joewilliz has joined #ocaml
01:33
sshc has joined #ocaml
01:33
bitbckt has quit [Changing host]
01:33
bitbckt has joined #ocaml
01:33
mehdid has joined #ocaml
01:33
Amorphous has joined #ocaml
01:33
thieusoai has joined #ocaml
01:33
Asmadeus has joined #ocaml
01:33
caligula_ has joined #ocaml
01:33
ski has joined #ocaml
01:33
mrvn has joined #ocaml
01:33
Tianon has quit [Changing host]
01:33
Tianon has joined #ocaml
01:33
hugin has joined #ocaml
01:33
peper has joined #ocaml
01:33
<
mrvn >
derdon: let print_tuple (a,b,c,d) = Printf.printf "%s %p %s %s\n" a b c d
01:34
<
mrvn >
derdon: It might make sense to use a hashtable instead of a list
01:34
<
derdon >
okay. why a hashtable?
01:34
|Jedai| has joined #ocaml
01:34
<
mrvn >
O(log n) lookup
01:37
<
derdon >
currently, callbacks is a list of tuples
01:38
Tianon has quit [Quit: brb]
01:38
Tianon has joined #ocaml
01:38
Tianon has quit [Changing host]
01:38
Tianon has joined #ocaml
01:38
<
derdon >
should it be a list of hashtables then? or a hashtable of tuples?
01:38
<
derdon >
ah, I see. a hastable of tuples!
01:39
<
mrvn >
(string, tuple) Hashtbl.t
01:40
<
mrvn >
and method get_help command = try Hashtbl.find callbacks command with Not_found -> "No such command" or something.
01:42
alp has joined #ocaml
01:43
alp has quit [Read error: Connection reset by peer]
01:43
Alpounet has quit [Read error: Connection reset by peer]
01:43
alp__ has joined #ocaml
01:43
alp__ has quit [Read error: Connection reset by peer]
01:44
Alpounet has joined #ocaml
01:45
Associat0r has quit [Quit: Associat0r]
01:57
sc30317 has quit [Quit: Leaving]
02:00
philtor has joined #ocaml
02:08
Sgeo has joined #ocaml
02:11
xcthulhu has joined #ocaml
02:19
boscop_ has joined #ocaml
02:19
jeddhaberstro has quit [Ping timeout: 264 seconds]
02:20
boscop has quit [Ping timeout: 258 seconds]
02:29
philtor has quit [Ping timeout: 276 seconds]
02:32
drk-sd has quit [Quit: {'EXIT', drk-sd, "bye"}]
02:57
derdon has quit [Quit: derdon]
03:04
drunK has joined #ocaml
03:05
peper has quit [Ping timeout: 246 seconds]
03:05
|Jedai| has quit [Ping timeout: 246 seconds]
03:05
sshc has quit [Ping timeout: 246 seconds]
03:05
_unK has quit [Ping timeout: 246 seconds]
03:05
Chile has quit [Ping timeout: 246 seconds]
03:05
Amorphous has quit [*.net *.split]
03:05
thieusoai has quit [*.net *.split]
03:05
Asmadeus has quit [*.net *.split]
03:05
caligula_ has quit [*.net *.split]
03:05
ski has quit [*.net *.split]
03:05
mrvn has quit [*.net *.split]
03:05
_Jedai_ has joined #ocaml
03:05
sshc has joined #ocaml
03:06
peper has joined #ocaml
03:06
Chile has joined #ocaml
03:06
Amorphous has joined #ocaml
03:06
thieusoai has joined #ocaml
03:06
Asmadeus has joined #ocaml
03:06
caligula_ has joined #ocaml
03:06
ski has joined #ocaml
03:06
mrvn has joined #ocaml
03:08
MrEvil has quit [Ping timeout: 245 seconds]
03:09
drunK is now known as _unK
03:13
drewbert has quit [Quit: Leaving.]
03:34
xcthulhu has quit [Ping timeout: 265 seconds]
03:37
ninegrid has joined #ocaml
04:00
myu2 has joined #ocaml
04:20
bzzbzz has quit [Quit: leaving]
04:24
enthymeme has joined #ocaml
04:29
rwmjones has quit [Read error: Connection timed out]
04:30
rwmjones has joined #ocaml
04:54
thrasibule has joined #ocaml
05:18
valross has joined #ocaml
05:19
boscop_ has left #ocaml []
05:19
boscop has joined #ocaml
05:29
_unK has quit [Remote host closed the connection]
05:46
yakischloba has quit [Quit: Leaving.]
05:59
rwmjones has quit [Ping timeout: 248 seconds]
06:40
ulfdoz has joined #ocaml
06:45
thrasibule has quit [*.net *.split]
06:45
Sgeo has quit [*.net *.split]
06:45
Mr_Awesome has quit [*.net *.split]
06:45
mfp has quit [*.net *.split]
06:45
mbishop has quit [*.net *.split]
06:45
Camarade_Tux has quit [*.net *.split]
06:45
sfuentes has quit [*.net *.split]
06:45
TaXules has quit [*.net *.split]
06:53
thrasibule has joined #ocaml
06:53
Sgeo has joined #ocaml
06:53
Mr_Awesome has joined #ocaml
06:53
mfp has joined #ocaml
06:53
mbishop has joined #ocaml
06:53
Camarade_Tux has joined #ocaml
06:53
sfuentes has joined #ocaml
06:53
TaXules has joined #ocaml
06:57
caligula_ has quit [Read error: Operation timed out]
06:59
caligula_ has joined #ocaml
07:27
oc13 has joined #ocaml
07:39
ygrek has joined #ocaml
07:46
ttamttam has joined #ocaml
07:48
enthymeme has quit [Quit: ]
08:15
ttamttam has quit [Quit: Leaving.]
08:20
ygrek has quit [Ping timeout: 245 seconds]
08:57
ttamttam has joined #ocaml
09:14
oc13 has quit [Ping timeout: 260 seconds]
09:40
rwmjones has joined #ocaml
09:41
Yoric has joined #ocaml
09:42
ikaros has joined #ocaml
09:43
spearalot has joined #ocaml
09:51
Submarine has joined #ocaml
09:53
th5 has joined #ocaml
10:11
myu2 has quit [Quit: Leaving...]
10:11
myu2 has joined #ocaml
10:18
xcthulhu has joined #ocaml
10:36
oc13 has joined #ocaml
10:44
_zack has joined #ocaml
11:01
oc13 has quit [Ping timeout: 252 seconds]
11:07
ygrek has joined #ocaml
11:10
myu2_ has joined #ocaml
11:12
myu2 has quit [Ping timeout: 246 seconds]
11:15
quelqun_dautre has quit [Ping timeout: 260 seconds]
11:15
quelqun_dautre has joined #ocaml
11:20
spearalot has quit [Quit: Computer has gone to sleep]
11:31
_zack has quit [Quit: Leaving.]
11:48
myu2_ has quit [Remote host closed the connection]
11:54
myu2 has joined #ocaml
11:57
ikaros has quit [Quit: Leave the magic to Houdini]
12:03
spearalot has joined #ocaml
12:04
myu2 has quit [Remote host closed the connection]
12:24
_andre has joined #ocaml
12:32
ygrek has quit [Remote host closed the connection]
12:34
ygrek has joined #ocaml
12:34
pimmhogeling has joined #ocaml
13:01
_zack has joined #ocaml
13:20
derdon has joined #ocaml
13:45
_unK has joined #ocaml
13:47
ikaros has joined #ocaml
13:49
pimmhogeling has quit [Remote host closed the connection]
14:06
alp has joined #ocaml
14:06
Alpounet has quit [Read error: Connection reset by peer]
14:07
tmaedaZ is now known as tmaeda
14:09
alp has quit [Client Quit]
14:09
Alpounet has joined #ocaml
14:10
jimmyb2187 has joined #ocaml
14:15
tmaeda has quit [Ping timeout: 248 seconds]
14:20
tmaeda has joined #ocaml
14:23
derdon has quit [Quit: derdon]
14:40
ikaros has quit [Ping timeout: 246 seconds]
14:44
orbitz has quit [Quit: Reconnecting]
14:44
orbitz has joined #ocaml
14:45
valross has quit [Quit: Ex-Chat]
14:54
bzzbzz has joined #ocaml
15:03
ikaros has joined #ocaml
15:06
xcthulhu has quit [Ping timeout: 265 seconds]
15:10
oc13 has joined #ocaml
15:19
shr3kst3r has quit [Quit: leaving]
15:21
oc13 has quit [Quit: Leaving.]
15:31
rwmjones has left #ocaml []
15:31
rwmjones has joined #ocaml
15:50
bzzbzz has quit [Quit: leaving]
15:51
bzzbzz has joined #ocaml
16:10
_unK has quit [Remote host closed the connection]
16:12
tmaeda is now known as tmaedaZ
16:21
drk-sd has joined #ocaml
16:22
yakischloba has joined #ocaml
16:22
pimmhogeling has joined #ocaml
16:28
ulfdoz_ has joined #ocaml
16:32
ulfdoz has quit [Ping timeout: 276 seconds]
16:36
spearalot has quit [Quit: -arividerchi]
16:39
CcSsNET has quit [Ping timeout: 248 seconds]
16:55
ccasin has joined #ocaml
16:56
kaustuv has joined #ocaml
16:57
CcSsNET has joined #ocaml
17:08
_zack has quit [Quit: Leaving.]
17:10
derdon has joined #ocaml
17:28
Associat0r has joined #ocaml
17:32
thieusoai has quit [Quit: Leaving]
17:41
th5 has quit [Quit: th5]
17:56
thieusoai has joined #ocaml
17:56
pimmhogeling has quit [Ping timeout: 265 seconds]
18:00
joewilliams has joined #ocaml
18:00
joewilliams is now known as joewilliams_away
18:00
joewilliams_away is now known as joewilliams
18:02
ikaros has quit [Quit: Leave the magic to Houdini]
18:04
ttamttam has quit [Quit: Leaving.]
18:12
Demitar has quit [Quit: Bubbles!]
18:19
kaustuv has quit [Ping timeout: 265 seconds]
18:21
Demitar has joined #ocaml
18:21
slash_ has joined #ocaml
18:23
SEcki has joined #ocaml
18:25
Submarine has quit [Quit: Leaving]
18:29
ikaros has joined #ocaml
18:34
Mr_Awesome has quit [Quit: Hilarity ensues.]
18:38
Sgeo has quit [Read error: Connection reset by peer]
18:44
Blasa has joined #ocaml
18:44
Blasa is now known as Guest84023
18:45
Guest84023 has left #ocaml []
18:45
eb4890 has joined #ocaml
18:52
Yoric has quit [Quit: Yoric]
19:01
enthymeme has joined #ocaml
19:01
joewilliams is now known as joewilliams_away
19:03
xcthulhu has joined #ocaml
19:12
_unK has joined #ocaml
19:17
fraggle_ has quit [Quit: -ENOBRAIN]
19:19
<
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
19:22
maskd has joined #ocaml
19:22
<
thelema >
Camarade_Tux: fair enough. It's definitely better than writing your own parser/pretty printer.
19:22
fraggle_ has joined #ocaml
19:25
<
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)
19:28
<
thelema >
Are your string*string lists that big?
19:30
<
Camarade_Tux >
for my current project (should never reach 10MB, and that's generous), no, but I had bigger strings in another project
19:30
<
Camarade_Tux >
hmmm, according to Murphy's Law, a user will have a string bigger than 16MB on a 32bit machine =/
19:31
yakischloba has quit [Read error: Connection reset by peer]
19:32
<
Camarade_Tux >
thanks for the link, it'll probably be useful =)
19:33
Submarine has joined #ocaml
19:33
ttamttam has joined #ocaml
19:34
joewilliams_away is now known as joewilliams
19:35
yakischloba has joined #ocaml
19:36
joewilliams is now known as joewilliams_away
20:20
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
20:21
xcthulhu has quit [Ping timeout: 276 seconds]
20:34
Demitar has quit [Quit: Bubbles!]
20:37
enthymeme has joined #ocaml
20:40
Demitar has joined #ocaml
20:49
xcthulhu has joined #ocaml
20:53
ulfdoz_ has quit [Quit: Reconnecting]
20:53
ulfdoz has joined #ocaml
20:58
ttamttam has quit [Quit: Leaving.]
21:00
ulfdoz has quit [Quit: sry]
21:00
ulfdoz has joined #ocaml
21:01
joewilliams_away is now known as joewilliams
21:02
rwmjones has quit [Ping timeout: 248 seconds]
21:12
joewilliams is now known as joewilliams_away
21:14
rwmjones has joined #ocaml
21:26
krankkatze has joined #ocaml
21:31
eb4890 has quit [Ping timeout: 258 seconds]
21:37
_andre has quit [Quit: leaving]
21:39
xcthulhu has quit [Ping timeout: 252 seconds]
21:44
smimou has quit [Ping timeout: 248 seconds]
21:45
smimou has joined #ocaml
21:50
<
derdon >
how can I define recursive methods?
21:50
<
derdon >
``method rec foo = ...`` doesn't work
21:51
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
21:52
<
flux >
simply use your defined self-object
21:52
<
flux >
recd-keyword is not required
21:53
<
flux >
.. onject (self) method foo = 5 + self#foo end
21:58
<
derdon >
is there a recursion limit?
22:00
<
derdon >
by the way: is a recursive function/method the usual way to create an infinite loop in ocaml?
22:01
<
flux >
if the recursion isn't tail recursion, the size of the stack will limit the amount of recursion you can do
22:01
<
flux >
and yes it is
22:01
<
flux >
(obviously it is tail-recursion in thoss cases)
22:02
<
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
22:02
<
flux >
so when one writes an infinite loop, the next round of the loop gets the state of the previous loop as its parameter
22:03
<
derdon >
my infinite loop doesn't get any parameters at all
22:03
<
derdon >
let rec loop () = ...; loop ()
22:03
<
derdon >
well, it gets unit
22:04
maskd has quit [Quit: leaving]
22:06
bzzbzz has quit [Quit: leaving]
22:06
enthymeme has joined #ocaml
22:08
jeddhaberstro has joined #ocaml
22:14
<
flux >
it gets return type unit?
22:15
<
flux >
it should get return type 'a..
22:15
<
flux >
oh, right, you mean as its parameter, nvm
22:19
<
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
22:23
Submarine has quit [Ping timeout: 258 seconds]
22:24
<
flux >
in toplevel?
22:24
<
flux >
possibly toplevel hooks SIGINT on its own
22:27
<
derdon >
flux: does it make a difference whether in toplevel or an executed *.ml file?
22:29
xevz has left #ocaml []
22:29
<
derdon >
the exception End_of_file is raised when I hit Ctrl+D
22:30
<
derdon >
but no exception (only output) when I hit Ctrl+C
22:30
<
flux >
derdon, Sys.catch_break true
22:31
<
derdon >
ok, a bit strange
22:37
ccasin has quit [Quit: Leaving]
22:45
Associat0r has quit [Quit: Associat0r]
22:45
Associat0r has joined #ocaml
22:48
maskd has joined #ocaml
22:57
ulfdoz has quit [Ping timeout: 264 seconds]
23:02
bmp has joined #ocaml
23:18
valross has joined #ocaml
23:33
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
23:35
ygrek has quit [Ping timeout: 245 seconds]
23:47
pimmhogeling has joined #ocaml
23:48
slash_ has quit [Quit: Lost terminal]