adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mengu has quit [Remote host closed the connection]
ziyourenxiang has quit [Quit: Leaving]
wtetzner has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
yomimono has quit [Ping timeout: 248 seconds]
orbifx has quit [Ping timeout: 240 seconds]
arc- has quit [Read error: Connection reset by peer]
arc- has joined #ocaml
arc- has quit [Client Quit]
wtetzner has quit [Remote host closed the connection]
yomimono has joined #ocaml
yomimono has quit [Remote host closed the connection]
<Algebr``> is there an ocamlfind package that corresponds to whatever ocamldebug uses?
<Algebr``> How could I programmatically access it
\h has left #ocaml ["WeeChat 1.6"]
jao has quit [Ping timeout: 245 seconds]
xorpse has joined #ocaml
infinity0 has quit [Remote host closed the connection]
iZsh has quit [Ping timeout: 258 seconds]
wtetzner has joined #ocaml
iZsh has joined #ocaml
simon3 has joined #ocaml
wtetzner has quit [Ping timeout: 258 seconds]
simon3 has left #ocaml [#ocaml]
cpdean has quit [Quit: Leaving.]
zv has quit [Ping timeout: 256 seconds]
cpdean has joined #ocaml
silver has quit [Read error: Connection reset by peer]
cheater has quit [Ping timeout: 248 seconds]
cheater has joined #ocaml
jao has joined #ocaml
zv has joined #ocaml
cheater has quit [Ping timeout: 256 seconds]
mfp has quit [Ping timeout: 256 seconds]
cheater has joined #ocaml
larhat1 has joined #ocaml
larhat has quit [Ping timeout: 248 seconds]
shinnya has joined #ocaml
wtetzner has joined #ocaml
cheater has quit [Ping timeout: 240 seconds]
cheater has joined #ocaml
wtetzner has quit [Ping timeout: 240 seconds]
cheater has quit [Ping timeout: 255 seconds]
cheater has joined #ocaml
vicfred has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
tg has quit [Ping timeout: 255 seconds]
FreeBirdLjj has joined #ocaml
nomicflux has quit [Quit: nomicflux]
xorpse has quit [Ping timeout: 258 seconds]
xorpse has joined #ocaml
NJBS has quit [Quit: Catastrophic failure.]
wtetzner has joined #ocaml
wtetzner has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 258 seconds]
xorpse has quit [Ping timeout: 260 seconds]
govg has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
tmtwd has joined #ocaml
wtetzner has joined #ocaml
cpdean has quit [Quit: Leaving.]
tg has joined #ocaml
FreeBirdLjj has joined #ocaml
govg has quit [Ping timeout: 255 seconds]
jao has quit [Ping timeout: 260 seconds]
pierpa has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
tmtwd has quit [Ping timeout: 248 seconds]
wtetzner has quit [Remote host closed the connection]
tmtwd has joined #ocaml
<flux> I don't think ocamldebug 'uses' anything but itself and perhaps the compiler libraries?
ygrek has joined #ocaml
rgrinberg has quit [Ping timeout: 260 seconds]
tmtwd has quit [Quit: Leaving]
govg has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
freusque has joined #ocaml
trepta has quit [Ping timeout: 245 seconds]
jnavila has joined #ocaml
Algebr`` has quit [Ping timeout: 256 seconds]
malc_ has joined #ocaml
jnavila has quit [Ping timeout: 248 seconds]
mengu has joined #ocaml
Mercuria1Alchemi has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
freusque has quit [Ping timeout: 255 seconds]
alfredo has joined #ocaml
larhat1 has quit [Quit: Leaving.]
Simn has joined #ocaml
Algebr`` has joined #ocaml
Algebr`` has quit [Remote host closed the connection]
Algebr`` has joined #ocaml
jnavila has joined #ocaml
dhil has joined #ocaml
freusque has joined #ocaml
antkong has quit [Quit: antkong]
jnavila has quit [Ping timeout: 240 seconds]
antkong has joined #ocaml
alienbot has joined #ocaml
Algebr`` has quit [Ping timeout: 256 seconds]
freusque has quit [Ping timeout: 255 seconds]
ansiwen has quit [Quit: No Ping reply in 180 seconds.]
fraggle_ has quit [Ping timeout: 255 seconds]
ansiwen has joined #ocaml
fraggle_ has joined #ocaml
freusque has joined #ocaml
dhil has quit [Ping timeout: 255 seconds]
AltGr has joined #ocaml
zpe has joined #ocaml
govg has quit [Ping timeout: 258 seconds]
gjaldon has joined #ocaml
snhmib has quit [Ping timeout: 248 seconds]
larhat has joined #ocaml
<companion_cube> yeah, I saw
<companion_cube> thanks ^^
<orbitz> companion_cube: any other grunt-work you need done for 1.0? Just functions that you've already spec'd out and just don't have the time to type?
<companion_cube> not really, I have some changes to make to CCFormat so that Drup does not complain, but otherwise it's mostly fine
Flerex has joined #ocaml
Flerex has quit [Client Quit]
<orbitz> companion_cube: I'm at work btw so I'll make the change you requested once I get home
<companion_cube> sure
<companion_cube> it's not urgent, is it? :)
<orbitz> I'd like it in 1.0, is all :)
<companion_cube> heh
<companion_cube> I think I will make a release candidate for 1.0, for once
<reynir> Drup-approved CCFormat :P
snhmib has joined #ocaml
ocp has joined #ocaml
mengu has joined #ocaml
ocp has quit [Quit: Leaving.]
malc_ has left #ocaml ["ERC (IRC client for Emacs 25.0.50.2)"]
ltadeu has joined #ocaml
shepi has quit [Ping timeout: 260 seconds]
sfri has quit [Ping timeout: 252 seconds]
sfri has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
govg has joined #ocaml
n342 has left #ocaml ["WeeChat 1.7"]
mfp has joined #ocaml
kakadu has joined #ocaml
silver has joined #ocaml
Guest26 has joined #ocaml
antkong has quit [Quit: antkong]
_andre has joined #ocaml
dhil has joined #ocaml
ocaml480 has joined #ocaml
<ocaml480> let vbox = GPack.vbox ~packing:window#add () in window#connect#destroy ~callback:Main.quit;
<ocaml480> This is lblgtk tutorial. Seems to be a different OCaml syntax. I've not code like that till now.
<companion_cube> heh, there are two things: `f ~x:a` is a labelled argument
<companion_cube> (instead of just `f a` you give the label `x` to the argument `a`)
<companion_cube> and a#b#c is method call on objects, similar to a.b.c in other OO languages
<ocaml480> OO OCaml ?
<companion_cube> yeah, the "O" stands for object
<ocaml480> ~packing is a label
<ocaml480> ~callback:Main.quit;
<ocaml480> I thought there is no Main.
<companion_cube> this is just a module called Main
<companion_cube> nothing special
<companion_cube> you can write such a module if you want, it just has nothing special
<ocaml480> label:Module.function ?
<companion_cube> ~label:any_value_here
<companion_cube> (including Module.function if you want)
<companion_cube> I mean, ~label:42 also works
<companion_cube> it's like passing a normal argument
<ocaml480> ~packing:vbox#pack label:Object#function
<companion_cube> sure
<ocaml480> Label has some semantics ?
<companion_cube> well, labels are part of signatures
<companion_cube> it's similar to named arguments in python
<companion_cube> you can re-order them
<companion_cube> they act like documentation
<ocaml480> let () = main ()
<ocaml480> Returns 'unit'.
<ocaml480> It knows that main() is the main method ?
govg has quit [Ping timeout: 255 seconds]
govg has joined #ocaml
<ocaml480> lablgtk doesn't have many examples.
leah2 has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
jao has joined #ocaml
leah2 has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
alienbot has quit [Remote host closed the connection]
Flerex has joined #ocaml
nbecker has joined #ocaml
<flux> ocaml480, let () = main () calls main function because it's evaluating the statement, as it does for everything else from top to bottom
alienbot has joined #ocaml
<flux> basically if you write let a = 4 + 4 it evaluates the 4 + 4 right there
sepp2k has joined #ocaml
<flux> in the same way let () = print_endline "hello" evalutes the expression at that point
Guest26 has quit [Quit: Textual IRC Client: www.textualapp.com]
troydm has quit [Ping timeout: 258 seconds]
<ocaml480> Ok
nomicflux has joined #ocaml
snhmib has quit [Ping timeout: 255 seconds]
sillyotter has joined #ocaml
Drup has quit [Ping timeout: 258 seconds]
Drup has joined #ocaml
sillyotter has quit [Quit: WeeChat 1.4]
alienbot has quit [Remote host closed the connection]
snhmib has joined #ocaml
<ocaml480> let () = main () If I have this in a .ml file it is called automatically. How do I run it in utop ?
Flerex has quit [Quit: Textual IRC Client: www.textualapp.com]
<ocaml480> I mean if I compile it it runs.
freusque has quit [Ping timeout: 240 seconds]
<ocaml480> lablgtk code has to be compiled always ?
nomicflux has quit [Quit: nomicflux]
<reynir> No, I don't think so
mengu has quit [Quit: Leaving...]
<thizanne> ocaml480: you can #use "your_file.ml"
<thizanne> but you need to load necessary modules before
<thizanne> (like lablgtk)
<adrien> #require "lablgtk.auto-init"
<adrien> or use the lablgtk toplevel
jao has quit [Ping timeout: 240 seconds]
nomicflux has joined #ocaml
xorpse has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
nomicflux has quit [Client Quit]
troydm has joined #ocaml
Denommus has joined #ocaml
Denommus` has joined #ocaml
Denommus has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 245 seconds]
<ocaml480> I have lablgtk code along with other OCaml code in one file.
<ocaml480> #require "lablgtk2";; I use
dhil has joined #ocaml
<ocaml480> let a = Printexc.print main () How do I call main ?
<flux> that calls main
<flux> what was the question?-)
<ocaml480> I have lablgtk code along with other OCaml code in one file. Don't have to compile. I am told.
<ocaml480> How do I bootstrap main ?
<ocaml480> #require "lablgtk2";; Modules are loaded in toplevel.
rgrinberg has joined #ocaml
<ocaml480> Have to go. Will ask again.
Onemorenickname_ has joined #ocaml
<Onemorenickname_> hello people
<Onemorenickname_> i'm getting an obscure error, and i think printing the inferred types so far could help me
<Onemorenickname_> how can i do so without using the interpreter ?
<companion_cube> you could try to use merlin, probably the best
<Onemorenickname_> compatible with ocamlbuild ?
<theblatte> you could also annotate functions or values with some types, either the ones you expect or just "unit", to get ocaml to complain in specific places
<Onemorenickname_> theblatte, that's what i've done, but i got an error i still don't understand at an unexpectad place
<Onemorenickname_> i think an inference has been made to constrain the general type of the previous function
ocaml480 has quit [Ping timeout: 260 seconds]
<Onemorenickname_> but given i don't have access to its type, i can't see what was that inference
<Onemorenickname_> hence the need to get the types of everything inferred so far
<Onemorenickname_> (i've seen someone do that, maybe with "-i" option or something likethat)
<Onemorenickname_> (but not with ocamlbuild)
<companion_cube> merlin can work with ocamlbuild, it's an editor plugin that embeds the typechecker
<companion_cube> and you have a shortcut to ask for the type of any expression
<Onemorenickname_> i will check the doc, thank you companion_cube :)
nomicflux has joined #ocaml
nomicflux has quit [Client Quit]
<companion_cube> !merlin
<Onemorenickname_> so far, the .merlin file has been easy to make, and save highlights me the errors
<Onemorenickname_> perfect
<Onemorenickname_> companion_cube, and i can get the types, thank you !
<companion_cube> ah, nice!
<companion_cube> it's a very useful tool
<companion_cube> (with a minimum amount of setup you also get jump-to-def)
alienbot has joined #ocaml
<Onemorenickname_> i'll check that
sz0 has joined #ocaml
<Onemorenickname_> easy&quick setup, useful features, what to ask ? :D
alienbot has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
<companion_cube> yeah, it's amazing
<Onemorenickname_> and i solved the error
<Onemorenickname_> actually, there was a bigger error /just after/ the small one, and given the compilation stops after the first error detected, i could not see it
<Onemorenickname_> haha
FreeBirdLjj has quit [Remote host closed the connection]
<reynir> Onemorenickname_: Did someone take Onemorenickname? :D
FreeBirdLjj has joined #ocaml
<companion_cube> Twomorenickname
cpdean has joined #ocaml
cpdean has quit [Client Quit]
omarramo has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
freusque has joined #ocaml
al-damiri has joined #ocaml
zpe has quit [Ping timeout: 248 seconds]
<Onemorenickname_> reynir, ha ha
Onemorenickname_ is now known as Onemorenickname
alienbot has joined #ocaml
omarramo has quit [Ping timeout: 240 seconds]
alienbot has quit [Remote host closed the connection]
infinity0 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Onemorenickname_ has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 245 seconds]
omarramo has joined #ocaml
Onemorenickname has quit [Ping timeout: 252 seconds]
gjaldon has quit []
omarramo has quit [Read error: Connection reset by peer]
omar__ has joined #ocaml
xorpse has quit [Ping timeout: 240 seconds]
troydm has quit [Ping timeout: 240 seconds]
larhat has quit [Quit: Leaving.]
asmanur has quit [Ping timeout: 256 seconds]
omar__ has quit [Ping timeout: 240 seconds]
omar__ has joined #ocaml
rgrinberg has quit [Remote host closed the connection]
omar__ has quit [Quit: Konversation terminated!]
omarramo has joined #ocaml
yomimono has joined #ocaml
asmanur_ has joined #ocaml
Onemorenickname_ has quit [Read error: Connection reset by peer]
omar__ has joined #ocaml
omarramo has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 240 seconds]
omar__ has quit [Ping timeout: 255 seconds]
fraggle_ has quit [Ping timeout: 255 seconds]
ryanartecona has joined #ocaml
dhil has joined #ocaml
vicfred has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
alfredo has quit [Quit: Textual IRC Client: www.textualapp.com]
troydm has joined #ocaml
larhat has joined #ocaml
rgrinberg has joined #ocaml
copy` has joined #ocaml
jnavila has joined #ocaml
mfp has quit [Ping timeout: 255 seconds]
jnavila has quit [Read error: Connection reset by peer]
demonimin has quit [Remote host closed the connection]
demonimin has joined #ocaml
slash^ has joined #ocaml
govg has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
mfp has joined #ocaml
moei has quit [Quit: Leaving...]
th5 has joined #ocaml
two_wheels has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
ryanartecona has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
ygrek has joined #ocaml
demonimin has quit [Remote host closed the connection]
zpe has quit [Remote host closed the connection]
demonimin has joined #ocaml
tane has joined #ocaml
unbalanced has joined #ocaml
sepp2k has quit [Quit: Leaving.]
dhil has quit [Ping timeout: 256 seconds]
unbalanced has quit [Ping timeout: 240 seconds]
milodavis has quit [Quit: WeeChat 1.0.1]
apache3 has quit [Remote host closed the connection]
apache3_ has joined #ocaml
fraggle-boate has quit [Remote host closed the connection]
orbifx has joined #ocaml
octachron has joined #ocaml
kakadu has joined #ocaml
fre has joined #ocaml
_andre has quit [Quit: leaving]
smondet has joined #ocaml
KV has joined #ocaml
KV has quit [Client Quit]
KV has joined #ocaml
rcabaco has quit [Remote host closed the connection]
rcabaco has joined #ocaml
jao has joined #ocaml
rcabaco has quit [Ping timeout: 240 seconds]
moei has joined #ocaml
rcabaco has joined #ocaml
Xadnem has joined #ocaml
Xadnem has quit [Client Quit]
rcabaco has quit [Ping timeout: 256 seconds]
orbifx has quit [Ping timeout: 240 seconds]
octachron has quit [Quit: Leaving]
ltadeu has quit [Ping timeout: 240 seconds]
rcabaco has joined #ocaml
napping has joined #ocaml
zpe has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
_zim_ has quit [Ping timeout: 272 seconds]
<napping> trying to install omake with opam is failing - would a non-opam install under /usr/local possibly break it?
Algebr`` has joined #ocaml
celsosouza has joined #ocaml
Algebr`` is now known as Algebr
madroach has joined #ocaml
pierpa has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 255 seconds]
Denommus` has quit [Ping timeout: 255 seconds]
<napping> The fatal error is like *** omake error: File doc/OMakefile: line 227, characters 5-18 directory does not exist: $HOME/.opam/4.03.0/build/omake.0.10.1/doc/txt
ryanartecona has quit [Quit: ryanartecona]
<napping> Ah, I seem to have hit https://github.com/ocaml-omake/omake/issues/63
<napping> opam install fails if hevea is installed?!
<companion_cube> ah, it must try to generate some doc and fail
<napping> Yeah, something like that. It just seems pretty weird
celsosouza has quit [Quit: Textual IRC Client: www.textualapp.com]
handlex has joined #ocaml
<rgrinberg> It's fixed in master actually, waiting on Gerd to make a release :|
<napping> Ok, that's nice
<rgrinberg> So you can either do a pin if you'd like to keep hevea, or just get rid of hevea and reinstall
<napping> Not just touching doc/txt/.empty?
larhat has quit [Quit: Leaving.]
average has quit [Ping timeout: 245 seconds]
average has joined #ocaml
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
th5 has quit []
AltGr has left #ocaml [#ocaml]
<mami> go picolino
<mami> oops
larhat has joined #ocaml
mengu has joined #ocaml
KV has quit [Quit: leaving]
zpe has quit [Remote host closed the connection]
<madroach> Hi, is there a way to read directly from a file into a bigarray?
<companion_cube> Bigarray.Array1.map_file
<companion_cube> (or use bigstring)
antkong_ has joined #ocaml
<madroach> no portable way?
<madroach> map_file isn't portable, is it?
<companion_cube> well, depends on `unix`
<companion_cube> I don't think memory-mapping is very portable in general
<madroach> ok. thanks!
Flerex has joined #ocaml
tane has quit [Quit: Leaving]
orbifx has joined #ocaml
Anarchos has joined #ocaml
ryanartecona has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
zpe has joined #ocaml
handlex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
handlex has joined #ocaml
Flerex has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Drup> reynir: https://i.imgur.com/Cedq0ID.png I made this just for you.
<Drup> (I started by looking for an "octopus of approval", but couldn't find one, so here you are.
<reynir> :D
* reynir saves it for later use (hopefully)
yomimono has quit [Ping timeout: 240 seconds]
<Drup> :D
arquebus has joined #ocaml
<Drup> (if anyone with artistic talents could make an octopus version of https://i.imgur.com/vR8qCsg.jpg, that would be much better)
rgrinberg has quit [Ping timeout: 252 seconds]
handlex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agarwal1975 has joined #ocaml
arquebus has quit [Quit: Textual IRC Client: www.textualapp.com]
larhat has quit [Quit: Leaving.]
zpe has quit [Remote host closed the connection]
napping has quit [Ping timeout: 255 seconds]
<orbifx> Is there a way to tell oasis of make targets to "inject" in the make file it generates?
fre has quit [Quit: WeeChat 1.4]
agarwal1975 has quit [Ping timeout: 255 seconds]
Simn has quit [Quit: Leaving]
<Drup> orbifx: just add your targets at the end/beginning of the makefile, out of the "OASIS" section
<orbifx> ow ok. So it will update the makefile section in oasis and leave mine untouched?
<Algebr> yes
xorpse has joined #ocaml
<orbifx> Cool :)
<orbifx> Also, how to I tell oasis that I want EUPL as my licence?
<orbifx> ow url
smondet has quit [Ping timeout: 255 seconds]
bacam has quit [Quit: reboot]
bacam has joined #ocaml
handlex has joined #ocaml
orbifx has quit [Ping timeout: 240 seconds]
jao has quit [Remote host closed the connection]
Algebr` has joined #ocaml
jao has joined #ocaml
Algebr has quit [Ping timeout: 255 seconds]
yomimono has joined #ocaml
yomimono_ has joined #ocaml
yomimono_ has quit [Client Quit]
Algebr` has quit [Ping timeout: 255 seconds]
yomimono has quit [Ping timeout: 256 seconds]
ryanartecona has quit [Quit: ryanartecona]