rwmjones changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.1 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
mwc has quit ["Leaving"]
middayc has quit []
onigiri has joined #ocaml
nameless` has joined #ocaml
Tetsuo has quit ["Leaving"]
onigiri has quit []
jlouis has joined #ocaml
hsuh has joined #ocaml
mwc has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]
coucou747 has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
middayc_ has quit []
pkleitre has joined #ocaml
pkleitre has left #ocaml []
middayc has joined #ocaml
nameless` has quit ["Lost terminal"]
middayc has left #ocaml []
jlouis_ has joined #ocaml
TheLittlePrince has quit [Client Quit]
Smerdyakov has quit ["Leaving"]
mwc_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
jlouis has joined #ocaml
mwc_ has quit [Remote closed the connection]
leo037 has quit ["Leaving"]
jlouis_ has quit [Read error: 110 (Connection timed out)]
ben___ has joined #ocaml
paulc has joined #ocaml
mwc has quit [Remote closed the connection]
thermoplyae has left #ocaml []
hsuh has quit [Remote closed the connection]
paulc has quit [Read error: 110 (Connection timed out)]
cs130wan has joined #ocaml
cs130wan has quit [Client Quit]
ben___ has quit []
avida has joined #ocaml
avida_ has joined #ocaml
avida_ has quit [Client Quit]
avida has quit [Connection timed out]
mwc has joined #ocaml
jlouis_ has joined #ocaml
mwc has left #ocaml []
jlouis has quit [Read error: 110 (Connection timed out)]
ry4n_ has joined #ocaml
goalieca has quit [Nick collision from services.]
ry4n_ is now known as goalieca
Optikal__ has joined #ocaml
Linktim has joined #ocaml
malc_ has joined #ocaml
jderque has joined #ocaml
bluestorm has joined #ocaml
seafood_ has joined #ocaml
kelaouchi has quit [Remote closed the connection]
coucou747 has quit [Read error: 110 (Connection timed out)]
seafood__ has joined #ocaml
seafood___ has joined #ocaml
seafood_ has quit [Read error: 110 (Connection timed out)]
seafood___ has quit [Read error: 104 (Connection reset by peer)]
seafood__ has quit [Read error: 110 (Connection timed out)]
kelaouchi has joined #ocaml
Tetsuo has joined #ocaml
middayc has joined #ocaml
marmottine has joined #ocaml
goalieca has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
coucou747 has joined #ocaml
<coucou747> salut all
bongy has joined #ocaml
bongy has quit [Client Quit]
onigiri has joined #ocaml
olleolleolle has joined #ocaml
bluestorm has joined #ocaml
hkBst has joined #ocaml
ita has joined #ocaml
linktim_ has joined #ocaml
Demitar has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
Linktim has quit [Connection timed out]
jderque has quit ["leaving"]
Anarchos has joined #ocaml
<Anarchos> anybody tried to configure mldonkey here ?
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
mwc_ has joined #ocaml
mwc_ has quit [Client Quit]
bongy has joined #ocaml
Yoric[DT] has joined #ocaml
linktim_ has quit [Read error: 110 (Connection timed out)]
petchema_ has quit [Read error: 113 (No route to host)]
petchema_ has joined #ocaml
onigiri_ has joined #ocaml
seafood_ has joined #ocaml
onigiri__ has joined #ocaml
onigiri__ has left #ocaml []
bongy has quit ["Leaving"]
<Yoric[DT]> hi
seafood_ has left #ocaml []
seafood_ has joined #ocaml
onigiri has quit [Read error: 110 (Connection timed out)]
onigiri_ has quit [Read error: 110 (Connection timed out)]
linktim_ has joined #ocaml
Smerdyakov has joined #ocaml
seafood_ has quit []
linktim_ has quit [Read error: 110 (Connection timed out)]
gabrielk has joined #ocaml
Smerdyakov has quit ["Leaving"]
love-pingoo has joined #ocaml
xavierbot has joined #ocaml
<coucou747> # let a=1 in a-1;;
<coucou747> xavierbot> stp...
<coucou747> ;(
<rwmjones> yeah, not changed the syntax yet
<rwmjones> let a=1 in a-1;;
<xavierbot> - : int = 0
olleolleolle has quit []
linktim_ has joined #ocaml
<coucou747> rwmjones> how do xavierbot to know that it's caml ?
<coucou747> and not a sentence
<Yoric[DT]> ;;
<Yoric[DT]> 5 ;;
<xavierbot> - : int = 5
<bluestorm> which as strange effects;;
<xavierbot> Characters 1-6:
<xavierbot> which as strange effects;;
<xavierbot> ^^^^^
<xavierbot> Unbound value which
<xavierbot> Characters 7-9:
<xavierbot> Parse error: illegal begin of top_phrase
<bluestorm> +h
<coucou747> let a = 1
<coucou747> in a+2;;
<xavierbot> in a+2;;
<xavierbot> ^^
<xavierbot> Characters 1-3:
<xavierbot> Parse error: illegal begin of top_phrase
<bluestorm> coucou747: one-liner only
<coucou747> ok we can't indent...
<coucou747> bla> I know yet
<coucou747> bluestorm>
malc_ has quit ["leaving"]
onigiri has joined #ocaml
jderque has joined #ocaml
linktim_ has quit [Read error: 104 (Connection reset by peer)]
linktim_ has joined #ocaml
linktim__ has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]
coucou747 has joined #ocaml
linktim_ has quit [Read error: 110 (Connection timed out)]
linktim_ has joined #ocaml
linktim__ has quit [Read error: 110 (Connection timed out)]
olleolleolle has joined #ocaml
romeo1 has joined #ocaml
<romeo1> what would you do if someone just bent you and called you a fagot or gay and dominated you? and told you to pick that up? and what does it mean?
<coucou747> Oo
<coucou747> jarule2 romeo1
<coucou747> * romeo1
<coucou747> he was Klined...
<romeo1> coucou747 why do you remember me
<romeo1> vi hear phone ringing should i rea
<romeo1> i hear phone ringing should i react?
<coucou747> romeo1> cause it's not everyday that people ask me for somethink like " gay and dominated"
<coucou747> romeo1> here it's a programming channel
* Yoric[DT] wonders exactly what romeo1 is doing on #ocaml.
<coucou747> romeo1> please play caml with us or go back home...
<coucou747> (and I've an xchat script : witch say me the old nicknames : jarule2 romeo1 )
<romeo1> what i am healthy and someone else is not or ignorant what to do then?
<coucou747> romeo1> bluestorm can be a 14 years old person, so speaking of domination should not be a good idea...
<coucou747> romeo1> and it's not the theme of the chan
Morphous has joined #ocaml
<romeo1> what is a valid real life word for troll and bot and spammer
<coucou747> romeo1> a valid life is a life which each main return 0
<coucou747> romeo1> don't U like my define ?
<romeo1> i feel scared is that good or ok?
<bluestorm> romeo1: i think you should leave the chan, now
<bluestorm> we're not that interested in your off-topic discussions
<bluestorm> of course i could ask for an op to come and get you out, but it'd be simpler if you just left
<romeo1> bluestorm is it like calling the cops in real life?
<coucou747> let romeo1 = 0;;
<xavierbot> val romeo1 : int = 0
Amorphous has quit [Read error: 110 (Connection timed out)]
<ita> did you know most irc clients had a /ignore command ?
slipstream has joined #ocaml
romeo1 has quit ["Leaving"]
ita has quit [Remote closed the connection]
revax_ has joined #ocaml
slipstream has left #ocaml []
revax has quit [Read error: 113 (No route to host)]
letrec has quit []
Morphous is now known as Amorphous
Smerdyakov has joined #ocaml
letrec has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
xavierbot has quit [Read error: 110 (Connection timed out)]
thermoplyae has joined #ocaml
Anarchos has joined #ocaml
<flux> hmph, are there alternative http client libraries for ocaml?
<flux> apparently the netclient one doesn't support handling the response while its coming..
<flux> ah, libcurl bindings! let's try them..
leo037 has joined #ocaml
<flux> ooh, libcurl does exactly what I need, and in a simpler fashion, too
Smerdyakov has quit ["Leaving"]
<Anarchos> i don't know about libcurls
<Anarchos> i am just compiling MLDonkey
Smerdyakov has joined #ocaml
olleolleolle has quit []
<flux> how's it going?
gabrielk has quit [Read error: 110 (Connection timed out)]
<Anarchos> flux : it compiles but crashes in alloc_inet_addr at startup
<flux> resolver issues?
<Anarchos> no the problem is in memmove but i don't know why
olleolleolle has joined #ocaml
<Anarchos> the stack trace show unix_gethostbyname
<mbishop> it's weird how all the best ocaml software is written by the french
<mbishop> I mean I guess it makes some sense...but still weird
<Anarchos> mbishop because ocaml is taought in french universities
<bluestorm> hm
<mbishop> Anarchos: yeah, I guess they'd be writing programs for class or something too probably
* mbishop shrugs
<bluestorm> i'm not sure this "best software" is written by french students :-'
<Anarchos> flux the problme is in alloc_host_entry
<Anarchos> is it normal to have no source code when debugging something compiled with ocamlopt.opt ?
<coucou747> in "french universities", I think there is not a lot of good student
<coucou747> but the research is not so bad when teachers don't drunk
<Anarchos> coucou747 you are rude :)
<coucou747> Anarchos> I'm french student
<coucou747> and I had a drunken teacher
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
delamarche has joined #ocaml
ita has joined #ocaml
rogo has quit [Read error: 110 (Connection timed out)]
goalieca has joined #ocaml
hsuh has joined #ocaml
authentic has joined #ocaml
middayc has quit []
authentic has quit [Client Quit]
authentic has joined #ocaml
middayc has joined #ocaml
middayc has left #ocaml []
kelaouchi has quit ["leaving"]
delamarche has quit []
jderque has quit ["leaving"]
AxleLonghorn has joined #ocaml
revax_ has quit ["Leaving"]
olleolleolle has quit []
Mr_Awesome has quit ["aunt jemima is the devil!"]
marmottine has quit ["Quitte"]
olleolleolle has joined #ocaml
authentic has quit [Read error: 113 (No route to host)]
linktim_ has quit ["Konversation terminated!§§§!"]
oracle1 has joined #ocaml
<oracle1> quiz!
<oracle1> why do I never use List.fold_right ?
<oracle1> hmm
<ita> oracle1: you are left-handed
<bluestorm> two possibilities : 1) because you don't know when you should use it 2) because you don't need it
<oracle1> ita: heh good one :)
<bluestorm> oracle1: do you use List.fold_left ?
<oracle1> i think because i dont know when to use it properly.
<oracle1> bluestorm: yes often
<bluestorm> hm
<oracle1> I don't really see when I could use fold_right
<oracle1> but im sure I'm missing something
<bluestorm> hm
<bluestorm> how you you cold an insertion sort on list, given a function insert : 'a -> 'a list -> 'a list that insert an element in a sorted list ?
<bluestorm> s/cold/code/
<bluestorm> s/you/would/
<bluestorm> gah
olleolleolle has quit []
<oracle1> well, yes. with a fold_right. .. List.fold_right insert element list
<bluestorm> List.fold_right insert list [], actually
<bluestorm> but that's the idea
<bluestorm> some algorithms use fold_left, other use fold_right
<oracle1> so it's just a matter of the design of the function in the first argument?
<bluestorm> hm
<bluestorm> you mean the (a -> b -> b) or (b -> a -> b) ?
<oracle1> yep
<bluestorm> no it isn't
<bluestorm> it's a matter of
<oracle1> well.. how the values are accumulated is different I suppose
<bluestorm> "to compute a arbitrary element in the list, do you need the result of the computation of the former elements, or the latters elements in the list ?"
<bluestorm> the natural way to code insert is by inserting the head in the sorted tail, that is, the latter elements
<bluestorm> so you'd use a fold_right
<bluestorm> (actually it could be done with a fold_left too)
middayc_ has joined #ocaml
<oracle1> hm
<bluestorm> in some case you _have_ to use fold_left or fold_right if you want the correct order
<bluestorm> for example if you want to generate a list from an array, fold_right and fold_left will give you different orders
<oracle1> right, ok that makes sense
<bluestorm> i my personal case, i would first think of the "code without fold", and then try to guess if it's a fold_left of fold_right
<bluestorm> but as fold_left is tail-recursive, if you can use either of them, you should prefer fold_left
<oracle1> i just seem to me that fold_left is more natural but that's highly subjective :)
<oracle1> k yes
<bluestorm> (this is why eg. "sum of the elements of the list" are written with fold_left)
<bluestorm> and btw., i've once found a nice explication on the order of the latter argument of fold_left/right
<bluestorm> (answering to the common question "why is the list position different ?")
<oracle1> let me see
<bluestorm> the important part (to my eyes) being only the last two lines
<bluestorm> hm, and if you've never read Haskell before, you have to know that "f" is a functor, that is, a "thing that gives a type"
<bluestorm> eg. "list" is a functor, so "int list" is a type (application of the parameter type "int" to the functor "list")
<bluestorm> f being here a arbitrary functor
<bluestorm> (eg. you can replace "f a" by "a list" to get the list-specific signatures)
<oracle1> yes sounds good
thelema has joined #ocaml
<oracle1> thanks for the explanations
bluestorm has quit ["Konversation terminated!"]
leo037 has quit ["Leaving"]
oracle1 has quit ["leaving"]
gabrielk has joined #ocaml
hkBst has quit ["Konversation terminated!"]
seafood_ has joined #ocaml
gabrielk has quit ["leaving"]
AxleLonghor1 has joined #ocaml
AxleLonghorn has quit [Read error: 110 (Connection timed out)]
ita has quit [Remote closed the connection]
authentic has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
^authentic has joined #ocaml