Alpounet changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.1 out now! Get yours from http://caml.inria.fr/ocaml/release.html
jknick has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
_zack has quit ["Leaving."]
_zack has joined #ocaml
ttamttam has quit [Remote closed the connection]
munga_ has joined #ocaml
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
thelema has quit [farmer.freenode.net irc.freenode.net]
thelema has joined #ocaml
Pimm has joined #ocaml
schme has joined #ocaml
jlouis_ has joined #ocaml
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
<munga_> I remember that once upon a time the module Map had a split function ... why was it removed ? how can I get all bindings in a Map whose keys lies in an give interval ?
schme has joined #ocaml
jlouis_ has joined #ocaml
<Camarade_Tux> munga_: the Set module has it, maybe you had that in mind?
_unK has joined #ocaml
<munga_> Camarade_Tux, not quite ... I want a map :)
<Camarade_Tux> yeah, I meant: the function may have never existed and you remembered it from Set ;-)
<munga_> ahhhhh ... I just found this
<munga_> http://www.google.com/codesearch/p?hl=en#d2_0LCqiSBo/profs/informatique/Yannick.Moy/compil/TD/quatre/pp2upp.tar.gz|LTqUWjuE5_U/petit/map.mli&q=lang:ocaml%20map%20split&d=8
<munga_> horrible url ... that is just the implementation I was looking for
_andre has joined #ocaml
tarbo2 has quit [Read error: 110 (Connection timed out)]
<flx_> munga_, yeah, .split would be very nice at times
<munga_> a nice feature for the extlib PMap !
<munga_> it's a strange world the one we live in as I cannot even imagine to propose this new function to be added directly to the standard library :)
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
schme has joined #ocaml
jlouis_ has joined #ocaml
je has joined #ocaml
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
rwmjones has quit [Read error: 113 (No route to host)]
rwmjones has joined #ocaml
rwmjones_lptp has joined #ocaml
je has quit ["On the move"]
Pimm has quit [Read error: 110 (Connection timed out)]
gdmfsob is now known as mishok13
schme has joined #ocaml
jlouis_ has joined #ocaml
valross has quit ["Ex-Chat"]
Yoric has joined #ocaml
rwmjones_lptp has quit ["This computer has gone to sleep"]
tmaeda is now known as tmaedaZ
albacker has joined #ocaml
robocop has joined #ocaml
<robocop> hi
Pimm has joined #ocaml
_zack has quit ["Leaving."]
flx_ is now known as flux
tmaedaZ is now known as tmaeda
_zack has joined #ocaml
robocop1 has joined #ocaml
robocop has quit [Read error: 145 (Connection timed out)]
tmaeda is now known as tmaedaZ
tmaedaZ is now known as tmaeda
ulfdoz has joined #ocaml
tmaeda is now known as tmaedaZ
tarbo2 has joined #ocaml
<thelema> munga_: contribute a patch to aaa, today and it'll see the next (first) release
<robocop1> thelema: do you know where is the developement of batteries ?
<thelema> the only active development goes on here: http://github.com/thelema/AAA-batteries
<robocop1> okey
<robocop1> so batteries became AAA ?
<robocop1> *+s
<thelema> yes
<robocop1> okey
<robocop1> nice :p
<robocop1> good luck
tmaedaZ is now known as tmaeda
tensorpudding has quit [farmer.freenode.net irc.freenode.net]
Amorphous has quit [farmer.freenode.net irc.freenode.net]
hyperboreean has quit [farmer.freenode.net irc.freenode.net]
nimred has quit [farmer.freenode.net irc.freenode.net]
infoe_ has quit [farmer.freenode.net irc.freenode.net]
lanaer has quit [farmer.freenode.net irc.freenode.net]
Mr_Awesome has quit [farmer.freenode.net irc.freenode.net]
Leonidas has quit [farmer.freenode.net irc.freenode.net]
mrvn has quit [farmer.freenode.net irc.freenode.net]
shr3kst3r has quit [farmer.freenode.net irc.freenode.net]
acatout has quit [farmer.freenode.net irc.freenode.net]
Camarade_Tux has quit [farmer.freenode.net irc.freenode.net]
_unK has quit [farmer.freenode.net irc.freenode.net]
munga_ has quit [farmer.freenode.net irc.freenode.net]
det has quit [farmer.freenode.net irc.freenode.net]
tab_ has quit [farmer.freenode.net irc.freenode.net]
tonyIII has quit [farmer.freenode.net irc.freenode.net]
jknick has quit [farmer.freenode.net irc.freenode.net]
noj has quit [farmer.freenode.net irc.freenode.net]
safire has quit [farmer.freenode.net irc.freenode.net]
acatout has joined #ocaml
mrvn has joined #ocaml
shr3kst3r has joined #ocaml
Camarade_Tux has joined #ocaml
tensorpudding has joined #ocaml
Amorphous has joined #ocaml
Leonidas has joined #ocaml
Mr_Awesome has joined #ocaml
hyperboreean has joined #ocaml
nimred has joined #ocaml
lanaer has joined #ocaml
infoe_ has joined #ocaml
_unK has joined #ocaml
munga_ has joined #ocaml
jknick has joined #ocaml
det has joined #ocaml
noj has joined #ocaml
tab_ has joined #ocaml
safire has joined #ocaml
tonyIII has joined #ocaml
ulfdoz has quit ["deprecated"]
tmaeda is now known as tmaedaZ
tmaedaZ is now known as tmaeda
ski_ has quit ["Lost terminal"]
ikaros has joined #ocaml
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
Associat0r has joined #ocaml
ulfdoz has joined #ocaml
Alpounet has joined #ocaml
schme has joined #ocaml
jlouis_ has joined #ocaml
hcarty has joined #ocaml
pad has joined #ocaml
Yoric has quit []
ikaros has quit ["Leave the magic to Houdini"]
_zack has quit ["Leaving."]
sramsay has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
<thieusoai> hi how do I define a function a that calls function b , but function b also calls a ?
_andre has quit ["*puff*"]
<thelema> let rec a = b + 1 and b = a * 2
<thelema> err...
<thelema> let rec a x = b x + 1 and b x = if x > 100 then x else a x * 2
<thieusoai> thanks let me try
<thieusoai> that works , but is there other way I can do it without the "and" keyword ?
<mrvn> no
<mrvn> or rather: not nicely.
<mrvn> let a b x = b (x + 1)
<mrvn> let rec b x = if x > 100 then x else a b (x*2);;
<thieusoai> ic - thanks
ccasin has joined #ocaml
ccasin has quit [Client Quit]
<mrvn> thieusoai: I would not use and only when you are delaing with cross module recursion. The above is the way to remove a cyclic recursion between modules.
Yoric[DT] has joined #ocaml
ttamttam has joined #ocaml
bzzbzz has joined #ocaml
rwmjones_lptp has joined #ocaml
jlouis has joined #ocaml
<munga_> anybody can help me with the ExtLib.OptParse module ? what is the recommended way to store command line argument that are not options ? With the Arg module I can just pass a function to Arg.parse . Is there a similar way to do the same with OptParse ?
<thelema> munga_: sorry - I wrote my own command-line argument parsing library which suits my needs
<munga_> that is, I would write Arg.parse options (fun f -> files := f :: !files ) usage to store all arguments that are not options in the list ref files
<thelema> It looks like [parse] returns a string list - maybe this contains all unused arguments
<munga_> maybe ... I was just testing if this is the case
<munga_> good intuition :) thanks
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
<mrvn> thelema: anything else would be stupid
schme has joined #ocaml
ikaros has joined #ocaml
Alpounet has quit ["``Do what you think you can't do.'' -- E. Roosevelt"]
Alpounet has joined #ocaml
lutter has joined #ocaml
Alpounet has quit ["``Do what you think you can't do.'' -- E. Roosevelt"]
Alpounet has joined #ocaml
ttamttam1 has joined #ocaml
jimmyb2187 has left #ocaml []
jimmyb2187 has joined #ocaml
ttamttam has quit [Read error: 110 (Connection timed out)]
thieusoai has quit [Read error: 60 (Operation timed out)]
valross has joined #ocaml
albacker has quit ["."]
robocop1 has quit [Remote closed the connection]
slash_ has joined #ocaml
Pimm has quit [Read error: 110 (Connection timed out)]
ttamttam1 has quit ["Leaving."]
rwmjones_lptp has left #ocaml []
Yoric has joined #ocaml
tarbo2 has quit [Read error: 145 (Connection timed out)]
middayc has joined #ocaml
Yoric has quit []
Yoric[DT] has quit ["Ex-Chat"]
sramsay has quit ["Leaving"]
thieusoai has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
tmaeda is now known as tmaedaZ
munga_ has quit [Read error: 113 (No route to host)]
noisetonepause has joined #ocaml
_unK has quit [Read error: 104 (Connection reset by peer)]
valross has quit [Remote closed the connection]
Associat0r has quit []
joewilliams has joined #ocaml
ulfdoz_ has joined #ocaml
mfp has quit [Read error: 104 (Connection reset by peer)]
ulfdoz has quit [Read error: 110 (Connection timed out)]
ulfdoz_ is now known as ulfdoz
mfp has joined #ocaml
jeddhaberstro has joined #ocaml
valross has joined #ocaml
jeddhaberstro has quit [Remote closed the connection]
ski_ has joined #ocaml
tmaedaZ is now known as tmaeda
schme has quit [farmer.freenode.net irc.freenode.net]
r0bby has quit [farmer.freenode.net irc.freenode.net]
mehdid has quit [farmer.freenode.net irc.freenode.net]
schme has joined #ocaml
mehdid has joined #ocaml
schme has quit [Success]
schme has joined #ocaml
r0bby has joined #ocaml
jknick has quit ["leaving"]
tarbo2 has joined #ocaml
HaskellLove has joined #ocaml
<HaskellLove> I am reading book on Ocaml. Someone interested to give me some comments how Ocaml influenced Scala and any other related Scala/Ocaml/Functional programming topics?
<thelema> No idea how ocaml influenced Scala.
<thelema> What book are you reading?
<HaskellLove> I read that from the wiki. I read now The Funtional Approach to programming - Cambridge
<HaskellLove> why not the cambridge one?
<thelema> Go ahead and read the cambridge one too. You asked for related OCaml topics.
<HaskellLove> ah ok thanks
<thelema> Maybe I didn't understand what you meant.
<HaskellLove> i thought u meant to leave the cambridge and take this book instead... thanks will read one this too
<mrvn> Thinking, always a bad idea. :)
HaskellLove has quit ["ChatZilla 0.9.85 [Firefox 3.0.8/2009033100]"]
thrasibule has joined #ocaml
joewilliams has quit [Remote closed the connection]
HaskellLove has joined #ocaml
<HaskellLove> what is difference in writing compilers for imperative vs functional languages? and what are the chalenges you face to combine both?
<mrvn> HaskellLove: the grammar
<HaskellLove> so if someone wants to combine a func and imperative in one what must he watch out in the first stage of bnf specification?
<mrvn> Nothing much. you just tend to have different grammars.
<mrvn> As for combining look at ocaml. It has lots of imperative stuff in it.
<HaskellLove> I am reading book on it now yes
slash_ has quit [Client Quit]
middayc_ has joined #ocaml
middayc has quit [Read error: 110 (Connection timed out)]
thrasibule has quit [Read error: 110 (Connection timed out)]
<palomer> erm, nothing good (code wise) comes out of ideological distinctions between pure and imperative code
ski_ has quit ["Lost terminal"]
ski_ has joined #ocaml
tmaeda is now known as tmaedaZ
middayc_ has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]