thomasga has quit [Quit: Leaving.]
philtor_ has quit [Ping timeout: 240 seconds]
tlockney is now known as tlockney_away
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #mirage
mcclurmc has quit [Ping timeout: 244 seconds]
mcclurmc has joined #mirage
mcclurmc has quit [Ping timeout: 240 seconds]
philtor_ has joined #mirage
mcclurmc has joined #mirage
mcclurmc has quit [Remote host closed the connection]
philtor_ has quit [Ping timeout: 245 seconds]
mcclurmc has joined #mirage
philtor_ has joined #mirage
boogie has quit [Remote host closed the connection]
philtor_ has quit [Ping timeout: 264 seconds]
thomasga has joined #mirage
bsb has quit [Ping timeout: 252 seconds]
bsb has joined #mirage
AltGr has joined #mirage
thomasga has quit [Quit: Leaving.]
thomasga has joined #mirage
jludlam has joined #mirage
avsm has joined #mirage
dsheets has joined #mirage
djs55 has joined #mirage
<thomasga> dsheets: do you really think than computing the META 'requires' dynamically is a good idea ?
<thomasga> what happens if you run the Makefile again with a different value of HAS_CTYPES ?
<dsheets> thomasga, how else would you instruct findlib about the optional deps that are activated?
<dsheets> then you'd get a different installed package with a different META
<dsheets> you want subpackages?
<dsheets> i guess i took this approach to get some usability for the end user
<dsheets> maybe it is misguided but i wanted people to be able to use Unix_fcntl.open_ and U_fcntl.Oflags.O_RDWR naturally
<thomasga> dsheets: not sure if the META file will be recomputed properly then
<dsheets> ohhh, i see what you mean
<thomasga> the EXTRA_META is not a prerequisite of the META target
<thomasga> and I don't see how to do that properly
<dsheets> just force META generation
<dsheets> or, clean between switching the depopts which is what i was doing
<thomasga> but I'm bit afraid of the added complexity in the META if any compilation unit and deps can be optional
<dsheets> any compilation unit?
<thomasga> well, not in your Makefile, but sometimes you want to compile foo_unix only if you have some unix lib available — but I guess you should have a separate library for that
<dsheets> Ah, yeah, I could have Unix_unistd_unix or something
<thomasga> yup
<dsheets> hmm perhaps i should do Unistd and Unix_unistd
<dsheets> It would simplify things a lot
<dsheets> and i could use subpackages and stop fighting the module system
<thomasga> and then you can have multiple instances of the library with different features working together
<thomasga> (we had the same kind of issues for mirage — should we use some linking hacks or not)
<dsheets> how's that? Dirent would still have sexp
<dsheets> and I'd have to add/remove the subpackage from the META in the build system
<thomasga> well can build the subpackage and let the user choose the one he wants to link with it or not
<thomasga> if you do a link hack, he has no choice
<dsheets> then i require the unix deps all the time?
<dsheets> they have a choice if they lack the extra deps
<dsheets> if they don't lack them, they would get the subpack
avsm has quit [Quit: Leaving.]
<thomasga> yes sorry, I meant they have the choice if you have a subpackage. If you tweak the requires, they don't
<dsheets> oh, yeah, i think it is not a good idea the way i have it now
<dsheets> but i didn't know how to make it easy to use/remember until I looked at Unix_unistd_unix >_<
<thomasga> ok
<dsheets> i will switch to Unistd/Unix_unistd or Unistd/Unistd_unix, I think
<dsheets> probably the former
<dsheets> Or Unistd.Unix
<dsheets> but then I can't have types live in the top module because I'd have to pack :-/
<thomasga> you can always have Unistd_unix which includes Unistd
<thomasga> and ask the user to do 'open Unistd_unix` at the top of its file
<thomasga> if he wants to use the extended unix interface
<dsheets> includes as a submodule? or "include"?
<dsheets> There is also the possibility of a future "Unix" module based on these
avsm has joined #mirage
<avsm> dsheets: isnt this what exists_if is for in META
<dsheets> avsm, ah, indeed, i can conditionalize based on build products with that
<dsheets> ok, i'm not sure what my malfunction was when i did the present design O_O
<dsheets> very strange that even if OCAML_TOPLEVEL_PATH is defined and has a topfind in it, #use "topfind" in a script fails with "cannot find file topfind"
avsm has quit [Quit: Leaving.]
<dsheets> any ideas on why this occurs on my test system: https://gist.github.com/dsheets/27fcbd21a3bf5fcba8af
<dsheets> works fine on my dev system
<thomasga> dsheets: missing some stuff in your .ocamlinit ?
<thomasga> let () =
<thomasga> try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
<thomasga> ;;
<thomasga> with Not_found -> ()
<dsheets> works fine in the toplevel but not in a script
<dsheets> grrr it's the system compiler ocamlfind no-topfind bug from 2012
<dsheets> and there appears to be no way to write a script that can use this compiler
<dsheets> and reference topfind
<dsheets> when both are relative to environment variables
<dsheets> thomasga, see #ocaml, the problem was that .ocamlinit is only loaded for interactive use
<thomasga> ok
<dsheets> i think there should be something to call Toploop.load_ocamlinit (wrapped) for scripts
<dsheets> but for now i will just copy it
<dsheets> thanks
<dsheets> (the .ocamlinit, not toploop)
thomasga has quit [Quit: Leaving.]
thomasga has joined #mirage
NoNNaN has joined #mirage
<vbmithr> cohttp does not compile against conduit anymore ?
<vbmithr> File "lwt/cohttp_lwt_unix.mli", line 48, characters 21-49:
<vbmithr> Error: Unbound type constructor Lwt_unix_conduit.server_mode
<vbmithr> yes
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #mirage
yomimono has joined #mirage
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #mirage
jludlam is now known as jonludlam
talex5 has joined #mirage
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #mirage
mcclurmc has quit [Ping timeout: 264 seconds]
yomimono has quit [Ping timeout: 240 seconds]
philtor_ has joined #mirage
tlockney_away is now known as tlockney
philtor_ has quit [Ping timeout: 272 seconds]
yomimono has joined #mirage
mcclurmc has joined #mirage
yomimono has quit [Ping timeout: 272 seconds]
jonludlam has quit [Remote host closed the connection]
talex5 has quit [Ping timeout: 264 seconds]
agarwal1975 has quit [Quit: agarwal1975]
AltGr has left #mirage [#mirage]
thomasga has quit [Quit: Leaving.]
yomimono has joined #mirage
agarwal1975 has joined #mirage
djs55 has quit [Quit: Leaving.]
thomasga has joined #mirage
talex5 has joined #mirage
agarwal1975 has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
bsb has quit [*.net *.split]
IbnFirnas has quit [*.net *.split]
algoriddle has quit [*.net *.split]
yastero has quit [*.net *.split]
__marius____ has quit [*.net *.split]
vbmithr has quit [*.net *.split]
so has quit [*.net *.split]
netsecparano has quit [*.net *.split]
thomasga has quit [Quit: Leaving.]
mcclurmc has joined #mirage
so has joined #mirage
__marius____ has joined #mirage
bsb has joined #mirage
algoriddle has joined #mirage
yastero has joined #mirage
vbmithr has joined #mirage
agarwal1975 has joined #mirage
netsecparano has joined #mirage
IbnFirnas has joined #mirage
yomimono has quit [Ping timeout: 255 seconds]
talex5 has quit [Quit: Saliendo]
dsheets has quit [Ping timeout: 255 seconds]
agarwal1975 has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
bsb has quit [*.net *.split]
IbnFirnas has quit [*.net *.split]
algoriddle has quit [*.net *.split]
yastero has quit [*.net *.split]
__marius____ has quit [*.net *.split]
vbmithr has quit [*.net *.split]
so has quit [*.net *.split]
netsecparano has quit [*.net *.split]
agarwal1975 has joined #mirage
__marius____ has joined #mirage
yastero has joined #mirage
mcclurmc has joined #mirage
so has joined #mirage
algoriddle has joined #mirage
bsb has joined #mirage
vbmithr has joined #mirage
netsecparano has joined #mirage
IbnFirnas has joined #mirage
philtor_ has joined #mirage
agarwal1975 has quit [Write error: Connection reset by peer]
yomimono has joined #mirage
dsheets has joined #mirage
yomimono has quit [Read error: Connection reset by peer]
yomimono has joined #mirage
djs55 has joined #mirage
philtor_ has quit [Ping timeout: 255 seconds]
mcclurmc has quit [Ping timeout: 244 seconds]
mcclurmc has joined #mirage
tlockney is now known as tlockney_away
mcclurmc has quit [Ping timeout: 240 seconds]
mcclurmc has joined #mirage
djs55 has quit [Quit: Leaving.]
tlockney_away is now known as tlockney
yomimono has quit [Ping timeout: 264 seconds]
avsm has joined #mirage
philtor_ has joined #mirage
mcclurmc has quit [Ping timeout: 244 seconds]
mcclurmc has joined #mirage
dsheets has quit [Ping timeout: 255 seconds]
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #mirage
avsm has quit [Quit: Leaving.]
philtor_ has quit [Ping timeout: 264 seconds]