adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
zolk3ri has joined #ocaml
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<rgrinberg> companion_cube: have you checked out csexp?
<companion_cube> not really, but it's not human writable, is it?
<rgrinberg> Yes it’s not meant for that. It reminds of our work on bencode however
olle has quit [Ping timeout: 246 seconds]
olle has joined #ocaml
oriba has joined #ocaml
<companion_cube> yes indeed!
<companion_cube> these days I like resp3 for some things
<companion_cube> or msgpack if it's binary
vicfred has quit [Quit: Leaving]
<rgrinberg> one nice thing about csexp is the simplicity. it's a single module you can drop in anywhere
<companion_cube> grrrrrrr, ocaml-protoc doesn't like `required`?
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
Hrundi_V_Bakshi has quit [Ping timeout: 265 seconds]
mfp has quit [Ping timeout: 265 seconds]
Haudegen has quit [Ping timeout: 246 seconds]
HyperTables has joined #ocaml
vicfred has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
mbuf has joined #ocaml
_whitelogger has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
raver has quit [Remote host closed the connection]
dborisog has joined #ocaml
<Leonidas> companion_cube: ocaml-protoc had so many issues we wrote *two* replacements
tinga has quit [Remote host closed the connection]
bartholin has quit [Quit: Leaving]
bartholin has joined #ocaml
raver has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
jnavila has joined #ocaml
mfp has joined #ocaml
Haudegen has joined #ocaml
malc_ has joined #ocaml
inkbottle has joined #ocaml
zebrag has quit [Ping timeout: 256 seconds]
<flux1> I haven't used ocamlc-protoc, but it has probably the same problem as other protobuf-converters: it uses protobuf
<flux1> is it a feature of Sedlex that the syntax `match%sedlex` seems to work only in the top-level of functions?
<flux1> actually the rule seems to be "inside a let"
<flux1> or at least "not inside a pattern matching without being inside a let" :)
webshinra has quit [Remote host closed the connection]
webshinra has joined #ocaml
<theblatte> in a dune file for a sub-library of my project, I would like to add a (preprocessor_deps (file ../foo)) but dune cannot find "foo" even though it's the correct path from the project root
<theblatte> if I put foo in the same directory as my library then dune is happy but I'm not
<theblatte> I'm guessing I need to give up and maybe use (copy_files ) so dune can pretend files are where it wants it but is there another way?
<theblatte> oh, it's my fault: I didn't add the directory where "foo" is to the (dirs ) stanza at the root of my project
t0b0 is now known as tobiasBora2
FreeBirdLjj has joined #ocaml
tane has joined #ocaml
raver has quit [Read error: Connection reset by peer]
vicfred has quit [Quit: Leaving]
match_it has joined #ocaml
raver has joined #ocaml
<match_it> hi all. I'm beginner with ocam. I receive an error compiling a package. The error concerns GCC and I would switch to G++. Where can I set default system compiler?
<match_it> thanks
<malc_> match_it: ocamlc -help | grep -- -cc | head -1
<malc_> -cc <command> Use <command> as the C compiler and linker
<match_it> malc_, thanks, let's see
narimiran has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Remote host closed the connection]
Anarchos has joined #ocaml
cross_ has quit [Remote host closed the connection]
vicfred has joined #ocaml
vicfred has quit [Max SendQ exceeded]
vicfred has joined #ocaml
vicfred has quit [Max SendQ exceeded]
vicfred has joined #ocaml
Guest32377 is now known as mrd
mrd has quit [Changing host]
mrd has joined #ocaml
peterbb has joined #ocaml
waleee-cl has joined #ocaml
match_it has quit [Quit: Leaving]
Anarchos has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Remote host closed the connection]
dborisog has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
<companion_cube> Leonidas: which replacements?!
<companion_cube> (I see no other program that takes a .proto and generates code from it, at least)
FreeBirdLjj has quit [Ping timeout: 246 seconds]
narimiran has quit [Quit: leaving]
asoni has joined #ocaml
<asoni> companion_cube: I think it is https://github.com/issuu/ocaml-protoc-plugin
FreeBirdLjj has joined #ocaml
<companion_cube> ah but this uses the official protoc, right?
FreeBirdLjj has quit [Ping timeout: 272 seconds]
asoni has quit [Quit: asoni]
Hrundi_V_Bakshi has joined #ocaml
<flux1> for some reason `Lwt_main.run` + `Cohttp_lwt_unix.Client.post` spins my CPU at 100% while an `Lwt.pick` + `Lwt_unix.timeout` -mechanism cannot stop it from running. any ideas?
mbuf has quit [Quit: Leaving]
<flux1> hmm, OUnit2 has support/perhaps uses lwt internally, so perhaps that's they key?
<flux1> ..but the funny thing is that I saw it working a few times
oriba has joined #ocaml
<flux1> using the lwt_wrapper from ounit2-lwt seems to have resolved it
<flux1> quite a stupid error mode though :/
jnavila has quit [Quit: Konversation terminated!]
peterbb has quit [Quit: peterbb]
peterbb has joined #ocaml
rgrinberg has quit [Ping timeout: 272 seconds]
<higherorder> Hello! I am new to Ocaml and I have a basic question on modules. Is it common to have one module per type? For example if I am modelling an AST, would it make sense to have one module for each type of node in the AST, with an abstract type for the node and a function to construct a node of that type?
rgrinberg has joined #ocaml
<def> no
<def> mutually recursive types are almost always defined in the same module.
vicfred has quit [Quit: Leaving]
<higherorder> def: ok; thanks!
HyperTables has quit [Ping timeout: 245 seconds]
nicoo has quit [Ping timeout: 240 seconds]
nicoo has joined #ocaml
FreeBirdLjj has joined #ocaml
<Leonidas> companion_cube: yes, this uses the official protoc which has the advantage of actually implementing the parser correctly.
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 256 seconds]
<companion_cube> what are the issues with ocaml-protoc?
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
Hrundi_V_Bakshi has quit [Ping timeout: 246 seconds]
raver has quit [Remote host closed the connection]
pierpa has joined #ocaml
tane has quit [Quit: Leaving]
malc_ has quit [Ping timeout: 260 seconds]
Haudegen has quit [Ping timeout: 260 seconds]
raver has joined #ocaml