adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
Fare has joined #ocaml
ziyourenxiang has quit [Ping timeout: 252 seconds]
jbrown has quit [Ping timeout: 246 seconds]
Haudegen has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 252 seconds]
caltelt_ has quit [Ping timeout: 252 seconds]
Fare has joined #ocaml
jao has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 245 seconds]
caltelt_ has joined #ocaml
jbrown has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
dinosaure has quit [Ping timeout: 252 seconds]
unyu has quit [Quit: The end of the world is nigh. Bring as much popcorn as you can!]
gtrak has quit [Ping timeout: 252 seconds]
gtrak has joined #ocaml
dinosaure has joined #ocaml
silver_ has quit [Read error: Connection reset by peer]
bramford has joined #ocaml
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 252 seconds]
clownpri1 has quit [Ping timeout: 252 seconds]
zozozo has quit [Ping timeout: 252 seconds]
richi235 has quit [Ping timeout: 252 seconds]
richi235 has joined #ocaml
zozozo has joined #ocaml
manas has joined #ocaml
manas has left #ocaml [#ocaml]
manas has joined #ocaml
clownpri1 has joined #ocaml
clownpri1 has quit [Ping timeout: 240 seconds]
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 272 seconds]
dmiles has quit [Read error: Connection reset by peer]
erkin has joined #ocaml
demonimin has quit [Ping timeout: 272 seconds]
demonimin has joined #ocaml
demonimin has joined #ocaml
dmiles has joined #ocaml
caltelt_ has quit [Ping timeout: 244 seconds]
martinium has joined #ocaml
jbrown has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 252 seconds]
erkin has quit [Remote host closed the connection]
erkin has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manas has quit [Remote host closed the connection]
glass has left #ocaml [#ocaml]
theglass has joined #ocaml
martinium has left #ocaml ["Leaving"]
clownpri1 has joined #ocaml
manas has joined #ocaml
clownpri1 has quit [Ping timeout: 252 seconds]
manas has quit [Remote host closed the connection]
manas has joined #ocaml
sagotch has joined #ocaml
orbifx has joined #ocaml
TheLemonMan has joined #ocaml
orbifx has quit [Ping timeout: 252 seconds]
manas has quit [Remote host closed the connection]
rwmjones|afk is now known as rwmjones
ollehar has joined #ocaml
dinosaure has quit [Ping timeout: 252 seconds]
manas has joined #ocaml
manas has quit [Ping timeout: 240 seconds]
dinosaure has joined #ocaml
AltGr has joined #ocaml
manas has joined #ocaml
manas has quit [Ping timeout: 252 seconds]
mfp has joined #ocaml
manas has joined #ocaml
pierpal has joined #ocaml
clownpri1 has joined #ocaml
manas has quit [Remote host closed the connection]
clownpri1 has quit [Ping timeout: 252 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
manas has joined #ocaml
manas has quit [Ping timeout: 250 seconds]
Haudegen has joined #ocaml
Haudegen has quit [Remote host closed the connection]
manas has joined #ocaml
<Ulrar> So, trying to figure out how dune works. I have all my files in the same directory, which works fine, but now I'd like to organize that in a few different subdirectories, which looks impossible ?
kvda has joined #ocaml
troydm has quit [Ping timeout: 252 seconds]
<theblatte> Ulrar: there's a copy_files# stanza you can use, although maybe there's something better now
<Ulrar> I've seen that mention, but I don't understand how that's supposed to be used
<Ulrar> I also see people saying you have to use library, which again would be fine if I understood how
<Ulrar> Seems like there's very little examples outside of the documentation, which is a bit hairy
<theblatte> dune's preferred organisation of files is when one directory contains one library, which will have its own dune file
<theblatte> Ulrar: you can take a look at how we use copy_files in infer: https://github.com/facebook/infer/blob/22157739b805629bd2d736dbb920cb47f92c8fd2/infer/src/dune.in#L100
<Ulrar> Allright, then how do you refer to that library from the top level dune file ?
<theblatte> it's basically just a matter of (copy_files# some_directory/*.ml{,i,l})
<Ulrar> And it'll be exposed as what, just the name of the ml or Directory.Ml ?
<theblatte> you add it to you executable or library dependency: (libraries MyLib)
Adr1 has joined #ocaml
<Ulrar> yeah but if I do that how does it know where MyLib is ?
<theblatte> and in your library's dune file you'll have (public_name MyLib)
<theblatte> dune will look into the whole file hierarchy starting at the project root
<Ulrar> Ah !
<Ulrar> That's the part I was missing
<Ulrar> Thanks, I'll try that then
<theblatte> cool
<Ulrar> Mh now it's complaining about missing .opam files for installation
<Ulrar> Can't I tell it not to install the lib, just compile it for the project ?
lostman has joined #ocaml
<theblatte> that I haven't figured out... touch MyLib.opam worked for me
<Armael> if you do not provide a public_name for the lib, I think it is not installed
<Armael> and you do not need a .opam
<Ulrar> Yeah, but if I do that I can't figure out how to use it from the top, it says it can't find the lib
<Ulrar> I must be missing something
<Ulrar> include_subdirs unqualified seems interested. qualified would be better, but apparently that's planned
<Ulrar> interesting*
<Armael> umm typically if I have project/lib and project/src, and project/lib/dune defines a library, I'm able to use that library in project/src/dune
<Armael> without making it public
<Ulrar> Maybe I have the syntax wrong, let me try again
<Armael> (and I build everything from directory project/ by doing dune build src/myprogram.exe)
<Armael> (for example)
<Ulrar> How do you use the library after that ? Seems to compile fine, but the module I have in there can't be opened
<Ulrar> Library.Module ?
<Armael> yeah
<Ulrar> Mh
<Ulrar> Okay, got it, it's because I have a _ in the name (to replace the . since I have sub-sub directories)
<Ulrar> it capitalizes the first letter, not the one after the _
<Ulrar> that's what I had wrong
<Armael> ah, yes
<Ulrar> Seems to be working now, not very pretty but it'll do while we wait for include_subdirs qualified I guess
<Ulrar> thanks !
<theblatte> cool, I should update infer to be less clowny with its sublibraries ^^
troydm has joined #ocaml
troydm has quit [Ping timeout: 240 seconds]
manas has quit [Remote host closed the connection]
ziyourenxiang has joined #ocaml
clownpri1 has joined #ocaml
clownpri1 has quit [Ping timeout: 240 seconds]
Bronsa has quit [Remote host closed the connection]
silver has joined #ocaml
<Ulrar> So, is there a function that would look like 'a options list -> 'a list (would discard the None and keep only the Some) somewhere already ?
<Ulrar> I miss Hoogle :(
m_v_m has joined #ocaml
sagotch has quit [Quit: Leaving.]
sagotch has joined #ocaml
sagotch has quit [Client Quit]
<m_v_m> hi all. Is there any parallel lib for Ocaml (maintained and mature)? It would be cool if it would support actors. Any? :)
<Armael> Ulrar: not in the stdlib (use one of the stdlib extensions eg containers or base); it is usually called List.filter_map
<Armael> um well List.filter_map is ('a -> 'b option) -> 'a list -> 'b list
manas has joined #ocaml
jave has quit [Ping timeout: 245 seconds]
clownpri1 has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
clownpri1 has quit [Ping timeout: 252 seconds]
jave has joined #ocaml
jao has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
clownpri1 has joined #ocaml
neatonk has joined #ocaml
manas_ has joined #ocaml
manas has quit [Ping timeout: 244 seconds]
sagotch has joined #ocaml
clownpri1 has quit [Ping timeout: 252 seconds]
neatonk has quit [Ping timeout: 252 seconds]
<Ulrar> Armael: That works, thanks
gareppa has joined #ocaml
manas has joined #ocaml
manas_ has quit [Ping timeout: 252 seconds]
spew has joined #ocaml
manas_ has joined #ocaml
manas has quit [Read error: No route to host]
manas_ has quit [Read error: Connection reset by peer]
manas has joined #ocaml
averell has quit [Quit: .]
manas has quit [Ping timeout: 240 seconds]
manas has joined #ocaml
TheRuralJuror has joined #ocaml
gareppa has quit [Quit: Leaving]
FreeBirdLjj has joined #ocaml
TheRuralJuror has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 252 seconds]
clownpri1 has joined #ocaml
manas_ has joined #ocaml
manas has quit [Ping timeout: 245 seconds]
FreeBirdLjj has joined #ocaml
<Ulrar> By any chance, can someone spot the problem ? http://dpaste.com/3AV7F4A
<Ulrar> I can't figure out what it is, the type look compatible to me
clownpri1 has quit [Ping timeout: 250 seconds]
manas has joined #ocaml
<Ulrar> (I get that error when trying to use pretty_to_string on a `Assoc)
FreeBirdLjj has quit [Ping timeout: 240 seconds]
manas_ has quit [Ping timeout: 244 seconds]
jao has quit [Remote host closed the connection]
manas has quit [Ping timeout: 246 seconds]
lostman has quit [Quit: Connection closed for inactivity]
gtrak has quit [Ping timeout: 252 seconds]
<steenuil> Ulrar: you should always try to annotate your functions when you're working with polymorphic variants
<steenuil> otherwise you're gonna get confusing error messages like that
<octachron> Ulrar, you are probably missing a coercion from "Json.json -> ..." to "[>`Assoc ... ] -> ..."
jao has joined #ocaml
<Ulrar> Oh, okay
<Ulrar> just adding the type annotations fixes it
<Ulrar> Didn't realize that could happen, thanks
<steenuil> yeah, the type inference gets a bit wonky with polymorphic variants
<Ulrar> Well, at least my code was correct, that's something
averell has joined #ocaml
<ZirconiumX> Still, better to reject correct programs than accept incorrect programs
gtrak has joined #ocaml
manas has joined #ocaml
neatonk has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manas has quit []
Fare has joined #ocaml
TheLemonMan has quit [Ping timeout: 246 seconds]
jaar has joined #ocaml
Fare has quit [Ping timeout: 246 seconds]
TheLemonMan has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
bartholin has joined #ocaml
ollehar has quit [Ping timeout: 250 seconds]
pierpal has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
Fare has joined #ocaml
FreeBirdLjj has joined #ocaml
clownpri1 has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 244 seconds]
sagotch has quit [Quit: Leaving.]
clownpri1 has quit [Ping timeout: 240 seconds]
orbifx has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
clownpri1 has joined #ocaml
Fare has joined #ocaml
clownpri1 has quit [Ping timeout: 252 seconds]
clownpri1 has joined #ocaml
Fare has quit [Ping timeout: 272 seconds]
orbifx has quit [Read error: Connection reset by peer]
coventry has joined #ocaml
orbifx has joined #ocaml
orbifx has quit [Client Quit]
orbifx has joined #ocaml
Jesin has quit [Quit: Leaving]
Jessin has joined #ocaml
m_v_m has quit [Ping timeout: 272 seconds]
pierpal has joined #ocaml
jao has quit [Ping timeout: 252 seconds]
tane has joined #ocaml
roygbiv has joined #ocaml
ziyourenxiang has quit [Ping timeout: 252 seconds]
rwmjones is now known as rwmjones|hols
roygbiv has quit [Ping timeout: 252 seconds]
oschwald has joined #ocaml
banjiewen has left #ocaml [#ocaml]
banjiewen has joined #ocaml
jnavila has joined #ocaml
pierpal has quit [Quit: Poof]
kakadu has joined #ocaml
pierpal has joined #ocaml
Jessin is now known as Jesin
jao has joined #ocaml
Simn has joined #ocaml
clownpri1 has quit [Ping timeout: 250 seconds]
maarhart has joined #ocaml
maarhart has quit [Excess Flood]
maarhart has joined #ocaml
maarhart has quit [Excess Flood]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
clownpri1 has joined #ocaml
Haudegen has joined #ocaml
clownpri1 has quit [Ping timeout: 252 seconds]
jaar has quit [Quit: Leaving]
Haudegen has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
sagotch has joined #ocaml
sagotch has quit [Client Quit]
jnavila has quit [Ping timeout: 245 seconds]
clownpri1 has joined #ocaml
clownpri1 has quit [Ping timeout: 240 seconds]
clownpri1 has joined #ocaml
jbrown has joined #ocaml
AltGr has quit [Quit: Konversation terminated!]
clownpri1 has quit [Ping timeout: 252 seconds]
clownpri1 has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
jnavila has joined #ocaml
Fare has joined #ocaml
troydm has joined #ocaml
Adr1 has quit [Quit: WeeChat 2.2]
clownpri1 has quit [Ping timeout: 252 seconds]
<coventry> Is `(env (dev (flags (:standard -g))))` in my dune file all I ought to need to get `perf report` to report symbols from my source, rather than addresses? Calls to symbols in libraries I'm using are being reported in terms of their function names, but my own functions aren't
laurus has joined #ocaml
laurus has left #ocaml ["Part"]
<coventry> Oh, I actually do need -p (I'd heard otherwise.)
clownpri1 has joined #ocaml
Simn has quit [Quit: Leaving]
Denommus has joined #ocaml
coventry has quit [Remote host closed the connection]
tane has quit [Quit: Leaving]
Denommus has quit [Remote host closed the connection]
clownpriest has joined #ocaml
clownpri1 has quit [Ping timeout: 240 seconds]
steenuil has quit [Remote host closed the connection]
steenuil has joined #ocaml
<discord> <rgrinberg> Dune always passes -g to the compiler
<discord> <rgrinberg> Even in -p
gtrak has quit [Ping timeout: 245 seconds]
loli has quit [Quit: WeeChat 2.2]
erkin has quit [Ping timeout: 252 seconds]
erkin has joined #ocaml
clownpriest has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 246 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
bartholin has quit [Remote host closed the connection]
loli has joined #ocaml
kakadu has quit [Remote host closed the connection]
jnavila has quit [Quit: Konversation terminated!]
pierpa has joined #ocaml
oschwald has left #ocaml [#ocaml]
erkin has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 252 seconds]
orbifx has quit [Ping timeout: 252 seconds]
clownpriest has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
govg has joined #ocaml
Fare has joined #ocaml
caltelt has joined #ocaml