lapinou changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | http://www.ocaml.org | OCaml 4.01.0 announce at http://bit.ly/1851A3R | Public logs at http://tunes.org/~nef/logs/ocaml/
iZsh_ has joined #ocaml
Myk267 has quit [Changing host]
Myk267 has joined #ocaml
oriba has joined #ocaml
mort___ has quit [Quit: Leaving.]
Eyyub has quit [Read error: Operation timed out]
keithflower has quit [Quit: keithflower]
keithflower has joined #ocaml
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20131020]: i've been blurred!]
mye has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
csakatoku has joined #ocaml
dant3 has joined #ocaml
dant3 has quit [Ping timeout: 265 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
kyrylo has quit [Read error: Operation timed out]
ygrek has joined #ocaml
Eyyub has joined #ocaml
yacks has quit [Read error: Operation timed out]
ollehar has quit [Ping timeout: 246 seconds]
philtor has joined #ocaml
Eyyub has quit [Ping timeout: 250 seconds]
madroach has quit [Ping timeout: 252 seconds]
oriba has quit [Quit: oriba]
madroach has joined #ocaml
avsm has quit [Quit: Leaving.]
dant3 has joined #ocaml
dant3 has quit [Ping timeout: 260 seconds]
tlockney is now known as tlockney_away
tlockney_away is now known as tlockney
appleby has joined #ocaml
cdidd has quit [Ping timeout: 250 seconds]
thizanne has quit [Ping timeout: 250 seconds]
thorsten` has quit [Ping timeout: 250 seconds]
thizanne has joined #ocaml
j0sh has quit [Ping timeout: 246 seconds]
thorsten` has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
watermind has quit [Quit: Konversation terminated!]
watermind has joined #ocaml
j0sh has joined #ocaml
xaimus has quit [Ping timeout: 260 seconds]
nickmeharry has quit [Ping timeout: 252 seconds]
xaimus has joined #ocaml
zpe has quit [Ping timeout: 250 seconds]
j0sh has quit [Ping timeout: 246 seconds]
j0sh has joined #ocaml
nickmeharry has joined #ocaml
jbrown has quit [Ping timeout: 250 seconds]
jbrown has joined #ocaml
cdidd has joined #ocaml
appleby has quit [Quit: appleby]
sorethroat has joined #ocaml
sorethroat is now known as yellowfish
yellowfish has quit [Changing host]
yellowfish has joined #ocaml
dant3 has joined #ocaml
zpe has joined #ocaml
dant3 has quit [Ping timeout: 245 seconds]
zpe has quit [Ping timeout: 260 seconds]
appleby has joined #ocaml
r0b2 has quit [Ping timeout: 246 seconds]
<struktured> argh.. my async parallel program is a black box of no activity lol
mcclurmc has joined #ocaml
tlockney has quit [Ping timeout: 250 seconds]
csakatoku has quit [Remote host closed the connection]
tlockney_away has joined #ocaml
tlockney_away is now known as tlockney
mye_ has joined #ocaml
mye has quit [Ping timeout: 246 seconds]
mye_ is now known as mye
appleby has quit [Quit: appleby]
ggherdov has quit [Ping timeout: 246 seconds]
appleby has joined #ocaml
mye has quit [Quit: mye]
ggherdov has joined #ocaml
claudiuc has joined #ocaml
dant3 has joined #ocaml
groovy2shoes has joined #ocaml
dant3 has quit [Ping timeout: 246 seconds]
zpe has joined #ocaml
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zpe has quit [Ping timeout: 245 seconds]
appleby has quit [Quit: appleby]
yellowfish has quit [Ping timeout: 248 seconds]
struktured has quit [Ping timeout: 245 seconds]
csakatoku has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
appleby has joined #ocaml
shinnya has quit [Ping timeout: 247 seconds]
yellowfish has joined #ocaml
claudiuc has quit [Remote host closed the connection]
dant3 has joined #ocaml
dant3 has quit [Ping timeout: 248 seconds]
appleby has quit [Quit: appleby]
ggole has joined #ocaml
yellowfish has quit [Ping timeout: 246 seconds]
philtor has quit [Ping timeout: 272 seconds]
mcclurmc has joined #ocaml
axiles has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
dant3 has joined #ocaml
cdidd has quit [Remote host closed the connection]
yellowfish has joined #ocaml
groovy2shoes has quit [Ping timeout: 245 seconds]
appleby has joined #ocaml
claudiuc has joined #ocaml
talzeus has joined #ocaml
Kakadu has joined #ocaml
appleby has quit [Quit: appleby]
claudiuc_ has joined #ocaml
claudiuc has quit [Ping timeout: 250 seconds]
yacks has joined #ocaml
tlockney is now known as tlockney_away
mort___ has joined #ocaml
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 250 seconds]
syntropy has joined #ocaml
mye has joined #ocaml
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
mort___ has quit [Quit: Leaving.]
jao has quit [Ping timeout: 248 seconds]
zxqdms has joined #ocaml
keithflower has quit [Quit: keithflower]
pyon has joined #ocaml
mcclurmc has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
talzeus has quit [Read error: Connection reset by peer]
mye has quit [Quit: mye]
zpe has joined #ocaml
Derander_ is now known as Derander
AltGr has joined #ocaml
yellowfish has quit [Ping timeout: 252 seconds]
chris2 has quit [Ping timeout: 264 seconds]
mchqwerty has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
jonludlam has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
Simn has joined #ocaml
dant3 has quit [Remote host closed the connection]
shinnya has joined #ocaml
dant3 has joined #ocaml
ocp has joined #ocaml
dant3 has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
troydm has quit [Quit: What is hope? That all of your wishes and all of your dreams come true? (C) Rau Le Creuset]
troydm has joined #ocaml
mcclurmc has joined #ocaml
pyon is now known as Guest73958
chris2 has joined #ocaml
Thooms has joined #ocaml
mcclurmc has quit [Ping timeout: 250 seconds]
Guest73958 has quit [Ping timeout: 245 seconds]
dant3 has joined #ocaml
Yoric has joined #ocaml
zpe has joined #ocaml
chris2 has quit [Ping timeout: 260 seconds]
flux has quit [Remote host closed the connection]
flux has joined #ocaml
chris2 has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
chris2 has quit [Ping timeout: 248 seconds]
chris2 has joined #ocaml
csakatoku has quit []
ontologiae has joined #ocaml
mcclurmc has joined #ocaml
chris2 has quit [Ping timeout: 265 seconds]
chris2 has joined #ocaml
_andre has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
sagotch has joined #ocaml
chris2 has quit [Ping timeout: 250 seconds]
chris2 has joined #ocaml
_andre has quit [Quit: leaving]
_andre has joined #ocaml
ygrek has quit [Ping timeout: 272 seconds]
chris2 has quit [Ping timeout: 260 seconds]
kyrylo has joined #ocaml
chris2 has joined #ocaml
dsheets has quit [Ping timeout: 245 seconds]
skchrko has joined #ocaml
chris2 has quit [Ping timeout: 272 seconds]
dsheets has joined #ocaml
chris2 has joined #ocaml
mcclurmc has joined #ocaml
chris2 has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Ping timeout: 245 seconds]
zzz_ has joined #ocaml
zzz_` has quit [Ping timeout: 252 seconds]
testcocoon has quit [Ping timeout: 252 seconds]
mye has joined #ocaml
dRbiG has quit [Ping timeout: 252 seconds]
ski has quit [Ping timeout: 252 seconds]
syntropy has quit [Ping timeout: 245 seconds]
chris2 has joined #ocaml
testcoco` has joined #ocaml
ski_ has joined #ocaml
ski_ is now known as ski
chris2 has quit [Ping timeout: 260 seconds]
syntropy has joined #ocaml
dRbiG has joined #ocaml
claudiuc has joined #ocaml
axiles has quit [Ping timeout: 250 seconds]
dant3 has quit [Remote host closed the connection]
axiles has joined #ocaml
claudiuc_ has quit [Ping timeout: 272 seconds]
chris2 has joined #ocaml
ollehar has joined #ocaml
thomasga has joined #ocaml
thomasga1 has joined #ocaml
thomasga has quit [Ping timeout: 265 seconds]
chris2 has quit [Ping timeout: 245 seconds]
chris2 has joined #ocaml
chris2 has quit [Ping timeout: 245 seconds]
chris2 has joined #ocaml
sagotch has quit [Quit: Page closed]
mcclurmc has joined #ocaml
watermind has quit [Read error: Operation timed out]
venk has quit [Ping timeout: 246 seconds]
mcclurmc has quit [Ping timeout: 260 seconds]
watermind has joined #ocaml
yacks has quit [Ping timeout: 252 seconds]
ggole has quit [Ping timeout: 252 seconds]
chris2 has quit [Ping timeout: 260 seconds]
chris2 has joined #ocaml
mye has quit [Quit: mye]
ggole has joined #ocaml
jonludlam has quit [Remote host closed the connection]
mye has joined #ocaml
chris2 has quit [Ping timeout: 260 seconds]
chris2 has joined #ocaml
<companion_cube> https://github.com/lindig/lua-ml looks nice! :)
thomasga1 has quit [Quit: Leaving.]
appleby has joined #ocaml
thomasga has joined #ocaml
syntropy has quit [Quit: Page closed]
dsheets has quit [Ping timeout: 248 seconds]
chris2 has quit [Read error: Operation timed out]
chris2 has joined #ocaml
zxqdms has quit [Quit: leaving]
thomasga has quit [Quit: Leaving.]
dsheets has joined #ocaml
chris2 has quit [Ping timeout: 245 seconds]
chris2 has joined #ocaml
r0b1 has joined #ocaml
mcclurmc has joined #ocaml
appleby has quit [Quit: appleby]
watermind has quit [Read error: Connection reset by peer]
talzeus has joined #ocaml
watermind has joined #ocaml
chris2 has quit [Ping timeout: 260 seconds]
chris2 has joined #ocaml
mcclurmc has quit [Ping timeout: 250 seconds]
chris2 has quit [Ping timeout: 248 seconds]
chris2 has joined #ocaml
chris2 has quit [Read error: Operation timed out]
chris2 has joined #ocaml
darkf has quit [Quit: Leaving]
yacks has joined #ocaml
dsheets has quit [Ping timeout: 248 seconds]
thomasga has joined #ocaml
chris2 has quit [Ping timeout: 245 seconds]
chris2 has joined #ocaml
chris2 has quit [Ping timeout: 260 seconds]
chris2 has joined #ocaml
sagotch has joined #ocaml
mchqwerty has quit [Quit: Odcházím]
S11001001 has joined #ocaml
S11001001 has quit [Changing host]
S11001001 has joined #ocaml
jonludlam has joined #ocaml
jludlam has joined #ocaml
cdidd has joined #ocaml
jonludlam has quit [Ping timeout: 245 seconds]
struktured has joined #ocaml
<sagotch> what is the best (simplest) way to install my own program. I already used ocamlfind install to install a library, but what about binary file? A tool to automatically find where to install bin
<companion_cube> if you have a configure file (using oasis for instance) you can cp to the bindir
<flux> I don't think there is one. programs usually just default to /usr/local/bin and if that's not ok, the user can somehow override it
<troydm> what's the name of a function to extract value from option ?
<companion_cube> match ... with
<companion_cube> :D
<flux> there is no such function in ocaml standard library
<flux> (Batteries comes with Option.get and a variant, though)
<companion_cube> basically options are designed to force you to pattern match
<companion_cube> because you need to deal with both cases
<pippijn> yes
<flux> but, there can be cases where you just know there is a value
<pippijn> yes
<pippijn> rarely
cdidd has quit [Remote host closed the connection]
<pippijn> and I tend to avoid those cases
<flux> and doing a match in that case with just adds noise, not information
cdidd has joined #ocaml
<pippijn> in most cases, you can add a match in the place where you gain the knowledge that it's Some
<pippijn> by slightly restructuring the code, perhaps splitting off some code into another function
<pippijn> if you know it by secondary circumstances, I don't think that's very good style
Kakadu has quit [Ping timeout: 245 seconds]
Kakadu has joined #ocaml
<pippijn> let opt = if something then Some stuff else None in if something then (* I know opt is Some *)
<flux> here is an example from my gtk-using app: let id = ref None in id := Some ( GMain.idle.add @@ fun -> GMain.idle.remove (Option.get id); .. more code ..
<flux> is that a bad case to use?
<pippijn> no
<pippijn> I think that's reasonable
<pippijn> I think you'd much more often get such cases in side-effectful code
<pippijn> it's Option.get !id, right?
<flux> right, I wrote that out as it was not an oneliner originally
<flux> GMain.Idle as well :)
<ggole> The alternative is to come up with a dummy value, which isn't always a good idea.
<companion_cube> here, couldn't you use a function reference directly?
<pippijn> ggole: right, actually I usually do that
<ggole> It can be preferable to matching on options in a million places
<flux> companion_cube, ?. note that I'm not assigning a function there.
<pippijn> most of my record types have an empty_record value
<flux> ggole, or maybe you could just use the equivalent of Option.get..
<companion_cube> oh
<ggole> But you are effectively lying to the type system by encoding your own "None"
<companion_cube> ggole: you can use a monad on options
jludlam is now known as jonludlam
<companion_cube> so that only to extract the final value is matching needed
ygrek has joined #ocaml
<ggole> That's reasonable if you're going the option route, I guess.
<pippijn> I love it when I have an actual use case for option monads
<pippijn> it only happened twice, I think
<pippijn> this is one
<companion_cube> what's the type of perform?
<pippijn> no type
<flux> it's a language extension, so it's not a function
<pippijn> it's "do" from haskell
<companion_cube> ah, I see
<companion_cube> that's cheating :D
<companion_cube> I'd use >>= personally
<flux> prettyy... not.
<pippijn> I think this is prettier
<flux> ;)
<flux> btw, is there an extension point based version of that kind of syntax extension? is it possible?
<companion_cube> well it's more explicit
<companion_cube> flux: I think extension points will allow this, yes
<pippijn> flux: wmeyer made one, I think
<companion_cube> things like let%lwt x = ...... in let%lwt y = .....
<pippijn> a ppx monad thing
<pippijn> yes, that
<ggole> gnuCond? Is that the x ?: y extension?
<flux> coo, just opam install away. probably not impossible to integrate to ocamlbuild either :)
<companion_cube> awww, why did they use "fail" :/
<pippijn> ggole: yep
avsm has joined #ocaml
<flux> though omonad probably doesn't work with ocamlfind in any meaningful way?
<pippijn> ggole: I prefer to keep it separate and not pollute the normal cond with options
<ggole> Yeah.
<flux> interesting how it's ListMonad.(begin .. end). is that redudant usage there or required by the syntax?
yellowfish has joined #ocaml
<flux> or maybe it's even a bug
<flux> in the example
<flux> actually it looks like it should be ListMonad.(perform begin ..
<flux> (so it's "perform (expr)")
<flux> pretty nice regardless!
thomasga has quit [Quit: Leaving.]
<troydm> how do i pring string into out_channel
<troydm> without using printf?
<troydm> i don't need formatted output
<troydm> just output of string
<flux> print_string
<flux> hmm
<flux> no..
<flux> but there are functions to do that
<flux> output_string?
<pippijn> print_string and print_endline
<pippijn> oh, out_channel
<pippijn> yes, output_string
<pippijn> (and there is no output_endline)
thomasga has joined #ocaml
<troydm> pippijn: oic, thx
<pippijn> I'm not so happy with ocaml's IO library
dsheets has joined #ocaml
<companion_cube> agreed, out_channel being incompatible with buffers and strings isn't very nice
<companion_cube> maybe the IO system is where objects could help (as in ocamlnet)
<pippijn> out_channel being closed
<companion_cube> exactly
<companion_cube> it should be a class type
<pippijn> or have a function constructor
<companion_cube> also, why not
<companion_cube> batteries has batIO, but several people seem to dislike it
<pippijn> heh
<pippijn> Michael Angelo Batio
<pippijn> I should have known
<companion_cube> ?
<pippijn> I googled BatIO
<pippijn> got this guitarist
<companion_cube> :)
amirmc has joined #ocaml
xaimus has quit [Ping timeout: 272 seconds]
samebchase has quit [Ping timeout: 250 seconds]
struktured has quit [Ping timeout: 245 seconds]
appleby has joined #ocaml
jonludlam has quit [Quit: Leaving]
mcclurmc has joined #ocaml
samebchase has joined #ocaml
jonludlam has joined #ocaml
mcclurmc has quit [Ping timeout: 250 seconds]
xaimus has joined #ocaml
toroidalcode has joined #ocaml
toroidalcode has quit [Client Quit]
appleby has quit [Quit: appleby]
yellowfish has quit [Ping timeout: 260 seconds]
sagotch has quit [Ping timeout: 245 seconds]
appleby has joined #ocaml
appleby has quit [Client Quit]
lostcuaz has joined #ocaml
WraithM has quit [Read error: Operation timed out]
<rks_> if someone is using the "deriving" syntax extension, feel free to contribute to https://github.com/the-lambda-church/merlin/issues/168 :]
kyrylo has quit [Ping timeout: 272 seconds]
ousado has quit [Remote host closed the connection]
<troydm> the lambda church sounds like some kind of religious cult
<troydm> are functional programmers just fanatic cultists? :)
adrien_oww has quit [Ping timeout: 265 seconds]
<rks_> either that or they like cheesy word plays
Thooms has quit [Quit: WeeChat 0.3.8]
adrien_oww has joined #ocaml
metasyntax has joined #ocaml
Yoric has quit [Ping timeout: 265 seconds]
<smondet> rks_: I think anyone using .eliom files is using deriving, but Eliom syntaxes are not handled by merlin anyway, right?
amirmc has quit [Quit: Leaving.]
amirmc has joined #ocaml
thomasga has quit [Quit: Leaving.]
wolfnn has joined #ocaml
yellowfish has joined #ocaml
kyrylo has joined #ocaml
ontologiae has quit [Ping timeout: 250 seconds]
yellowfish has quit [Ping timeout: 272 seconds]
shinnya has quit [Ping timeout: 245 seconds]
keithflower has joined #ocaml
ontologiae has joined #ocaml
WraithM has joined #ocaml
<rks_> smondet: no it's not (for the moment)
<rks_> but I was refering to the "tell me which ones are the most useful/needed" :)
<adrien_oww> cookies, by far
talzeus has quit [Remote host closed the connection]
Kakadu has quit [Ping timeout: 245 seconds]
avsm has quit [Quit: Leaving.]
rand000 has joined #ocaml
keithflower has quit [Quit: keithflower]
kyrylo has quit [Ping timeout: 260 seconds]
amirmc has quit [Quit: Leaving.]
jonludlam has quit [Ping timeout: 260 seconds]
skchrko has quit [Ping timeout: 260 seconds]
avsm has joined #ocaml
ArthurB has joined #ocaml
thomasga has joined #ocaml
<ArthurB> hi all, I'm having issues compiling ocaml from the git head
<ArthurB> configure is fine, but when I make world, it complains that "Unbound module Ocamlbuild_pack"
<ArthurB> ahhhh I think it does not like threaded compilation (-j in make)
mcclurmc has joined #ocaml
jonludlam has joined #ocaml
mcclurmc has quit [Ping timeout: 245 seconds]
jwatzman|work has joined #ocaml
rand000 has quit [Quit: leaving]
Anarchos has joined #ocaml
rand000 has joined #ocaml
AltGr has left #ocaml []
mreca has joined #ocaml
WraithM has quit [Ping timeout: 272 seconds]
amirmc has joined #ocaml
Kakadu has joined #ocaml
rand000 has quit [Quit: leaving]
yacks has quit [Ping timeout: 272 seconds]
WraithM has joined #ocaml
aurynj has joined #ocaml
claudiuc has quit [Remote host closed the connection]
amirmc has quit [Ping timeout: 245 seconds]
yellowfish has joined #ocaml
WraithM has quit [Ping timeout: 245 seconds]
tlockney_away is now known as tlockney
Anarchos has quit [Quit: Vision[0.9.7-H-20131020]: i've been blurred!]
ocp has quit [Ping timeout: 248 seconds]
yellowfish has quit [Ping timeout: 260 seconds]
mcclurmc has joined #ocaml
mort___ has joined #ocaml
thomasga has quit [Ping timeout: 260 seconds]
amirmc has joined #ocaml
amirmc has quit [Ping timeout: 248 seconds]
milosn has quit [Read error: No route to host]
milosn_ has joined #ocaml
ontologiae has quit [Ping timeout: 248 seconds]
WraithM has joined #ocaml
appleby has joined #ocaml
milosn_ has quit [Ping timeout: 248 seconds]
jonludlam has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 265 seconds]
mreca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milosn has joined #ocaml
avsm has quit [Quit: Leaving.]
mort___ has quit [Quit: Leaving.]
appleby has quit [Quit: appleby]
skchrko has joined #ocaml
avsm has joined #ocaml
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
sagotch has joined #ocaml
ontologiae has joined #ocaml
lovethroat has joined #ocaml
jonludlam has joined #ocaml
mort___ has joined #ocaml
aurynj has quit [Quit: Leaving]
jonludlam has quit [Read error: Operation timed out]
dsheets has quit [Ping timeout: 250 seconds]
comacat has joined #ocaml
lovethroat has quit [Ping timeout: 245 seconds]
<tizoc> there is no direct way of compiling bytecode into memory and then loading it from memory, right? (I'm checking the Dynlink module)
Arsenik has joined #ocaml
<adrien> well, first, you'd nee the compiler-libs
<adrien> maybe the toplevel does everything without writing on disk but I couldn't tell for sure
<def-lkb> the toplevel does everything in mem, exccept for finding dependencies (cmis are read from disk)
oriba has joined #ocaml
xaimus has quit [Read error: Operation timed out]
avsm has quit [Quit: Leaving.]
Yoric has joined #ocaml
<tizoc> is compiler-libs documented anywhere? somehow I have them installed already but I cannot find docs online and http://caml.inria.fr/svn/ocaml/trunk/compilerlibs/ is empty
_andre has quit [Quit: leaving]
zpe has joined #ocaml
<adrien> compiler-libs is the package name
<adrien> they're from the compiler itself
mort___ has quit [Quit: Leaving.]
<bernardofpc> adrien: """GtkPixmap has been deprecated since GTK+ 2.0 and should not be used in newly written code. Use GtkImage instead.""" Is there GtkImage in lablGtk ?
<adrien> use GtkPixmap :P
<adrien> bernardofpc: to use in what?
<adrien> actually
<adrien> try in GtkMisc, GMisc
Yoric has quit [Ping timeout: 265 seconds]
avsm has joined #ocaml
kyrylo has joined #ocaml
<adrien> bernardofpc: yeah, there's GMisc.image
<bernardofpc> adrien: my idea is that I will have a fair amount of graphics (say curves drawn point by point because simulation)
<bernardofpc> so I want to render them in a layer-0
<adrien> I guess they deprecated it because they were switching to Cairo
<bernardofpc> and then some part will do an animation, which I'd put on layer-1
<bernardofpc> so that I can care about managing layer-1 only, and then render will properly (I don't know how yet) fuse them
<bernardofpc> so I started learning more about pixmaps
<bernardofpc> and then I found the deprecation just now
<adrien> I wasn't aware of it, or at least I kept on forgetting it
<adrien> I'm not a huge fan of Cairo
<adrien> it's fairly slow
<bernardofpc> well, I can take a suggestion on my basic problem ;-)
samebchase has quit [Ping timeout: 260 seconds]
<adrien> GMisc.image? :P
<bernardofpc> I don't know how it works, but I'll look into it
<bernardofpc> oh, other quesiton
<bernardofpc> is there some place where the magic constants GDK_BUTTON1_MASK get declared ?
<bernardofpc> grep did not answer me)
samebchase has joined #ocaml
mort___ has joined #ocaml
samebchase has quit [Remote host closed the connection]
samebchase has joined #ocaml
<bernardofpc> o bit-test (GdkEvent.Motion.state ev) for the button pressed
<bernardofpc> *to bit-test
<adrien> bernardofpc: remove "GDK_"
<adrien> check again
Thooms has joined #ocaml
lovethroat has joined #ocaml
avsm has quit [Quit: Leaving.]
<bernardofpc> no luck :/
<bernardofpc> I do find a lot of BUTTON1, but those are variants
<bernardofpc> `BUTTON1 or alike
<adrien> :)
<bernardofpc> the compiler seems not to like comparing these with integers
<adrien> bernardofpc: you're grepping in the source?
<bernardofpc> (but maybe I shouldn't land them)
jwatzman|work has quit [Quit: jwatzman|work]
<bernardofpc> adrien: both the source and the /usr/lib/ocaml/lablgtk2/ dir
<adrien> look at .vars file
<adrien> they're read by varcc and that creates several files which are then compiled
<adrien> the "GDK_" bit is factored from the names
<bernardofpc> how nice of them :/
<bernardofpc> (well, It's better for maintainability, worse for grep)
<bernardofpc> still I see no "BUTTON1"
<bernardofpc> hum, so maybe they are "GDK_" `BUTTON1_MOTION instead of _MASK
jonludlam has joined #ocaml
<bernardofpc> oh no
<bernardofpc> its B1_MOTON_MASK
<bernardofpc> with a GDK in front
<bernardofpc> ok...
<bernardofpc> by the way
<bernardofpc> how do I mention a variant `BLAH in module Foo ?
<bernardofpc> Foo.(`BLAH) ?
<adrien> `BLAH
<bernardofpc> variants have no namespace ?
<adrien> oh
<adrien> I've discovered a new thing in the syntax of .var files
<adrien> type modifier "gdkModifier" = "GDK_" [ `SHIFT | `LOCK | `CONTROL | `MOD1 | `MOD2 | `MOD3 | `MOD4 | `MOD5 | `BUTTON1 | `BUTTON2 | `BUTTON3 | `BUTTON4 | `BUTTON5 | `SUPER | `HYPER | `META | `RELEASE ] "_MASK"
<adrien> that there can also be a shared _suf_fix
<adrien> thought it only applied to prefixes
<bernardofpc> the compiler still does not like me
<adrien> what do you try?
<bernardofpc> let (a:int) = state ev in if a land `GDK_BUTTON1_MASK = `GDK_BUTTON1_MASK then ... does not compile
Yoric has joined #ocaml
<bernardofpc> maybe there's a function to check if a flag is in state
<adrien> a land ... ?
<adrien> what?
<adrien> these are not integers
<adrien> they're polymorphic variants
<adrien> they're hashes
<bernardofpc> most certainly
<adrien> lablgtk should provide functions to do the check
<adrien> and that would involve going through C
<bernardofpc> but if I do "a land 256 = 256" it works
<adrien> but I suspect it does another approach
<adrien> s/does/uses/
<bernardofpc> they belong into "enum GdkModifierType" on Gtk-land
<adrien> which callback do you register on?
<bernardofpc> I'm inside the callback that handles motion events
<bernardofpc> and I want to know if BUTTON1 is pressed
<adrien> what is its name?
<bernardofpc> ignore(canvas#event#connect#motion_notify ~callback:canvas_motion);
<bernardofpc> and then I'm inside canvas_motion ev = ... let state = GdkEvent.Motion.state ev in ...
malo_ has joined #ocaml
ggole has quit []
<bernardofpc> val test_modifier : Tags.modifier -> int -> bool -> I guess I found
<bernardofpc> (of course... once you know the type, you grep in .mli !!)
<bernardofpc> thanks adrien
<adrien> I usually have "ocamlbrowser -I $(ocamlfind query lablgtk2)" opened when I do lablgtk stuff
<adrien> I'm going to save rks_ and def-lkb some sweat and say merlin can be used too
<rks_> :D
<bernardofpc> no merlin for me (I'm unable to compile from source, and there's no opam in my distro neither)
<rks_> http://ocamloscope.herokuapp.com/ might be more useful
<rks_> bernardofpc: oh, what's the problem?
<rks_> you could open an issue for your compilation problem, so we look into it
<adrien> bernardofpc: and ocamlbrowser?
<bernardofpc> neither, I guess
<adrien> hmm
<adrien> it's shipped in ocaml
<bernardofpc> it's a Tk interface ?
<adrien> yes
Yoric has quit [Ping timeout: 265 seconds]
<bernardofpc> I see
<adrien> bit weird at first but you can get fairly efficient with it
<rks_> ocp-index offers something similar but with a curse interface
<rks_> (i.e. it's nicer!)
<adrien> you cannot use a mouse wheel with it
Yoric has joined #ocaml
keithflower has joined #ocaml
<bernardofpc> adrien: ocamlbrowser finds BUTTON1 ??
<adrien> bernardofpc: no; but I meant using it to quickly get the type of a function and navigate to the related functions
<bernardofpc> right, this certainly will help
<flux> nice, it covers operators as well :) Error: Unbound value -~. Did you mean --., -. or ~-.?
Yoric has quit [Ping timeout: 265 seconds]
contempt has quit [Ping timeout: 245 seconds]
lovethroat has quit [Ping timeout: 272 seconds]
contempt has joined #ocaml
oriba has quit [Quit: oriba]
jwatzman|work has joined #ocaml
lovethroat has joined #ocaml
mreca has joined #ocaml
axiles has quit [Remote host closed the connection]
<adrien> pippijn: around?
jonludlam has quit [Remote host closed the connection]
<pippijn> adrien: just in time
<pippijn> adrien: yes
Thooms has quit [Read error: No route to host]
<adrien> pippijn: I wanted to ask you what "Sie verzichten damit aber auf Zusatzleistungen und Services für die wir Ihre Kundendaten benötigen." would mean, it's from notebooksbilliger.de and I roughly understand it but it's not very clear
Thooms has joined #ocaml
<pippijn> with this action, you waive your right to additional services and.. services for which we would need your customer data
<adrien> ah, thanks!
<adrien> "waive" is very important here
<pippijn> verzichten
<adrien> google wouldn't translate it that way
<pippijn> http://dict.leo.org/#/search=verzichten&searchLoc=0&resultOrder=basic&multiwordShowSingle=on
<adrien> :)
<adrien> buying a new laptop almost in emergency
<pippijn> I did that once
<pippijn> it wasn't the worst machine I ever had
<adrien> and notebooksbilliger has a freedos option which is way less expensive
<pippijn> yeah
<pippijn> freedos = no OS
<pippijn> essentially :)
<pippijn> but it's funny that they actually bother to put it on there
<adrien> heh, I've been looking at it for some time now but since I'm leaving for 4-5 days on tomorrow, I want to buy it before I leave to not delay it too much
<adrien> they might have to ship at least something
<adrien> I have no idea what I'm going to waive
<pippijn> me neither
mreca has quit [Quit: Textual IRC Client: www.textualapp.com]
<pippijn> I'm going to bed, meeting tomorrow morning
<pippijn> good night
<adrien> night
<adrien> and good luck for the meeting :P
<companion_cube> good night pippijn
<companion_cube> http://vrac.cedeela.fr/truc.ml ← today I'm reinventing the sorting wheel ^^
<companion_cube> (just for fun of course)
venk has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
contempt has quit [Disconnected by services]
contempt has joined #ocaml
<adrien> hmm, they only ship in germany and austria
tobiasBora has joined #ocaml
xaimus has joined #ocaml
<erider> hi all
<companion_cube> hi erider
WraithM has quit [Ping timeout: 248 seconds]
WraithM has joined #ocaml
dsheets has joined #ocaml
WraithM has quit [Read error: Operation timed out]
lovethroat has quit [Ping timeout: 250 seconds]
contempt has quit [Ping timeout: 260 seconds]
contempt has joined #ocaml
WraithM has joined #ocaml
ontologiae has quit [Ping timeout: 250 seconds]
<ArthurB> would it be fair to say that the difference between class and module in ocaml maps well to the difference between class with no virtual calls in C++ and those that do use dynamic binding?
<companion_cube> I'm not sure, because in Ocaml modules and classes are totally different wrt typing
<companion_cube> whereas in C++ they are almost the same ("virtual" excepted)
<ArthurB> in this respect, emulating inheritance with a functor is the equivalent of the Curiously Recurring Template trick
<ArthurB> companion_cube: they look similar but they are quite different
<companion_cube> in ocaml they don't look similar at all
<companion_cube> (but yeah, modules are static dispatch, objects dynamic dispatch)
ousado has joined #ocaml
ocp has joined #ocaml
venk has quit [Remote host closed the connection]
thomasga has joined #ocaml
<ArthurB> I'm somewhat new to ocaml development
<ArthurB> what do most people commonly work with, modules or objects?
<bitbckt> modules.
<companion_cube> ArthurB: you had a fair point though, objects are sometimes used when dynamic dispatch is useful
Arsenik has quit [Remote host closed the connection]
<ArthurB> so in CPP, you can do a lot with the templating language to help you resolve types at compile time
<ArthurB> I work in hft where the cost of virtual calls is too high, and there are very often static workarounds
<companion_cube> apparently some trading can be done in ocaml, see Jane Street ;)
Yoric has joined #ocaml
avsm has joined #ocaml
<Drup> (adrien : do you have a proposition for a drawing engine to replace cairo ?)
mreca has joined #ocaml
vpit3833 has quit [Ping timeout: 245 seconds]
contempt has quit [Ping timeout: 250 seconds]
malo_ has quit [Quit: Leaving]
mreca has quit [Quit: Textual IRC Client: www.textualapp.com]
jao has quit [Ping timeout: 260 seconds]
sillyotter has joined #ocaml
sillyotter has quit [Remote host closed the connection]
S11001001 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
nikki93 has joined #ocaml
Eyyub has joined #ocaml
lovethroat has joined #ocaml
ocp has quit [Ping timeout: 248 seconds]
sagotch has quit [Remote host closed the connection]
venk has joined #ocaml
lovethroat has quit [Ping timeout: 272 seconds]
NoNNaN has quit [Quit: []]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ocaml
hto_ has joined #ocaml
hto has quit [Quit: leaving]
struktured has joined #ocaml
Thooms has quit [Ping timeout: 245 seconds]
Yoric has quit [Ping timeout: 265 seconds]
ollehar has quit [Ping timeout: 246 seconds]
testcoco` has quit [Ping timeout: 260 seconds]
ollehar has joined #ocaml
mort___ has left #ocaml []
coke0 has joined #ocaml
ArthurB has quit [Ping timeout: 272 seconds]
coke0 has quit [Ping timeout: 264 seconds]
hto_ has quit [Quit: leaving]
Simn has quit [Quit: Leaving]
hto has joined #ocaml
coke0 has joined #ocaml
testcocoon has joined #ocaml
WraithM has quit [Ping timeout: 245 seconds]
avsm has quit [Quit: Leaving.]
ontologiae has joined #ocaml
hto_ has joined #ocaml
hto__ has joined #ocaml
coke0_ has joined #ocaml
hto___ has joined #ocaml
appleby has joined #ocaml
coke0 has quit [Ping timeout: 245 seconds]
darkf has joined #ocaml
appleby has quit [Quit: appleby]
tobiasBora has quit [Ping timeout: 246 seconds]
rainbyte has joined #ocaml
testcocoon has quit [Ping timeout: 252 seconds]
madroach has quit [Ping timeout: 252 seconds]
madroach has joined #ocaml
WraithM has joined #ocaml
japesinator has quit [Quit: Goodbye.]
lovethroat has joined #ocaml
japesinator has joined #ocaml
tlockney is now known as tlockney_away
lovethroat has quit [Ping timeout: 248 seconds]
tobiasBora has joined #ocaml
testcocoon has joined #ocaml