rwmjones changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
jargonjustin has joined #ocaml
ofaurax has quit [Client Quit]
<jargonjustin> Is there an anlog to Haskell's maybe function and (>>=) for Maybe defined in the standard OCaml libraries?
<thelema> no. It's pretty easy to make.
<jargonjustin> thelema: Just did, wanted to check if it was buried somewhere I couldn't find :-)
<thelema> no problem. If you'd like, you can add them to http://github.com/thelema/ocaml-community/tree/master and others can benefit.
<jargonjustin> thelema, I'll take a look
love-pingoo has quit ["Connection reset by pear"]
kotarak has quit [":q!"]
johnnowak has joined #ocaml
coucou747 has quit [Remote closed the connection]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
coucou747 has joined #ocaml
Tetsuo has quit ["Leaving"]
LordMetroid has quit ["Leaving"]
benzo has left #ocaml []
middayc has joined #ocaml
<neale> thelema, Smerdyakov: the correct answer was "maybe you need to rethink the problem". I discovered a way to do it that doesn't involve recursive modules.
ita has quit [Remote closed the connection]
<neale> curried functions are way cool
middayc has quit []
goalieca has quit [Remote closed the connection]
coucou747 has quit ["bye ca veut dire tchao en anglais"]
jargonjustin has quit [Remote closed the connection]
jargonjustin has joined #ocaml
jargonjustin has quit [Remote closed the connection]
jargonjustin has joined #ocaml
jargonjustin has quit [Client Quit]
<ozzloy> hey, what if you wanted to have a recursive anonymous function?
<thelema> by what name would it use to call itself?
<johnnowak> you need to name it to have a recursive function
|Catch22| has quit []
pattern_ has joined #ocaml
pattern has quit [Read error: 110 (Connection timed out)]
pattern_ is now known as pattern
evn has quit []
pattern has quit [Remote closed the connection]
pattern has joined #ocaml
netx has quit ["Leaving"]
johnnowak has quit []
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
evn has joined #ocaml
seafood_ has quit [Read error: 110 (Connection timed out)]
ben___ has joined #ocaml
ben___ is now known as ziph
evn has quit []
netx has joined #ocaml
middayc has joined #ocaml
Linktim has joined #ocaml
bluestorm has joined #ocaml
wy has quit [Read error: 110 (Connection timed out)]
bluestorm has quit ["Konversation terminated!"]
kotarak has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
Tetsuo has joined #ocaml
pants1 has joined #ocaml
pants1 has quit [Read error: 104 (Connection reset by peer)]
Linktim has joined #ocaml
Linktim_ has joined #ocaml
marmottine has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
Linktim_ has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
filp has quit [Client Quit]
a13x has joined #ocaml
coucou747 has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
ygrek has joined #ocaml
<pango> ozzloy: combinators
<pango> # let rec y f x = f (y f) x ;;
<pango> # y (fun f -> function 0 -> 1 | n -> n * (f (n - 1))) 6 ;;
seafood_ has joined #ocaml
seafood_ has quit []
a13x has quit ["Leaving"]
Yoric[DT] has joined #ocaml
<Yoric[DT]> hi
bongy has joined #ocaml
bongy has quit ["Leaving"]
Jedai has joined #ocaml
dwmw2_gone is now known as dwmw2
seafood_ has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
hkBst has joined #ocaml
Shunafy1 has joined #ocaml
johnnowak_ has joined #ocaml
bluestorm has joined #ocaml
seafood_ has quit []
seafood_ has joined #ocaml
donny has joined #ocaml
mikeX has joined #ocaml
seafood_ has quit []
thelema has quit [Read error: 110 (Connection timed out)]
donny_ has quit [Read error: 110 (Connection timed out)]
donny_ has joined #ocaml
delamarche has joined #ocaml
middayc has quit []
hsuh has joined #ocaml
donny has quit [Read error: 110 (Connection timed out)]
hsuh has quit [Remote closed the connection]
iMaTh has joined #ocaml
<iMaTh> hello
<ziph> Hiya.
<iMaTh> it's a english channel ?
<ziph> Yes, there is another channel for French.
<iMaTh> ziph, what is the name of the frensh channel ?
<ziph> #ocaml-fr
<iMaTh> ziph, thx
<iMaTh> ziph, it's possible to create a window with ocaml ? a window with gtk, qt or another ?
<ziph> iMaTh: Yes, but I'm not familiar with any of the windowing libraries. There are others in the channel that use them though.
<iMaTh> ok
<iMaTh> ziph, ocaml is use for embeded or industrial programme ?
middayc_ has quit []
<iMaTh> ziph, ocaml is especially use for embeded or industrial programme ?
<Smerdyakov> Isn't there a FAQ somewhere we could point iMaTh to?
<iMaTh> Smerdyakov, i don't understand youre sentance
<Smerdyakov> iMaTh, that's OK; it wasn't directed to you.
<iMaTh> ok Smerdyakov ;)
evn has joined #ocaml
<iMaTh> Smerdyakov, i begin in ocaml, i'm a C++ developer and i want try to use ocaml
<iMaTh> ho very good, ocaml with gtk2.0
<iMaTh> thx
<ziph> iMaTh: About embedded, I don't think Ocaml would be your first choice.
<iMaTh> and what IDE do you use ?
<kotarak> http://www.ocaml-tutorial.org/ (french version available also)
<iMaTh> ziph, so what is the domaine where ocaml is the best choice ?
<ziph> iMaTh: Do you currently use Visual Studio?
<iMaTh> ziph, yes
<Yoric[DT]> iMaTh: language processing
<Yoric[DT]> (that is, programming language processing)
<Yoric[DT]> or, more generally, formal processing
<iMaTh> ziph, actually i use crimson editor
<ziph> There is a spin off of Ocaml called F# that might be worth looking at depending on what you want to do. It isn't particularly "pure" or "faithful" to Ocaml in some ways though.
<iMaTh> ok thx
<iMaTh> question :
<iMaTh> for x = read_int() to (x+10) do
<iMaTh> (x+10) is not correcte so what is the good syntax
<iMaTh> for x = 5 to 15 do
<Smerdyakov> Don't use loops in OCaml.
<Smerdyakov> iMaTh, even putting that side, the code you wrote above is completely ridiculous. What source are you reading to learn OCaml?
<evn> Ridiculous OCaml Vol. 1
* Yoric[DT] admits he doesn't quite understand what iMaTh is trying to do.
johnnowak has joined #ocaml
<evn> best seller
<Yoric[DT]> Oh, you mean Practical OCaml ? :)
<evn> lol
<evn> probably
<evn> i heard that book was so bad
middayc has joined #ocaml
* Yoric[DT] hasn't actually read it.
<ziph> 1.5/5 stars at Amazon.
filp has joined #ocaml
filp has quit [Read error: 104 (Connection reset by peer)]
<Yoric[DT]> We're trying to handle iMaTh on #ocaml-fr.
johnnowak_ has quit [Read error: 110 (Connection timed out)]
thelema has joined #ocaml
pango has quit [Remote closed the connection]
wy has joined #ocaml
pango has joined #ocaml
__suri__ has joined #ocaml
middayc has quit []
patraic has joined #ocaml
iMaTh has quit [Read error: 104 (Connection reset by peer)]
Amorphous has quit [Read error: 110 (Connection timed out)]
Morphous has joined #ocaml
bongy has joined #ocaml
ita has joined #ocaml
ita has left #ocaml []
Morphous has quit ["shutdown"]
Amorphous has joined #ocaml
bongy has quit ["Leaving"]
AxleLonghorn has left #ocaml []
donny has joined #ocaml
delamarche has quit []
donny_ has quit [Read error: 110 (Connection timed out)]
johnnowak has quit []
ttamttam has joined #ocaml
ttamttam has left #ocaml []
kotarak has quit [":q!"]
^authentic has joined #ocaml
patraic has quit ["Leaving"]
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
psnively has joined #ocaml
AxleLonghorn has joined #ocaml
smimou has joined #ocaml
<thelema> The hybrid type system of Flanagan (2006) allows one to write this
AxleLonghorn has quit [Read error: 110 (Connection timed out)]
ziph has quit []
AxleLonghorn has joined #ocaml
psnively has quit []
<Yoric[DT]> thelema: ?
ygrek has quit [Remote closed the connection]
Anarchos has joined #ocaml
ygrek has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]
dwmw2 is now known as dwmw2_gone
__suri has joined #ocaml
ygrek has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
__suri__ has quit [Connection timed out]
ygrek has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
marmottine has quit [Remote closed the connection]
zmdkrbou_ has joined #ocaml
zmdkrbou has quit [Read error: 113 (No route to host)]
goalieca has joined #ocaml
zmdkrbou_ is now known as zmdkrbou
ygrek has quit [Remote closed the connection]
wy has quit [Read error: 104 (Connection reset by peer)]
<hcarty> Does a function which only calls caml_named_value need to use CAMLparam* and CAMLreturn* ?
<hcarty> The only purpose of the function is to see if a particular callback has been defined, so I do not think any GC items should be invoked
<Anarchos> strange error at build : no rule to make target dllunix.so.