00:02
G_ has quit [Read error: 110 (Connection timed out)]
00:04
ita is now known as ita|zzz
00:05
ita|zzz has quit [Remote closed the connection]
00:09
piggybox has joined #ocaml
00:25
piggybox_ has quit [Connection timed out]
00:30
piggybox_ has joined #ocaml
00:36
<
fremo >
mwc: I should have it, do you still need it ?
00:46
piggybox has quit [Connection timed out]
00:53
<
mwc >
I end a match with: | _ -> failwith "..." and get an unsound type warning
00:53
<
mwc >
I just coerced it: (failwith "..." : unit)
00:53
<
mwc >
but before, I figured out a smarter way to solve it
01:10
aij has quit [Read error: 104 (Connection reset by peer)]
01:15
aij has joined #ocaml
01:15
seafoodX has joined #ocaml
01:22
<
fremo >
18:55 < mwc> anyhoo, I replaced that ugly case with a pair of pattern guarded ones, | Some foo,Some _ when foo <> ... -> failwith "..." | S
01:22
<
fremo >
ome _,Some bar when bar <> ... -> failwith "..." | _ -> failwith "..."
01:23
<
mwc >
fremo: thanks!
01:24
seafoodX has quit []
01:25
seafoodX has joined #ocaml
01:25
<
fremo >
I dont get it, but it is 3am...
03:20
buluca has quit [Read error: 113 (No route to host)]
03:25
crabstick_ has joined #ocaml
03:27
schme` has joined #ocaml
03:28
piggybox has joined #ocaml
03:33
mav has quit [Read error: 113 (No route to host)]
03:34
seafoodX has quit []
03:36
piggybox_ has quit [Connection timed out]
03:41
crabstick has quit [Read error: 110 (Connection timed out)]
03:42
piggybox_ has joined #ocaml
03:44
schme has quit [Success]
03:48
piggybox has quit [Nick collision from services.]
03:48
piggybox_ is now known as piggybox
04:07
piggybox_ has joined #ocaml
04:09
szsz has quit ["Leaving."]
04:11
Smerdyakov has quit ["Leaving"]
04:23
piggybox has quit [Connection timed out]
04:30
piggybox has joined #ocaml
04:51
piggybox_ has quit [Connection timed out]
04:54
piggybox_ has joined #ocaml
05:10
piggybox has quit [Connection timed out]
05:15
piggybox has joined #ocaml
05:25
szsz has joined #ocaml
05:31
piggybox_ has quit [Read error: 110 (Connection timed out)]
05:37
piggybox_ has joined #ocaml
05:53
piggybox has quit [Connection timed out]
06:00
piggybox has joined #ocaml
06:16
piggybox_ has quit [Connection timed out]
06:18
bluestorm_ has joined #ocaml
06:22
piggybox_ has joined #ocaml
06:39
piggybox has quit [Read error: 110 (Connection timed out)]
06:39
ygrek has joined #ocaml
06:41
seafoodX has joined #ocaml
06:45
piggybox__ has joined #ocaml
06:46
ALZ has joined #ocaml
06:48
szsz has quit ["Leaving."]
06:55
buluca has joined #ocaml
07:02
piggybox_ has quit [Read error: 110 (Connection timed out)]
07:07
szsz has joined #ocaml
07:28
crabstick_ has quit [Read error: 110 (Connection timed out)]
07:29
piggybox_ has joined #ocaml
07:38
jlouis has quit [Connection timed out]
07:45
piggybox__ has quit [Read error: 110 (Connection timed out)]
07:48
piggybox__ has joined #ocaml
08:05
piggybox_ has quit [Read error: 110 (Connection timed out)]
08:14
ktne has joined #ocaml
08:20
oracle1 has quit ["leaving"]
08:37
ygrek has quit [Remote closed the connection]
08:40
G has joined #ocaml
08:54
Demitar has quit [Read error: 113 (No route to host)]
08:57
Tetsuo has joined #ocaml
09:10
mwc has quit ["Lost terminal"]
09:36
dmentre has joined #ocaml
09:38
rum_e_pera_ has joined #ocaml
09:39
<
rum_e_pera_ >
where can I found a good and quick manual for ocaml
09:39
<
rum_e_pera_ >
with notions of denotational semantics and operational one
09:39
<
rum_e_pera_ >
ok :))
09:40
<
rum_e_pera_ >
what's its name?
09:40
<
rum_e_pera_ >
thanks ))
09:40
<
ktne >
where is the tutorial for programmers?
09:40
<
ktne >
Learning OCaml, for C, C++, Perl and Java programmers
09:41
<
ktne >
that's what i think it's recommended but i can't find it
09:41
<
bluestorm_ >
if you're into theory
09:42
<
rum_e_pera_ >
thank you very much :))
09:42
rwmjones has left #ocaml []
09:46
Cygal has joined #ocaml
09:46
Cygal has quit [Client Quit]
10:08
Cygal has joined #ocaml
10:08
piggybox has joined #ocaml
10:13
seafoodX has quit []
10:24
piggybox__ has quit [Connection timed out]
10:35
G_ has joined #ocaml
10:47
G has quit [Read error: 110 (Connection timed out)]
10:48
love-pingoo has joined #ocaml
11:18
love-pingoo has quit [Read error: 104 (Connection reset by peer)]
11:18
mrpingoo has joined #ocaml
11:31
szsz has quit ["Leaving."]
11:44
szsz has joined #ocaml
11:47
mr_hugo has joined #ocaml
11:58
m3ga has joined #ocaml
12:06
rum_e_pera_ has quit [Read error: 110 (Connection timed out)]
12:37
G_ has quit [Read error: 110 (Connection timed out)]
12:47
buluca has quit [Read error: 113 (No route to host)]
12:56
m3ga has quit ["disappearing into the sunset"]
13:03
mrpingoo has quit ["Connection reset by pear"]
13:30
Tortugo has quit [Read error: 104 (Connection reset by peer)]
13:31
pantsd has quit [Remote closed the connection]
13:33
ygrek has joined #ocaml
13:42
ita has joined #ocaml
13:45
ygrek has quit [Remote closed the connection]
13:46
buluca has joined #ocaml
13:52
|Jedai| has joined #ocaml
14:09
jedai has quit [Read error: 110 (Connection timed out)]
14:25
crathman has joined #ocaml
14:39
ppsmimram has joined #ocaml
14:40
ppsmimou has quit [Read error: 110 (Connection timed out)]
14:48
Smerdyakov has joined #ocaml
14:49
ppsmimram has quit [Remote closed the connection]
15:13
crabstick has joined #ocaml
15:19
pango has quit [Remote closed the connection]
15:22
pango has joined #ocaml
15:44
azoic has joined #ocaml
15:45
Oatmeat|umn is now known as Oatmeat
15:46
Oatmeat has quit ["Leaving"]
15:46
Oatmeat has joined #ocaml
15:48
balbinus has joined #ocaml
15:49
<
balbinus >
hi everyone :)
15:50
<
balbinus >
I'm trying to use the Gdome libxml/libxslt bindings in a small application, and I'm having some problems with createDocumentFromMemory... it doesn't seem to be interfacing correctly with the C underlying API... has anyone run into these problems before?
15:51
<
balbinus >
I'm using Ubuntu Feisty's packaged version of libgdome2-ocaml
16:09
rillig has joined #ocaml
16:10
seafoodX has joined #ocaml
16:11
dmentre has left #ocaml []
16:24
seafoodX has quit []
16:33
crathman has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.6/2007072518]"]
16:53
<
grirgz >
balbinus ?! kestu fou la ?
16:53
crathman has joined #ocaml
17:05
ygrek has joined #ocaml
17:24
buluca has left #ocaml []
17:39
authentic has quit [Read error: 104 (Connection reset by peer)]
17:40
authentic has joined #ocaml
17:46
pango has quit [Remote closed the connection]
17:49
pango has joined #ocaml
17:56
ygrek has quit [Remote closed the connection]
17:57
ygrek has joined #ocaml
18:13
seafoodX has joined #ocaml
18:14
jlouis has joined #ocaml
18:38
mr_hugo has left #ocaml []
18:43
ygrek has quit [Remote closed the connection]
18:43
tty56_ has joined #ocaml
19:00
tty56 has quit [Read error: 110 (Connection timed out)]
19:06
Cygal has quit [Remote closed the connection]
19:12
seafoodX has quit []
19:14
slipstream-- has joined #ocaml
19:15
Cygal has joined #ocaml
19:18
crabstick_ has joined #ocaml
19:20
olegfink has quit [Read error: 104 (Connection reset by peer)]
19:21
olegfink has joined #ocaml
19:25
slipstream has quit [Read error: 110 (Connection timed out)]
19:34
crabstick has quit [Read error: 110 (Connection timed out)]
19:34
crabstick has joined #ocaml
19:37
crabstick_ has quit [Read error: 110 (Connection timed out)]
19:58
G has joined #ocaml
20:19
_bt2 has joined #ocaml
20:24
Cygal has quit [Read error: 110 (Connection timed out)]
20:28
_bt2 has left #ocaml []
20:41
<
Oatmeat >
does ocaml have a built in operator like . in haskell? Basically an infix operator with type (a -> b) -> (b -> c) -> a -> c
20:41
Demitar has joined #ocaml
20:43
G_ has joined #ocaml
20:48
<
bluestorm_ >
Oatmeat: no it doesn't
20:48
<
bluestorm_ >
you have to add it yourself
20:48
<
bluestorm_ >
let (@@) f g x = f (g x)
20:51
<
Oatmeat >
ok thanks
20:55
G has quit [Connection timed out]
20:56
<
ita >
bluestorm_: what an evil operator !
20:56
<
bluestorm_ >
evil ?
20:56
<
bluestorm_ >
@@ is not that sexy but @ is in use
20:57
<
ita >
let (^_^) = ...
20:57
<
bluestorm_ >
and then i can use @$ for the haskell $ and feel safe
20:57
<
ita >
ah no, the ^ is reserved
20:57
<
ita >
that's a good trick
20:57
<
bluestorm_ >
let (^-^) x = x;;
20:57
<
xavierbot >
val ( ^-^ ) : 'a -> 'a = <fun>
20:59
<
ita >
with utf8 chars imagine the party
21:03
<
ita >
why is ^-^ allowed and not ^_^ ?
21:05
<
ita >
why let (^o^) a = a does not work either ?
21:06
<
Smerdyakov >
'o' is not an operator character.
21:06
<
Smerdyakov >
'-' is probably a special prefix character.
21:06
<
Smerdyakov >
All look-upable in the manual's grammar.
21:07
<
ita >
so i cannot mix operator chars (@ ^ $) with letters ? doh
21:09
<
Smerdyakov >
Do you want me to point you to the manual section that shows the exact rules? :)
21:11
<
ita >
im searching im searching
21:15
Cygal has joined #ocaml
21:25
<
piggybox >
bluestorm_: lol, using emotions as operators is really creative
21:26
<
ita >
next, the utf8 lambda
21:27
<
ita >
too bad ocaml does not support utf8 chars in the names
21:27
<
piggybox >
for something like . in haskell, I prefer F#'s idiom: let (>>) f g x = g(f(x))
21:28
<
ita >
does someone have an example of a y combinator in caml ? one that does not require -rectypes
21:29
<
bluestorm_ >
piggybox: why not use let (>>) x f = f x ?
21:31
<
piggybox >
bluestorm_: well, yours is data pipeline, not method pipeline
21:32
<
piggybox >
both are very useful
21:32
<
bluestorm_ >
i haven't tried either of them but it seems to me than the only difference is the place of the actual argument
21:32
<
bluestorm_ >
parameter
21:32
<
bluestorm_ >
and i'd say having the parameter on the left is more natural, isn't it ?
21:32
<
piggybox >
let (>>) f g x = g(f(x))
21:32
<
piggybox >
how to fire xavierbot ?
21:32
<
bluestorm_ >
let (>>) f g x = g (f x);;
21:32
<
xavierbot >
val ( >> ) : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c = <fun>
21:33
<
piggybox >
let (|>) x f = f x ;;
21:33
<
xavierbot >
val ( |> ) : 'a -> ('a -> 'b) -> 'b = <fun>
21:33
<
piggybox >
you see the difference?
21:33
<
bluestorm_ >
(succ >> to_string >> (^) "one =") 1;;
21:33
<
xavierbot >
Characters 10-19:
21:33
<
xavierbot >
(succ >> to_string >> (^) "one =") 1;;
21:33
<
xavierbot >
^^^^^^^^^
21:33
<
xavierbot >
Unbound value to_string
21:33
<
piggybox >
one is data |> fun, another is fun >> fun
21:33
<
bluestorm_ >
(succ >> string_of_int >> (^) "one =") 1;;
21:33
<
xavierbot >
- : string = "one =2"
21:34
<
bluestorm_ >
piggybox: but you can do
21:34
<
bluestorm_ >
data >> fun >> fun >> fun
21:34
<
bluestorm_ >
|> actually
21:34
<
piggybox >
but sometime we just need hook up methods
21:34
<
bluestorm_ >
it's exactly the same differance as let (@@) f g x = f (g x) and let (@$) f x = f x :p
21:35
<
piggybox >
btw, >> and |> show direction as well, so I prefer them
21:40
ita has quit [Remote closed the connection]
21:49
ita has joined #ocaml
21:51
skale has joined #ocaml
21:53
ednarofi has joined #ocaml
22:05
<
balbinus >
grirgz: je t'en pose des questions ? :)
22:09
Cygal has quit ["kthxbye"]
22:16
<
grirgz >
balbinus: tu fait de l'ocaml maintenant ?
22:24
bluestorm_ has quit ["Konversation terminated!"]
22:28
|Jedai| is now known as jedai
22:31
crathman has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.6/2007072518]"]
23:05
rillig has quit ["exit(EXIT_SUCCESS)"]
23:06
skale has quit ["Leaving"]
23:09
ednarofi_ has joined #ocaml
23:14
ednarofi has quit [Read error: 110 (Connection timed out)]
23:35
piggybox_ has joined #ocaml
23:36
<
balbinus >
grirgz: depuis qqs mois oui
23:36
<
grirgz >
balbinus: ca t'a pris comme ca tout a coup ?
23:37
ednarofi_ has quit ["leaving"]
23:37
<
balbinus >
disons qu'on m'y a intéressé :)
23:37
<
grirgz >
les cours ?
23:37
<
danderson >
moi je sais :P
23:38
<
grirgz >
mon dieu, mais il y a du monde!
23:38
<
ita >
grirgz: tu crois ?
23:40
<
balbinus >
en fait c'est deux gars
23:40
<
balbinus >
qui s'appellent david et samuel
23:40
<
balbinus >
qui m'y ont forcé.
23:40
<
grirgz >
le flingue sur la tempe et tout :p
23:41
<
ita >
ouais et moi c'était véronique et davina
23:41
<
balbinus >
(faut pas le dire trop fort y'en a un qui est sur ce chan... l'autre est déco je pense)
23:41
<
balbinus >
ita: ah moi elles ont essayé de me faire utiliser java
23:41
<
balbinus >
grirgz: voilà
23:41
<
ita >
balbinus: ah tiens :-)
23:43
<
grirgz >
balbinus: alors t'en pense quoi de ce langage ?
23:43
<
balbinus >
pas facile d'approche
23:43
<
balbinus >
j'ose pas imaginer l'horreur à apprendre en cours
23:43
<
balbinus >
mais très puissant
23:43
<
balbinus >
très très puissant.
23:43
<
ita >
balbinus: essaye avec ocaml+twt
23:44
<
balbinus >
essayer quoi ?
23:44
<
ita >
la syntaxe, c'est plus facile d'approche
23:44
<
grirgz >
c'est clair qu'il rox trop ce langage =)
23:44
<
balbinus >
ita: euh non
23:45
<
grirgz >
ita: c'est le truc a la python la ?
23:45
<
balbinus >
c'est vraiment pas la syntaxe le problème :)
23:45
<
ita >
balbinus: bah, si
23:45
<
balbinus >
et franchement je préfère la syntaxe de caml à celle de python
23:45
<
balbinus >
ita: pour moi non :)
23:45
<
balbinus >
m'enfin bon
23:45
<
balbinus >
je m'y suis fait
23:46
<
balbinus >
je suis très loin d'être un wizard en ocaml mais en 4 mois j'arrive à faire des trucs sympa :)
23:46
<
balbinus >
genre des trucs avec gdome /o\
23:46
<
balbinus >
de gdome ?
23:46
<
grirgz >
t'a testé pxp ? c'est pas mal aussi
23:47
<
balbinus >
y'en a pour ainsi dire pas.
23:47
<
ita >
balbinus: :-/
23:47
<
balbinus >
grirgz: oui non mais beurk si on a inventé DOM c'est pas pour des prunes...
23:47
<
balbinus >
ita: oué, moi aussi
23:47
<
grirgz >
si tu le dit
23:48
<
grirgz >
enfin bon, ca se base pas mal sur dom quand meme
23:49
<
balbinus >
ita: enfin si, gdome doit avoir une page... mais le binding caml c'est la merde totale
23:49
<
balbinus >
grirgz: la question n'est pas là
23:49
<
balbinus >
si ça se trouve c'est vachement bien
23:49
<
balbinus >
mais DOM permet de passer d'un langage à un autre bcp plus facilement
23:49
<
balbinus >
avec les mêmes concepts, la même API, etc
23:50
<
ita >
encore un outil de sérialization qui a mal tourné
23:50
<
ita >
tu prends json, ça fait pareil, en plus lisible
23:50
<
balbinus >
je suis vraiment pas sûr qu'on parle de la même chose, les gars...
23:51
piggybox has quit [Connection timed out]
23:51
<
balbinus >
bon moi je suis crevé
23:52
<
ita >
balbinus: 36 15 rustine ?
23:52
<
balbinus >
je verrai demain si j'ai le courage de recompiler + patcher le binding gdome...
23:52
<
balbinus >
ita: recrache ce clown. tout de suite.
23:53
<
balbinus >
bonne nuit tout le monde
23:53
<
ita >
balbinus: pense à respirer
23:54
<
balbinus >
je vais essayer de pas oublier
23:54
<
balbinus >
y'a un groupe à côté de chez moi qui a sorti un disque y'a qqs années
23:54
<
balbinus >
qui disait « il faut que tu respires »
23:54
<
balbinus >
ça m'aide à pas oublier.
23:54
<
balbinus >
we must never forget!