flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.01.0 http://bit.ly/1851A3R | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
osa1 has quit [Quit: Konversation terminated!]
osa1 has joined #ocaml
shinnya has joined #ocaml
kermit`` has joined #ocaml
kyrylo has joined #ocaml
zpe has joined #ocaml
kermit`` has quit [Ping timeout: 246 seconds]
kyrylo has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 260 seconds]
kermit`` has joined #ocaml
Simn has quit [Quit: Leaving]
cesar_ has joined #ocaml
cesar_ is now known as Guest98164
watermind has quit [Quit: Konversation terminated!]
watermind has joined #ocaml
watermind has quit [Client Quit]
csakatoku has joined #ocaml
watermind has joined #ocaml
zarul has quit [Read error: Operation timed out]
michael_lee has joined #ocaml
michael_lee has quit [Max SendQ exceeded]
michael_lee has joined #ocaml
zpe has joined #ocaml
Neros has joined #ocaml
mort___ has quit [Quit: Leaving.]
zpe has quit [Ping timeout: 246 seconds]
jao has quit [Ping timeout: 246 seconds]
Xenasis has quit [Remote host closed the connection]
Guest98164 has quit [Remote host closed the connection]
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
csakatoku has quit [Ping timeout: 252 seconds]
csakatoku has joined #ocaml
zee_hax0r has joined #ocaml
zee_hax0r has left #ocaml []
talzeus has joined #ocaml
kermit`` has quit [Ping timeout: 260 seconds]
kermit`` has joined #ocaml
Neros_ has joined #ocaml
watermind has quit [Ping timeout: 246 seconds]
Neros has quit [Ping timeout: 260 seconds]
ollehar has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
pango has quit [Quit: Client exiting]
strobegen has joined #ocaml
Neros_ has quit [Ping timeout: 260 seconds]
pango has joined #ocaml
so has quit [Ping timeout: 245 seconds]
ollehar has quit [Ping timeout: 246 seconds]
so has joined #ocaml
kermit`` has quit [Ping timeout: 246 seconds]
kermit`` has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
Arzaga has joined #ocaml
csakatok_ has joined #ocaml
csakatoku has quit [Ping timeout: 246 seconds]
talzeus has quit [Remote host closed the connection]
kermit``_ has joined #ocaml
kermit`` has quit [Ping timeout: 246 seconds]
csakatok_ has quit [Remote host closed the connection]
csakatoku has joined #ocaml
ggole has joined #ocaml
csakatoku has quit [Ping timeout: 246 seconds]
csakatoku has joined #ocaml
ggole has quit [Ping timeout: 240 seconds]
sheijk_ has joined #ocaml
sheijk has quit [Ping timeout: 252 seconds]
cdidd has quit [Ping timeout: 246 seconds]
ggole has joined #ocaml
cdidd has joined #ocaml
kermit``_ has quit [Ping timeout: 240 seconds]
kermit`` has joined #ocaml
talzeus has joined #ocaml
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
csakatoku has quit [Ping timeout: 246 seconds]
w0rm_x has joined #ocaml
w0rm_x has quit [Client Quit]
Kakadu has joined #ocaml
kermit``_ has joined #ocaml
kermit`` has quit [Ping timeout: 250 seconds]
rainbyte has quit [Quit: Leaving]
rainbyte has joined #ocaml
kermit``_ has quit [Ping timeout: 252 seconds]
kermit`` has joined #ocaml
malc_ has joined #ocaml
zpe has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
manizzle has quit [Ping timeout: 246 seconds]
malc_ has quit [Quit: leaving]
ulfdoz has quit [Ping timeout: 246 seconds]
zarul has joined #ocaml
sheijk_ has quit [Ping timeout: 250 seconds]
tcpc has left #ocaml []
csakatoku has joined #ocaml
kyrylo has joined #ocaml
sheijk has joined #ocaml
pminten has joined #ocaml
Simn has joined #ocaml
sheijk has quit [Ping timeout: 246 seconds]
snyp has joined #ocaml
<Kakadu> gour: hi!
snyp has quit [Quit: "bbl"]
Arsenik has joined #ocaml
Vazula has joined #ocaml
Vazula has quit [Ping timeout: 246 seconds]
kermit``_ has joined #ocaml
kermit`` has quit [Ping timeout: 246 seconds]
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
ontologiae_ has quit [Ping timeout: 260 seconds]
jfuruse has joined #ocaml
jfuruse has quit [Remote host closed the connection]
jfuruse has joined #ocaml
csakatoku has quit [Ping timeout: 252 seconds]
watermind has joined #ocaml
nikki93 has quit [Remote host closed the connection]
rand000 has joined #ocaml
BitPuffin has joined #ocaml
sheijk has joined #ocaml
sheijk has quit [Ping timeout: 250 seconds]
_5kg has quit [Ping timeout: 246 seconds]
tobiasBora has joined #ocaml
Kakadu has quit []
whyser has joined #ocaml
whyser has left #ocaml []
Neros has joined #ocaml
nikki93 has joined #ocaml
nikki93 has quit [Ping timeout: 246 seconds]
tobiasBora has quit [Ping timeout: 246 seconds]
mort___ has joined #ocaml
watermind has quit [Read error: Connection reset by peer]
watermind has joined #ocaml
BitPuffin has quit [Ping timeout: 246 seconds]
dsheets_ has quit [Ping timeout: 245 seconds]
sheijk has joined #ocaml
sheijk has quit [Ping timeout: 252 seconds]
michael_lee has quit [Quit: Ex-Chat]
tobiasBora has joined #ocaml
michael_lee has joined #ocaml
mort___ has quit [Quit: Leaving.]
ehamberg has joined #ocaml
sheijk has joined #ocaml
nikki93 has joined #ocaml
sheijk has quit [Ping timeout: 260 seconds]
nikki93 has quit [Ping timeout: 260 seconds]
snyp has joined #ocaml
kermit``_ has quit [Ping timeout: 260 seconds]
mort___ has joined #ocaml
malo has joined #ocaml
kermit`` has joined #ocaml
sheijk has joined #ocaml
malvarez has joined #ocaml
sheijk has quit [Ping timeout: 252 seconds]
darkf has quit [Quit: Leaving]
jfuruse has quit [Remote host closed the connection]
Arzaga has quit [Quit: Computer has gone to sleep.]
nikki93 has joined #ocaml
_5kg has joined #ocaml
nikki93 has quit [Ping timeout: 246 seconds]
tobiasBora has quit [Quit: Konversation terminated!]
tovarish has joined #ocaml
_5kg has quit [Ping timeout: 246 seconds]
kermit``_ has joined #ocaml
kermit`` has quit [Ping timeout: 250 seconds]
sheijk has joined #ocaml
sheijk has quit [Ping timeout: 260 seconds]
dsheets_ has joined #ocaml
w0rm_x has joined #ocaml
w0rm_x has quit [Ping timeout: 250 seconds]
watermind has quit [Quit: Konversation terminated!]
watermind has joined #ocaml
watermind has quit [Client Quit]
watermind has joined #ocaml
amirmc has joined #ocaml
sheijk has joined #ocaml
sheijk has quit [Ping timeout: 246 seconds]
nikki93 has joined #ocaml
nikki93 has quit [Ping timeout: 252 seconds]
pminten has quit [Remote host closed the connection]
dsheets_ has quit [Ping timeout: 246 seconds]
snyp has quit [Quit: leaving]
sheijk has joined #ocaml
<ddosia> can't find docs for core's list module, in particular for List.filter_map
sheijk has quit [Ping timeout: 240 seconds]
dsheets_ has joined #ocaml
amirmc has quit [Quit: Leaving.]
avsm has joined #ocaml
milosn has quit [Ping timeout: 250 seconds]
amirmc has joined #ocaml
milosn has joined #ocaml
sheijk has joined #ocaml
talzeus has quit [Remote host closed the connection]
sheijk has quit [Ping timeout: 260 seconds]
nikki93 has joined #ocaml
dsheets_ has quit [Ping timeout: 246 seconds]
avsm has quit [Quit: Leaving.]
nikki93 has quit [Ping timeout: 250 seconds]
ulfdoz has joined #ocaml
ollehar has joined #ocaml
_5kg has joined #ocaml
avsm has joined #ocaml
<malvarez> ddosia: there's the doc for filter_map
sheijk has joined #ocaml
mort___ has quit [Quit: Leaving.]
sheijk has quit [Ping timeout: 260 seconds]
dsheets_ has joined #ocaml
malvarez has quit [Ping timeout: 252 seconds]
Arzaga has joined #ocaml
Arzaga has quit [Client Quit]
malvarez has joined #ocaml
mort___ has joined #ocaml
sheijk has joined #ocaml
shinnya has quit [Ping timeout: 260 seconds]
dsheets_ has quit [Ping timeout: 240 seconds]
dsheets_ has joined #ocaml
nikki93 has joined #ocaml
mcclurmc has joined #ocaml
nikki93 has quit [Ping timeout: 246 seconds]
<ddosia> malvarez: thnx
<ddosia> if I need to do a couple of things under "then" clause in if statement, how could I group them in block?
<flux> typical way: begin foo (); helo (); end
<flux> alternative: ( and ) paired are exactly the same as begin and end paired
<flux> alternative2: if xx then let a = .. in .. (* scope continues here *) else ();
<flux> I suppose there's no way to close the scope of 'else' without using parenthesis or begin/end
Arzaga has joined #ocaml
Arzaga has quit [Client Quit]
TDJACR has quit [Ping timeout: 245 seconds]
<ddosia> one more question. Only "val" functions in .mli file will be exported from crresponding module?
<flux> yes
TDJACR has joined #ocaml
<ddosia> is there any practice exists how to separate internal functions from external inside module?
<ggole> Separate how?
<ddosia> in erlang we usually put internal functions from the bottom of the file
<ddosia> but here if I put internal functions to bootom, they will not be available in above functions
<ddosia> *bottom
<ggole> That doesn't really apply in OCaml, since you have to define functions before use (except for definitions that mutually recur).
<ggole> So just go with whatever works.
dsheets_ has quit [Quit: Leaving]
tane has joined #ocaml
<ddosia> I am not sure, why "fb" var is still available on 4th row? http://pastebin.com/reAHNcZ7
<ddosia> there ";" on 3rd row
<ddosia> and "in" on 2nd
xkb has joined #ocaml
<adrien> why wouldn't it be reachable?
Arzaga has joined #ocaml
Arzaga has quit [Client Quit]
<ddosia> I dont know, I thoght "in" narrows the scope of this var to next expression and ";" begins next expression
amirmc has quit [Ping timeout: 260 seconds]
avsm has quit [Ping timeout: 246 seconds]
<bernardofpc> a ; b === let () = a in b
<bernardofpc> as far as I recall
<adrien> it's pretty much what bernardofpc said
BitPuffin has joined #ocaml
Arzaga has joined #ocaml
avsm has joined #ocaml
<ddosia> If I do "open Core.Std" in .mli file, should I do this again in .ml file ?
<flux> yes
<flux> .mli isn't really 'included' into the .ml-file but rather is used as a filter
<ddosia> if I omit this in .mli file will it be an error?
<flux> the .mli and .ml must be possible to understand in isolation
<flux> so yes
<flux> for example you can compile an .mli-file even if you don't have an .ml-file
<ddosia> I see, thanks
<ggole> You "need" the open if your interface makes use of the types therein
<ggole> (Of course you don't need to open, you can just reference it directly or name a shortcut.)
<flux> meh, I got a segmentation fault from this lablgtk2 program that has custom C bindings to libjpeg :/. time to enable coredumps..
amirmc has joined #ocaml
<flux> now that I got the program working at some level, though, I should investiage how far kakadu's qtquick bingings are!
dant3 has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
dsheets has joined #ocaml
w0rm_x has joined #ocaml
w0rm_x has quit [Ping timeout: 250 seconds]
<ddosia> if arrays in ocaml is buit in data type, is there any built in function to get array length?
<ddosia> I tryied to look at at Array.length implementation
<ddosia> external length : 'a array -> int = "%array_length
<ddosia> what does it mean?
<flux> that it's implemented in C
<flux> or in the compiler
Kakadu has joined #ocaml
<flux> if you can find a function called array_length from the compiler then that's probably it :)
<ggole> Externals with a % prefix are compiler magic
<flux> right, I completely overlooked that
<ggole> The usual convention (in the stdlib) is for c functions is to be called caml_foo
<ddosia> [| ... |] stuff is a language part or magic from one of the modules like "|> or >>=" ?
<flux> it's language
mort___ has quit [Quit: Leaving.]
<flux> like [ ] is for lists, [| |] is for arrays, same level of magic
<flux> one thing that you can 'see' is that array.(n) is transformed into Array.get array n
<ddosia> how can I see that?
<flux> you can define your local Array-module with function 'get'
michael_lee has quit [Quit: Ex-Chat]
<flux> module Array = struct let get = Printf.printf "%d\n%!" end;;
<ddosia> clever
<flux> oops, let get _ = ..
<ggole> Or ocamlc -dlambda test.ml (with a suitable file + contents)
mort___ has joined #ocaml
<ggole> (In fact you can see all sorts of interesting junk with the -d... options, particularly for ocamlopt.)
Arzaga has quit [Quit: Computer has gone to sleep.]
Kakadu has quit [Quit: Konversation terminated!]
zpe has quit [Remote host closed the connection]
<ddosia> If I need to handle unicode, what data type should I choose?
Arzaga has joined #ocaml
<Drup> ddosia: use an appropriate library
Arzaga has quit [Client Quit]
kyrylo has quit [Ping timeout: 246 seconds]
<adrien> he means camomile, uutf or a similar library
w0rm_x has joined #ocaml
w0rm_x has quit [Ping timeout: 250 seconds]
cesar_ has joined #ocaml
cesar_ is now known as Guest97182
thomasga has joined #ocaml
ggole has quit []
mort___ has quit [Quit: Leaving.]
pango has quit [Quit: updating kernel and video driver, brb (hopefully)]
pango has joined #ocaml
Guest97182 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
nikki93 has quit [Ping timeout: 250 seconds]
mort___ has joined #ocaml
mcclurmc_ has joined #ocaml
dant3_ has joined #ocaml
Xenasis has joined #ocaml
maurer_ has joined #ocaml
peterbb_ has joined #ocaml
julm_ has joined #ocaml
adrinou has joined #ocaml
beginner42 has joined #ocaml
mcclurmc has quit [*.net *.split]
dant3 has quit [*.net *.split]
tovarish has quit [*.net *.split]
julm has quit [*.net *.split]
adrinou_ has quit [*.net *.split]
jpdeplaix has quit [*.net *.split]
bjorkintosh has quit [*.net *.split]
peterbb has quit [*.net *.split]
brendan has quit [*.net *.split]
maurer has quit [*.net *.split]
<beginner42> i installed spoc with opam, but ocamlfind doesnt show it? How can i fix that?
amirmc has quit [Quit: Leaving.]
adrinou has quit [Ping timeout: 321 seconds]
tovarish has joined #ocaml
brendan has joined #ocaml
bjorkintosh has joined #ocaml
jpdeplaix has joined #ocaml
Xenasis has quit [Remote host closed the connection]
adrinou has joined #ocaml
nikki93 has joined #ocaml
malvarez has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 246 seconds]
zpe has joined #ocaml
<orbitz> beginner42: does ocamlfind show any of your things in opam?
<Drup> beginner42: there is a bug in the opam package, ask rks`
NoNNaN has quit [Ping timeout: 240 seconds]
zpe has quit [Ping timeout: 246 seconds]
amirmc has joined #ocaml
NoNNaN has joined #ocaml
amiller_ has quit [Excess Flood]
<beginner42> orbitz: opam list shows me SPOC, but ocamlfind list shows me many more packages which are not shown in opam
mcclurmc_ has quit [Remote host closed the connection]
amiller has joined #ocaml
<beginner42> Drup: is there a way to work around this bug?
adrinou has quit [Ping timeout: 246 seconds]
adrinou has joined #ocaml
maurer_ is now known as maurer
Arsenik has quit [Remote host closed the connection]
thomasga has quit [Quit: Leaving.]
amirmc has quit [Quit: Leaving.]
thomasga has joined #ocaml
amirmc has joined #ocaml
strobegen has quit [Quit: Leaving.]
ulfdoz has joined #ocaml
mcclurmc has joined #ocaml
ollehar has quit [Ping timeout: 246 seconds]
adrinou has quit [Ping timeout: 246 seconds]
rand000 has quit [Ping timeout: 250 seconds]
adrinou has joined #ocaml
mcclurmc has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
rand000 has joined #ocaml
w0rm_x has joined #ocaml
shinnya has joined #ocaml
w0rm_x has quit [Ping timeout: 246 seconds]
adrinou_ has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
adrinou has quit [Ping timeout: 264 seconds]
w0rm_x has joined #ocaml
ollehar has joined #ocaml
w0rm_x has quit [Ping timeout: 246 seconds]
adrinou has joined #ocaml
adrinou_ has quit [Ping timeout: 245 seconds]
nikki93 has quit [Remote host closed the connection]
cesar_ has joined #ocaml
cesar_ is now known as Guest43026
nikki93 has joined #ocaml
Guest43026 has quit [Remote host closed the connection]
malvarez has joined #ocaml
w0rm_x has joined #ocaml
watermind has quit [Quit: Konversation terminated!]
watermind has joined #ocaml
amirmc has quit [Quit: Leaving.]
rand000 has quit [Quit: leaving]
<malvarez> Does anybody know of any good tutorials on camlp4?
w0rm_x has left #ocaml []
<smondet> malvarez: there were these series of blog posts: http://ambassadortothecomputers.blogspot.com/p/reading-camlp4.html
<smondet> and also the Gallium wiki: http://brion.inria.fr/gallium/index.php/Camlp4
<malvarez> smondet: thanks, those resources seem very good
<malvarez> I have to admit, camlp4 is the only part of OCaml I don't like
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
ontologiae_ has joined #ocaml
beginner42 has quit [Quit: Leaving]
eikke has joined #ocaml
dant3_ has quit [Remote host closed the connection]
tovarish has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 264 seconds]
eikke has quit [Ping timeout: 245 seconds]
w0rm_x has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
w0rm_x has left #ocaml []
mcclurmc has joined #ocaml
kyrylo has joined #ocaml
darkf has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
thomasga has quit [Quit: Leaving.]
ulfdoz has quit [Ping timeout: 246 seconds]
thomasga has joined #ocaml
ng_ has joined #ocaml
thomasga has quit [Client Quit]
BitPuffin has quit [Ping timeout: 240 seconds]
avsm has quit [Quit: Leaving.]
whitequark has quit [Quit: leaving]
manud is now known as manud_afk
dsheets has quit [Ping timeout: 246 seconds]
whitequark has joined #ocaml
BitPuffin has joined #ocaml
w0rm_x has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
w0rm_x has joined #ocaml
mcclurmc has joined #ocaml
w0rm_x has quit [Max SendQ exceeded]
talzeus has joined #ocaml
w0rm_x has joined #ocaml
tane has quit [Quit: Verlassend]
mort___ has quit [Quit: Leaving.]
w0rm_x has left #ocaml []
mcclurmc has quit [Ping timeout: 260 seconds]
ng_ has quit [Quit: Leaving]
talzeus has quit [Remote host closed the connection]
Xenasis has joined #ocaml
boogie has joined #ocaml
ontologiae_ has quit [Ping timeout: 252 seconds]
Simn has quit [Read error: Connection reset by peer]
flux has quit [Remote host closed the connection]
manizzle has joined #ocaml
flux has joined #ocaml
ygrek_ has joined #ocaml
manud_afk is now known as manud
BitPuffin has quit [Quit: WeeChat 0.4.2]
ollehar has quit [Ping timeout: 246 seconds]
flux has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 264 seconds]
flux has joined #ocaml
madroach has joined #ocaml
mcclurmc has joined #ocaml
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
mcclurmc has quit [Ping timeout: 246 seconds]
malo has quit [Quit: Leaving]