amiloradovsky has quit [Ping timeout: 260 seconds]
cantstanya has quit [Ping timeout: 240 seconds]
smazga has quit [Ping timeout: 256 seconds]
cantstanya has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mxns has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
smazga has joined #ocaml
<d_bot>
<rgrinberg> > hmm. i've seen mentioned in a few places that cohttp is slow, but. what makes it slower? i'm suddenly self-conscious of this because i have a web service written in cohttp and wonder if i could be saving tens of cpu credits a day
<d_bot>
<rgrinberg> @mbacarella cohttp naively assumes syscalls have no cost, and doesn't reuse any io buffers. That is its main issue
<d_bot>
<rgrinberg> @tmattio does spin have a template for ctypes projects?
<d_bot>
<mbacarella> ah, interesting
smazga has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 272 seconds]
<d_bot>
<gar> I have a Bazel build command using `ocamlfind ocamlopt` that works on MacOS but fails on Linux with `stderr exceeds maximum size of 1048576 bytes;` Unfortunately I don't know if the message is coming from Bazel or from ocamlfind. Anybody ever encounter this with ocamlfind?
<companion_cube>
most people here will be using dune, I'm afraid
<companion_cube>
never seen ocamlfind produce that much output though
<d_bot>
<gar> yeah, nothing even close to that on MacOS, I don't see how ocamlfind could be responsible, but maybe there's something in the Linux environment that affects the process. I've asked on the bazel discuss list too.
nullcone has quit [Quit: Connection closed for inactivity]
nullcone has joined #ocaml
smazga has joined #ocaml
<d_bot>
<gar> looks like its a message from bazel, still not clear how its related to ocamlfind...
<d_bot>
<gar> fyi it turned out to be unrelated to ocamlfind. the command was lacking `-cclib -lstdc++`, which generated gobs of error msgs.
mxns has quit [Ping timeout: 260 seconds]
mbuf has joined #ocaml
smazga has joined #ocaml
<d_bot>
<rgrinberg> Eventually we'd like to generate bazel files in dune. In the meanwhile, we apologize you must go through this 🙂
aaaaaa has quit [Quit: leaving]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
<d_bot>
<gar> No need to apologize! It's been loads of fun (for a geek), and what better way to learn the ins and outs of the OCaml ecosystem than to write Bazel rules for it? I've learned tons of stuff from Dune, and I've got a tool that does a pretty good job of converting dune files to BUILD.bazel files, at least the limited set I'm working with. Doesn't handle `rule` or C/C++ interop stuff, but does ok with plain old libraries, executables,
smazga has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
<d_bot>
<rgrinberg> 80% of the complexity in dune is in build rules for OCaml 🙂
<d_bot>
<rgrinberg> We think of a way to reuse this core.
mxns has quit [Ping timeout: 246 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
reynir has quit [Ping timeout: 264 seconds]
narimiran has joined #ocaml
reynir has joined #ocaml
smazga has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
smazga has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
<vsiles>
theblatte: you look into _build/default or _build/.dune/default ?
<vsiles>
hmm no, there was some trick
<vsiles>
like running the ppx by hand
Serpent7776 has joined #ocaml
reynir has quit [Quit: WeeChat 2.3]
reynir has joined #ocaml
<d_bot>
<ostera> @gar are you collecting the .ml files and calling ocamlopt once?
reynir has quit [Client Quit]
reynir has joined #ocaml
EduardoRFS has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 258 seconds]
smazga has joined #ocaml
webshinra has quit [Remote host closed the connection]
nullcone has joined #ocaml
<d_bot>
<tmattio> > @tmattio does spin have a template for ctypes projects?
<d_bot>
<tmattio> @rgrinberg not yet, but definitely something I'd like to have as an official template.
mxns has joined #ocaml
smazga has quit [Ping timeout: 258 seconds]
mxns has quit [Ping timeout: 246 seconds]
yomimono has quit [Ping timeout: 256 seconds]
smazga has joined #ocaml
EduardoRFS has quit [Ping timeout: 272 seconds]
smazga has quit [Ping timeout: 258 seconds]
foocraft has joined #ocaml
ewanas has quit [Ping timeout: 258 seconds]
<d_bot>
<beheddard> I actually ran in to the lstdc++ thing tonight but fortunately I came across an c++ issue that mentioned it pretty quickly when I started googling what the compiler told me I was missing
<d_bot>
<beheddard> Now the ctubs compile and link 🙂
<d_bot>
<beheddard> Feels good to be over the first hump
amiloradovsky has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 258 seconds]
tmhoang has quit [Quit: Ping timeout (120 seconds)]
tmhoang has joined #ocaml
orbifx has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 265 seconds]
malc_ has joined #ocaml
olle has joined #ocaml
mbuf has quit [Ping timeout: 272 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
smazga has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
aecepoglu[m] has quit [Quit: Idle for 30+ days]
nullcone has quit [Quit: Connection closed for inactivity]
<d_bot>
<gar> @ostera One `ocaml_module` per .ml, one `ocaml_interface` per .mli.
<d_bot>
<gar> I tried implementing a batch UI when I first started, allowing multiple .ml files per build target, but dependency management (ordering) quickly became a problem so I dropped that, it's something that can be added later.
malc_ has quit [Remote host closed the connection]
<d_bot>
<gar> Thanks! I believe you mentioned this not too long ago, I completely forgot about it (I'm just now getting ready to tackle the Javascript part of OCaml support). I'll definitely look closely at it, maybe we can collaborate in some way - I'd love to avoid having to write rules for reason/rescript from scratch. Regarding deps: I do use ocamldep, but only for discovering dependencies on "peer" modules, those defined in the same directo
smazga has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
aaaaaa has joined #ocaml
rpcope has quit [Ping timeout: 256 seconds]
rpcope has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 265 seconds]
smazga has joined #ocaml
cantstanya has joined #ocaml
andreas303 has joined #ocaml
smazga has quit [Ping timeout: 265 seconds]
raver has quit [Read error: Connection reset by peer]
dhil has quit [Ping timeout: 260 seconds]
nicoo has joined #ocaml
decentpenguin has quit [Quit: ZNC crashed or something]