companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
Haudegen has quit [Ping timeout: 240 seconds]
Tuplanolla has quit [Quit: Leaving.]
sz0 has quit [Ping timeout: 272 seconds]
mgsk has quit [Read error: Connection reset by peer]
cemerick has quit [Ping timeout: 260 seconds]
Duns_Scrotus has quit [Ping timeout: 260 seconds]
nullcone has quit [Ping timeout: 264 seconds]
ec has quit [Read error: Connection reset by peer]
SrPx has quit [Ping timeout: 260 seconds]
mgsk has joined #ocaml
banjiewen_ has quit [Ping timeout: 272 seconds]
banjiewen__ has joined #ocaml
robmyers has quit [Ping timeout: 260 seconds]
ec has joined #ocaml
jmct has quit [Ping timeout: 264 seconds]
adrianbrink_ has joined #ocaml
adrianbrink has quit [Ping timeout: 272 seconds]
cemerick has joined #ocaml
adrianbrink_ is now known as adrianbrink
robmyers has joined #ocaml
hnOsmium0001 has quit [Ping timeout: 265 seconds]
sz0 has joined #ocaml
SrPx has joined #ocaml
Duns_Scrotus has joined #ocaml
nullcone has joined #ocaml
jmct has joined #ocaml
hnOsmium0001 has joined #ocaml
metreo has quit [Quit: metreo]
smazga has joined #ocaml
rock64 has quit [Ping timeout: 246 seconds]
rock64 has joined #ocaml
ygrek has quit [Remote host closed the connection]
ArthurStrong has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
vicfred has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
ygrek has joined #ocaml
rock64 has quit [Ping timeout: 264 seconds]
ygrek has quit [Remote host closed the connection]
rock64 has joined #ocaml
mbuf has joined #ocaml
smazga has joined #ocaml
decentpenguin has quit [Ping timeout: 256 seconds]
mbuf has quit [Ping timeout: 256 seconds]
decentpenguin has joined #ocaml
smazga has quit [Ping timeout: 246 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
decentpenguin has quit [Ping timeout: 260 seconds]
ygrek has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
ygrek has quit [Remote host closed the connection]
narimiran has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 246 seconds]
smazga has joined #ocaml
mphi has quit [Quit: mphi]
smazga has quit [Ping timeout: 264 seconds]
rdivyanshu has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
mfp has quit [Ping timeout: 256 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
decentpenguin has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 265 seconds]
mbuf has joined #ocaml
shawnw has quit [Ping timeout: 260 seconds]
catt has joined #ocaml
shawnw has joined #ocaml
Haudegen has joined #ocaml
mbuf has quit [Ping timeout: 246 seconds]
decentpenguin has quit [Ping timeout: 265 seconds]
borne has joined #ocaml
xenu has quit [Read error: Connection reset by peer]
smazga has joined #ocaml
xenu has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
bartholin has joined #ocaml
olle has joined #ocaml
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
dborisog has joined #ocaml
dborisog has quit [Remote host closed the connection]
olle has quit [Ping timeout: 256 seconds]
mbuf has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 272 seconds]
rdivyanshu has quit [Quit: Connection closed for inactivity]
sagax has quit [Quit: Konversation terminated!]
steenuil has joined #ocaml
tane has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
smazga has joined #ocaml
ArthurStrong has quit [Quit: leaving]
smazga has quit [Ping timeout: 256 seconds]
terrorjack1 has joined #ocaml
mbuf has quit [Ping timeout: 246 seconds]
cantstanya has quit [Ping timeout: 268 seconds]
terrorjack has quit [Ping timeout: 260 seconds]
Leonidas has quit [Ping timeout: 260 seconds]
terrorjack1 is now known as terrorjack
cantstanya has joined #ocaml
Leonidas has joined #ocaml
sagax has joined #ocaml
rdivyanshu has joined #ocaml
bikal has joined #ocaml
Haudegen has joined #ocaml
bikal has quit [Quit: Connection closed]
vicfred has quit [Quit: Leaving]
catt has quit [Ping timeout: 260 seconds]
olle has joined #ocaml
mfp has joined #ocaml
<d_bot> <gar> Bazel supports "persistent workers", which as I understand it means something like running a tool (compiler) as a kind of daemon that Bazel feeds with jobs, so startup time is reduced. Anything like this available for the ocaml compilers? (See https://docs.bazel.build/versions/master/creating-workers.html)
hosewiejacke has joined #ocaml
hosewiejacke has quit [Remote host closed the connection]
hosewiejacke has joined #ocaml
breitenj- has quit [Ping timeout: 260 seconds]
breitenj has joined #ocaml
<d_bot> <octachron> Not as far as I know. The compiler library would make it possible to write a compiler server (even if managing state is not that straigthforward) but the compiler itself expects to run only once.
<d_bot> <gar> Thanks. Writing a compiler server would be a good project to stress my nascent OCaml skills. I'll bet I could find some collaborators, seems like it would be generally useful.
webshinra_ has joined #ocaml
webshinra has quit [Remote host closed the connection]
<d_bot> <octachron> Note that it is quite possible that resetting some state is not possible right now, but that could be patched. Typically, 4.12.0 contains some patches from Merlin to make state management easier in the typechecker.
<dmbaturin> With dune, is it possible to move a lib to a sub-dir and make a binary in a dir level upper link against it?
<d_bot> <dj charlie> anyone know of a good strategy to encode a string that contains the magic header of an image in browser side js?
<d_bot> <dj charlie> can't believe i'm asking a q like this one
DanC has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
DanC has joined #ocaml
zebrag has joined #ocaml
<d_bot> <dj charlie> wound up making a canvas and pumping the uri i had into it
<d_bot> <dj charlie> Sad!
hosewiejacke has quit [Ping timeout: 264 seconds]
<d_bot> <dj charlie> but what about files that aren't presentable on a canvas?
<octachron> dmbaturin, yes: dune mostly doesn't care about subdirectories.
waleee-cl has joined #ocaml
shawnw has quit [Ping timeout: 256 seconds]
metreo has joined #ocaml
<dmbaturin> octachron: Is there an example of a package that does that?
<dmbaturin> What I _actually_ want to do: make a package that provides both a lib and an executable.
<dmbaturin> Thus I need to separate the lib and the executable part so that dune doesn't complain about the same modules being used by more than one target.
<octachron> That should work out of the box. You don't even need to separate the two, you can use the modules stanza to specify which modules belong to which components.
<dmbaturin> Hhm. Do you know an example of a package structured in a similar way? I failed to understand how it should be done, so I want something to cargo-cult. :)
<dmbaturin> dune itself uses a rather complicated build setup and I can't quite work out how it functions to be fair.
<octachron> Lwt packages four libraries in the same repo but it is not the simplest example.
<octachron> Cohttp might be simpler?
<dmbaturin> Oh, cohttp may be a good lead. Let me see.
catt has joined #ocaml
<dmbaturin> Wait. Looks like cohttp doesn't provide executables.
<companion_cube> https://github.com/c-cube/datalog there's a library and executable in there (still not the simplest, sorry)
smazga has joined #ocaml
<dmbaturin> companion_cube: Thanks! I think I'm getting closer. I also should try datalog some day.
<companion_cube> (iirc it's "just" adding a public_name on the executable, and a `package` field as well)
smazga has quit [Ping timeout: 256 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<dmbaturin> companion_cube: One thing that escaped me is that it's fine to give a lib and an executable the same public name.
rdivyanshu has quit [Quit: Connection closed for inactivity]
mxns has joined #ocaml
<companion_cube> ah possibly
<companion_cube> it's a bit weird though
<dmbaturin> companion_cube: It's weird that you can or weird if you do?
<companion_cube> weird if you do, imho
<d_bot> <craigfe> doesn't strike me as weird; plenty of libraries that ship with CLIs are going to share that name
<companion_cube> depends if the cli does the exact same thing as the library
<companion_cube> (e.g. yojson has binaries but they're not named "yojson")
<d_bot> <craigfe> e.g. I don't see any real reason to make it `Ocamlformat_lib` rather than just `Ocamlformat`
<companion_cube> ah, good point
<dmbaturin> Yeah, I'm reworking bnfgen, and I want to make it available as a library. The binary is named bnfgen, but I don't want to name the lib bnfgen_lib or similar just to be different, since there can't be any conflicts coming from that.
cross has quit [Ping timeout: 264 seconds]
cross has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
hnOsmium0001 has joined #ocaml
smazga has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
zolk3ri has joined #ocaml
neiluj has joined #ocaml
neiluj has quit [Changing host]
neiluj has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
bartholin has quit [Quit: Leaving]
mxns has quit [Ping timeout: 264 seconds]
olle has quit [Ping timeout: 240 seconds]
Tuplanolla has joined #ocaml
vicfred has joined #ocaml
<d_bot> <EduardoRFS> There is any hooks in OCaml when a Thread is created? I'm doing JVM stuff and all my threads should attach to the JVM otherwise things can blown up
<companion_cube> OCaml threads are currently very barebone
<companion_cube> you coudl do a wrapper around Thread that registers the newly created thread, maybe
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
borne has quit [Ping timeout: 244 seconds]
borne has joined #ocaml
amiloradovsky has joined #ocaml
mxns has joined #ocaml
Haudegen has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
mxns has quit [Ping timeout: 265 seconds]
Geekingfrog has quit [Ping timeout: 240 seconds]
zolk3ri has quit [*.net *.split]
cantstanya has quit [*.net *.split]
tryte has quit [*.net *.split]
andreas303 has quit [*.net *.split]
nicoo has quit [*.net *.split]
smazga has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
smazga has joined #ocaml
mxns has quit [Ping timeout: 265 seconds]
smazga has quit [Ping timeout: 265 seconds]
smazga has joined #ocaml
olle has joined #ocaml
Geekingfrog has joined #ocaml
smazga has quit [Ping timeout: 246 seconds]
mxns has joined #ocaml
olle has quit [Ping timeout: 246 seconds]
mxns has quit [Ping timeout: 272 seconds]
smazga has joined #ocaml
mxns has joined #ocaml
<d_bot> <EduardoRFS> yeah but then I need to be sure that all libraries use it
<d_bot> <EduardoRFS> will probably patch the compiler with some hooks
tryte has joined #ocaml
zolk3ri has joined #ocaml
andreas303 has joined #ocaml
nicoo has joined #ocaml
catt has quit [Remote host closed the connection]
cantstanya has joined #ocaml
jnavila has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
amiloradovsky1 has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky1 is now known as amiloradovsky
narimiran has quit [Ping timeout: 260 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
SrPx has quit [Ping timeout: 240 seconds]
Duns_Scrotus has quit [Ping timeout: 272 seconds]
mrallen1 has quit [Read error: Connection reset by peer]
ec has quit [Read error: Connection reset by peer]
mgsk has quit [Read error: Connection reset by peer]
vicfred has quit [Ping timeout: 256 seconds]
jmct_ has joined #ocaml
mrallen1 has joined #ocaml
mgsk has joined #ocaml
Duns_Scrotus has joined #ocaml
ec has joined #ocaml
jmct has quit [Ping timeout: 272 seconds]
jmct_ is now known as jmct
SrPx has joined #ocaml
neiluj has quit [Quit: leaving]
tane has quit [Quit: Leaving]
jnavila has quit [Quit: Konversation terminated!]
borne has quit [Ping timeout: 265 seconds]
Guest3 has joined #ocaml
zebrag has quit [Read error: Connection reset by peer]
xenu has quit [Quit: bbl]
borne has joined #ocaml
zebrag has joined #ocaml
Guest3 has quit [Quit: Connection closed]
mosterdt has quit [Quit: A crash reduces my expensive computer to a simple stone.]
mosterdt has joined #ocaml
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
catt has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
rak_ has joined #ocaml
rak has quit [Quit: rak]
rak_ has quit [Excess Flood]
rak_ has joined #ocaml
rak_ is now known as rak
rak has quit [Excess Flood]
rak_ has joined #ocaml
rak_ has quit [Excess Flood]
mxns has quit [Ping timeout: 264 seconds]
rak has joined #ocaml