adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
dh_work has left #ocaml [#ocaml]
malina has quit [Ping timeout: 265 seconds]
ryyppy has joined #ocaml
ryyppy has quit [Ping timeout: 268 seconds]
hdon has quit [Changing host]
hdon has joined #ocaml
kleimkuhler has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryyppy has joined #ocaml
ryyppy has quit [Ping timeout: 260 seconds]
kleimkuhler has quit [Quit: kleimkuhler]
kleimkuhler has joined #ocaml
isd has joined #ocaml
kvda has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
kleimkuhler has quit [Quit: kleimkuhler]
JimmyRcom has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 264 seconds]
kleimkuhler has joined #ocaml
loli has quit [Ping timeout: 268 seconds]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 240 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimmyrcom_ has quit [Ping timeout: 260 seconds]
pierpa has quit [Quit: Page closed]
hdon has quit [Ping timeout: 264 seconds]
JimmyRcom has quit [Ping timeout: 264 seconds]
JimmyRcom has joined #ocaml
al-damiri has joined #ocaml
JimmyRcom has quit [Ping timeout: 264 seconds]
loli has joined #ocaml
kvda has joined #ocaml
hdon has joined #ocaml
hdon has quit [Ping timeout: 260 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
kleimkuhler has joined #ocaml
JimmyRcom has joined #ocaml
shinnya has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kleimkuhler has quit [Quit: kleimkuhler]
keep_learning has joined #ocaml
keep_learning has quit [Client Quit]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
kvda has joined #ocaml
sagotch has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
ryyppy has joined #ocaml
ryyppy has quit [Ping timeout: 240 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
mbuf has joined #ocaml
MercurialAlchemi has joined #ocaml
jbrown has quit [Ping timeout: 276 seconds]
cbot has quit [Quit: Leaving]
steenuil has quit [Read error: Connection reset by peer]
ryyppy has joined #ocaml
hdon has joined #ocaml
ryyppy has quit [Ping timeout: 260 seconds]
isd has quit [Quit: Leaving.]
sagotch_ has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagotch has quit [Ping timeout: 264 seconds]
jack5638 has quit [Ping timeout: 240 seconds]
sagotch_ has quit [Ping timeout: 260 seconds]
jack5638 has joined #ocaml
TarVanimelde has joined #ocaml
steenuil has joined #ocaml
ryyppy has joined #ocaml
muratiku has joined #ocaml
ryyppy has quit [Ping timeout: 244 seconds]
sagotch_ has joined #ocaml
Haudegen has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
shinnya has quit [Ping timeout: 244 seconds]
ozzymcduff has joined #ocaml
ozzymcduff has quit [Client Quit]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
jaar has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
ozzymcduff has joined #ocaml
hdon has quit [Ping timeout: 244 seconds]
freyr69 has joined #ocaml
pierpal has joined #ocaml
ryyppy has joined #ocaml
ozzymcduff has quit [Ping timeout: 264 seconds]
ryyppy has quit [Ping timeout: 248 seconds]
argent_smith has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
muratiku has quit [Remote host closed the connection]
muratiku has joined #ocaml
kvda has joined #ocaml
halogenandtoast has quit [Read error: Connection reset by peer]
zolk3ri has joined #ocaml
fried_camel has joined #ocaml
fried_camel has quit [Client Quit]
TheLemonMan has joined #ocaml
mfp has joined #ocaml
jaar has quit [Remote host closed the connection]
jaar has joined #ocaml
ziyourenxiang has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hdon has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
sagotch_ has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
kakadu has joined #ocaml
sagotch_ has joined #ocaml
mk9 has joined #ocaml
Haudegen has quit [Remote host closed the connection]
mk9 has quit [Client Quit]
sagotch_ has quit [Ping timeout: 240 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
ryyppy has joined #ocaml
malina has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
noitakomentaja has quit [Remote host closed the connection]
muratiku has quit [Read error: Connection reset by peer]
muratiku has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Ping timeout: 248 seconds]
shinnya has joined #ocaml
BitPuffin has joined #ocaml
steenuil has quit [Ping timeout: 268 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
malina has quit [Ping timeout: 244 seconds]
JimmyRcom has quit [Ping timeout: 240 seconds]
sagotch_ has joined #ocaml
jaar has quit [Remote host closed the connection]
al-damiri has quit [Quit: Connection closed for inactivity]
_andre has joined #ocaml
dhil has quit [Ping timeout: 248 seconds]
spew has joined #ocaml
malina has joined #ocaml
jaar has joined #ocaml
jbrown has joined #ocaml
hdon has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
hdon has quit [Ping timeout: 260 seconds]
dhil has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
MercurialAlchemi has quit [Ping timeout: 265 seconds]
muratiku_ has joined #ocaml
muratiku has quit [Ping timeout: 240 seconds]
warriors has joined #ocaml
letoh has quit [Read error: Connection reset by peer]
letoh has joined #ocaml
kleimkuhler has joined #ocaml
kvda has joined #ocaml
al-damiri has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
kvda has quit [Ping timeout: 260 seconds]
ryyppy has quit [Ping timeout: 260 seconds]
malina has joined #ocaml
JimmyRcom has joined #ocaml
roygbiv has joined #ocaml
FreeBirdLjj has joined #ocaml
kleimkuhler has joined #ocaml
kleimkuhler has quit [Client Quit]
hdon has joined #ocaml
ryyppy has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
kleimkuhler has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
letoh_ has joined #ocaml
letoh has quit [Ping timeout: 264 seconds]
letoh_ is now known as letoh
glass is now known as theglass
theglass has quit [Changing host]
theglass has joined #ocaml
<discord> <Bluddy> companion_cube: of_seq and to_seq functions will need fixing in Containers, right?
mk9 has quit [Client Quit]
<rwmjones> really, we needed to rename jbuilder?
<Armael> I think the name is trademarked or something similar
<kakadu> rwmjones: Do you remember Borland J Builder?
mbuf has quit [Quit: Leaving]
* kakadu installed it once when was at school
<Patch> Currently having an issue with jbuilder for google-drive-ocamlfuse. Haven't had time to mess with it yet. Plus I don't know ocaml.
freyr69 has quit [Remote host closed the connection]
<rwmjones> no
sagotch_ has quit [Ping timeout: 240 seconds]
malina has quit [Ping timeout: 260 seconds]
jao has joined #ocaml
aoijweg has joined #ocaml
roygbiv has quit [Quit: ™]
<aoijweg> I'm trying to get started with jbuilder (which in the documentation is called Dune, but in OPAM is called jbuilder if I've understood this right). In the dune docs (https://jbuilder.readthedocs.io/en/latest/quick-start.html), building is `$dune build myfile.exe`. I guess it's written for Windows user - I run macos i.e. BSD unix. Trying `$jbuilder build main.o` or just `$jbuilder build` gives "Don't know how to build main.o
<aoijweg> you mean main.ml?". How can you use Dune/Jbuilder on macos?
<yomimono> aoijweg: even for non-windows it's main.exe
<discord> <rgrinberg> How did you find the link to the jbuilder docs btw? You should be reading the docs here http://dune.readthedocs.io/
<Armael> @rgrinberg could you setup a redirection?
<aoijweg> yomimono: thanks for replying. Doing that gives `Don't know how to build main.exe`. Using `ocamlbuild` works, but it does not help Tuareg mode understand the different modules (which is why I'm trying Dune/Jbuilder out). I've tried adding `-v` flags and googling but am failing to solve it.
dhil has quit [Ping timeout: 256 seconds]
<aoijweg> discord: searched the web. The domain says `jbuilder.readthedocs.io` but the HTML says "Dune"
<discord> <rgrinberg> Could you paste the contents of your dune file (or jbuild file) and the output of $ ls
jaar has quit [Ping timeout: 260 seconds]
<discord> <rgrinberg> Armael: Let me try. I'm not entirely sure because those are hosted. We could just delete that page btw
<aoijweg> discord: http://ix.io/1gRi thank you for helping me troubleshoot
<discord> <rgrinberg> Armael: actually, the jbuilder.readthedocs.io is entirely up to date and identical to dune.readthedocs.io
<Armael> ah :D
<discord> <rgrinberg> so I'm not sure how much harm it's causing
<Armael> probably not very much
<discord> <rgrinberg> It's jbuild not jbuilder for the filename
<Armael> I guess morally it would be nice to tell google that the older one shouldn't be used anymore
<discord> <rgrinberg> Also, you should really be using dune as the filename and $ dune as the binary
FreeBirdLjj has quit [Remote host closed the connection]
<aoijweg> discord: oh lord... thank you! Yeah, I'd like to use dune instead (I understand it's the latest version of the same program). But it appears not to be in OPAM. `$cd ~;opam install dune \n [ERROR] No package named dune found.`
<discord> <rgrinberg> $ opam update should solve that problem
yomimono has quit [Ping timeout: 244 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
<aoijweg> Ah! Thank you all for helping this newbie out. Whoever is running the Dune projects documentation, I'd suggest adding installation instructions to the README and Quickstart page - so you won't have to be annoyed by noobs like myself asking simple questions here... Again many thanks to you all
<discord> <rgrinberg> Sure, should be easy
JimmyRcom has quit [Ping timeout: 240 seconds]
<kakadu> I'm trying to compile demo https://github.com/ocaml/dune/blob/master/doc/quick-start.rst#defining-a-library-with-c-stubs but dune doesn't bother to compile .c files. What is expected compilation command? dune build mylib.cmxa?
<discord> <rgrinberg> There's no expected command but you must let dune know of the existence of this C stub
<discord> <rgrinberg> Check out the c_names field.
<discord> <rgrinberg> Oh, that page already has that
<kakadu> Yes, and file exists
<discord> <rgrinberg> How do you diagnose that dune isn't compiling the C file? The feature certainly works for me
tane has joined #ocaml
<kakadu> I look at the verbose aoutput: https://paste.in.ua/3456/#105
<kakadu> I also changed jbuild file because of complaints about syntax. rgrinberg^^
yomimono has joined #ocaml
<discord> <rgrinberg> Hmm, so the cmxa is built. I thought you said it wasn't
<kakadu> rgrinberg: so, what is full compilation command?
aoijweg has quit [Ping timeout: 265 seconds]
<kakadu> It will be grat to add it to wiki-like link above
<kakadu> great*
<discord> <rgrinberg> Try writing an executable that is dependant on this library and then building the executable
<discord> <rgrinberg> Also, do $ dune rules -m -r and see where mystubs.c is being used
<kakadu> It seems that `dune build libmylib_stubs.a mylib.cmxa` is right command
<discord> <rgrinberg> more like, why doesn't the @install alias not include the .a file
<discord> <rgrinberg> can you paste the .install file btw
<kakadu> There is no one. I literally test the helloworld from wiki
aoijweg has joined #ocaml
aoijweg has left #ocaml [#ocaml]
<discord> <rgrinberg> Actually, I tried the example and I can't reproduce
<discord> <rgrinberg> $ dune build builds everything for me
<discord> <rgrinberg> META.mylib dllmylib_stubs.so libmylib_stubs.a mylib.a mylib.cma mylib.cmxa mylib.cmxs mylib.dune mylib.install mylib.ml mylib.version.sexp mystubs.c mystubs.o
ziyourenxiang has quit [Ping timeout: 268 seconds]
coventry has joined #ocaml
<kakadu> It's my mistake. I have a big project where dune doesn't compile by default anything. So I manually specified cma and it started to compile .cma without C files, then I created helloworld and still passing .cma explicitly as a target
<discord> <rgrinberg> I see.
<kakadu> btw, do we have (cxx_names ... ) or something for C++?
<discord> <rgrinberg> if you have a library that is contained in a dir
<discord> <rgrinberg> we have exactly that field 😃
<coventry> How can I determine the version of ppx_deriving_yojson eliom is using? I seem to be getting a version which does not provide the `_of_yjson_exn` functions.
<discord> <rgrinberg> if you have your library in that field, you can just build it with $ dune build @dir/install
<discord> <rgrinberg> or just $ dune build lib.install
dhil has joined #ocaml
<discord> <rgrinberg> this will build a few extra things like META files and other artifacts. But those are quite fast to build anyway
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
ryyppy has quit [Ping timeout: 240 seconds]
<dhil> After migrating from jbuilder to dune I get build errors that are seemingly related to ppx, e.g. "Error: No ppx driver were found." I am using ppx_deriving.std and ppx_deriving_yojson, does anybody know whether these are incompatible with dune, or what cause of action I must take to use them with dune?
hdon has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
kleimkuhler has quit [Quit: kleimkuhler]
JimmyRcom has joined #ocaml
<ZirconiumX> dhil: I think it needs a `pps` section
<dhil> ZirconiumX, yes, I currently have (preprocess (pps ppx_deriving.std ppx_deriving_yojson)). Beforehand I had an additional pair of parentheses enclosing the arguments to pps.
kleimkuhler has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
<dhil> just to clear it worked with the latest version of jbuilder. I noticed that the syntax of configuration files changed slightly between jbuilder and dune, thus I suspected the preprocess system might have changed too. I have been unable to confirm/refute this suspicion (checking both the documentation and changelog).
<companion_cube> Bluddy: yes, i have to update containers for retrocompat (it will be ugly tho)
lostman has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
muratiku_ has quit [Remote host closed the connection]
<discord> <Bluddy> yeah for sure.
jao has quit [Ping timeout: 256 seconds]
jbrown has quit [Ping timeout: 264 seconds]
hdon has joined #ocaml
<discord> <rgrinberg> dhil: try reinstalling omp and ppxlib
<discord> <rgrinberg> Or upgrading - if they aren't the latest version
hdon has quit [Changing host]
hdon has joined #ocaml
groovy2shoes has quit [Quit: moritura te salutat]
kakadu has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
dhil has quit [Ping timeout: 244 seconds]
kleimkuhler has joined #ocaml
ryyppy has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
kleimkuhler has joined #ocaml
groovy2shoes has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
jbrown has joined #ocaml
yomimono has quit [Ping timeout: 268 seconds]
yomimono has joined #ocaml
octarin has joined #ocaml
mk9 has quit [Quit: mk9]
kleimkuhler has quit [Ping timeout: 265 seconds]
kleimkuhler has joined #ocaml
kakadu has quit [Remote host closed the connection]
asdf123 has quit [Remote host closed the connection]
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
ygrek has joined #ocaml
asdf123 has joined #ocaml
kakadu has quit [Remote host closed the connection]
mk9 has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
kleimkuhler has joined #ocaml
ryyppy has quit [Ping timeout: 244 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
_whitelogger has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
unyu has joined #ocaml
<coventry> In js_of_ocaml, what might be the best way to convert a javascript object to an ocaml yojson object?
<coventry> I can stringify it and parse it with yojson, but that seems inefficient.
jbrown has quit [Ping timeout: 260 seconds]
warriors has quit [Ping timeout: 252 seconds]
pierpal has quit [Remote host closed the connection]
letoh has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
mk9 has quit [Quit: mk9]
Haudegen has quit [Ping timeout: 244 seconds]
Haudegen has joined #ocaml
pierpa has joined #ocaml
_andre has quit [Quit: leaving]
muratiku has joined #ocaml
neatonk has quit [Remote host closed the connection]
neatonk has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
malina has joined #ocaml
jbrown has joined #ocaml
kleimkuhler has joined #ocaml
argent_smith has quit [Quit: Leaving.]
malina has quit [Ping timeout: 256 seconds]
tane has quit [Quit: Leaving]
unyu has quit [Quit: Reboot.]
muratiku has quit [Remote host closed the connection]
Jesin has joined #ocaml
shinnya has joined #ocaml
unyu has joined #ocaml
octarin has quit [Quit: leaving]
orbifx has joined #ocaml
jao has joined #ocaml
malina has joined #ocaml
kleimkuhler has quit [Ping timeout: 240 seconds]
kleimkuhler has joined #ocaml
coventry has quit [Ping timeout: 240 seconds]
kleimkuhler has quit [Read error: Connection reset by peer]
kleimkuhler_ has joined #ocaml
Jesin has quit [Quit: Leaving]
kleimkuhler_ has quit [Ping timeout: 240 seconds]
Haudegen has quit [Remote host closed the connection]
tokomak has joined #ocaml
kleimkuhler has joined #ocaml
kleimkuhler has quit [Client Quit]
ygrek has quit [Ping timeout: 264 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
zolk3ri has quit [Remote host closed the connection]
JimmyRcom_ has joined #ocaml
JimmyRcom_ has quit [Ping timeout: 244 seconds]
BitPuffin has quit [Remote host closed the connection]
ygrek has joined #ocaml