companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
waleee has quit [Ping timeout: 255 seconds]
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
berberman has joined #ocaml
berberman_ has quit [Ping timeout: 255 seconds]
<d_bot> <Shon F> Oh I see. Sorry. I misunderstood. Thought you were asking about how to limit the scope within which an open is relevant.
hackinghorn has quit [Ping timeout: 252 seconds]
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
terrorjack has quit [Read error: Connection reset by peer]
terrorjack has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
<d_bot> <darrenldl> @thangngoc89 ah so you want to store the marshalled strings since there is no efficient deserialisation procedures for your data?
zebrag has quit [Remote host closed the connection]
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 250 seconds]
favonia has joined #ocaml
terrorjack has quit [Read error: Connection reset by peer]
terrorjack has joined #ocaml
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
glass is now known as theglass
gravicappa has joined #ocaml
mbuf has joined #ocaml
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
<d_bot> <thangngoc89> @darrenldl yes 👍. Not necessarily, the data storage supports binary mode
mro has joined #ocaml
<d_bot> <darrenldl> unfortunately rolling your own serialisation might be the safest bet
<d_bot> <darrenldl> though you can roll a cache somewhere in between for mashalled string access
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
terrorjack has quit [Remote host closed the connection]
terrorjack has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
favonia has joined #ocaml
Haudegen has joined #ocaml
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
glassofethanol has joined #ocaml
neiluj_ has quit [Remote host closed the connection]
neiluj_ has joined #ocaml
mro has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
mro has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
dhil has joined #ocaml
olle has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
kakadu has joined #ocaml
<d_bot> <Alistair> Is there a way to have 2 separate dune projects (local) and have a dependency between them?
ski has quit [Ping timeout: 252 seconds]
Haudegen has quit [Quit: Bin weg.]
waleee has joined #ocaml
hackinghorn has joined #ocaml
favonia has joined #ocaml
Haudegen has joined #ocaml
reynir has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 258 seconds]
berberman has quit [Ping timeout: 255 seconds]
berberman_ has joined #ocaml
zebrag has joined #ocaml
<companion_cube> marshal is not stable though
gzj has joined #ocaml
<d_bot> <RegularSpatula> I was also looking for a way to do this. Possibly the `subdir` could be helpful, sort of like this (https://github.com/aantron/dream/blob/master/src/vendor/dune) but local. I was also looking into using a monorepo, but haven't found much about that with dune yet.
<d_bot> <RegularSpatula> I used the subdir for one way local deps at least...
<d_bot> <Alistair> I've currently got a monorepo, the issue is that it takes forever to build w/ dune
<d_bot> <RegularSpatula> Ah how big out of curiosity? And is it public by any chance? Was looking for examples. Also, do you think it's just not the best fit with dune? (Sorry for the multiple questions!)
<d_bot> <undu> xapi'project is moving to a semi-monorepo, upstream libraries are not vendored, but all the daemons and their libraries will be in the same repo. We've got so many repos it's taking a bit long, though.
<d_bot> <undu> We're expecting dune to be faster than opam + dune
<neiluj_> Interested about the answer too!
<companion_cube> I think it's realistic
<companion_cube> opam always takes a few seconds to even start doing stuff, whereas a unified dune build can be very fast
<companion_cube> incremental build
<neiluj_> in my case, I've got the dependency as a submodule, but every time I update the submodule, everything must be rebuild since the project shares the same environment as the submodule
<neiluj_> but the submodule uses a local version of opam, so everything must be rebuilt
<neiluj_> I mean, it's because official opam is mixed with the custom repo, so the dependency cannot be built on the environment
gzj has quit [Ping timeout: 255 seconds]
<neiluj_> if it helps
<d_bot> <undu> are you using https://github.com/ocamllabs/opam-monorepo ?
spip has joined #ocaml
Guest7130 has quit [Ping timeout: 255 seconds]
spip is now known as Guest4585
<d_bot> <Alistair> This is my problem currently, often I'm not updating the submodule but it rebuilds it anyway
<neiluj_> is it possible to parametrize a module by a type? Got a an ordered set where the comparison depends not only on two elements of the set, but on a hash
kakadu has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
<neiluj_> or better yet, a function parametrized by the type that returns the set with the right comparison
<neiluj_> is it overkill?
<octachron> I am not sure what you mean by parametrized by a type.
bartholin has quit [Quit: Leaving]
<neiluj_> something like: make (type t) = module Set with compare a b = f t a b
<octachron> Function behaviors cannot depend on types.
<octachron> What `f` is supposed to do with `t` in `f t a b` ?
<neiluj_> something like: https://bpa.st/XV2A
<neiluj_> type t would be the target argument
<octachron> target looks like a value and not a type?
<neiluj_> oh yeah, it is
<neiluj_> my bad
<octachron> Do you want something like: let make (type t) (compare: int -> t -> t -> int): (module Set.S with type elt = t) = (module Set.Make(struct type nonrec t=t let compare = compare (Random.int 10) end)) ?
<neiluj_> wow
<neiluj_> exactly, thank you so much!
<neiluj_> messed up types and values :s
Haudegen has joined #ocaml
<neiluj_> arh, that doesn't seem to be a good idea
<neiluj_> for example, the "instantiated" module S2 cannot escape from its scope: https://bpa.st/ZQPA
olle_ has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Client Quit]
<neiluj_> maybe pass the module as an argument to the function? though not sure if the type-checker will recognize the module as instantiated with the same values
favonia has quit [Ping timeout: 272 seconds]
<neiluj_> huh that's not possible
favonia has joined #ocaml
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
hackinghorn has quit [Read error: Connection reset by peer]
hackinghorn has joined #ocaml
ralu has quit [Quit: Ping timeout (120 seconds)]
ralu has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
zebrag has joined #ocaml
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
Stumpfenstiel has joined #ocaml
favonia has quit [Ping timeout: 245 seconds]
favonia has joined #ocaml
Stumpfenstiel has quit [Quit: No Ping reply in 180 seconds.]
Stumpfenstiel has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
<olle_> ?
<olle_> first-class modules exists
<neiluj_> right, just read more about module
<neiluj_> it's something I'm not familiar with
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
cedric has joined #ocaml
favonia has quit [Ping timeout: 250 seconds]
favonia has joined #ocaml
gravicappa has quit [Ping timeout: 265 seconds]
Haudegen has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
olle_ has quit [Ping timeout: 276 seconds]
Corbin has quit [Ping timeout: 245 seconds]
dh` has quit [Ping timeout: 252 seconds]
nfc has quit [Ping timeout: 252 seconds]
dh` has joined #ocaml
mosterdt has quit [Ping timeout: 252 seconds]
mosterdt has joined #ocaml
nfc has joined #ocaml
Enjolras_ has quit [Ping timeout: 252 seconds]
Enjolras has joined #ocaml
lobo has quit [Ping timeout: 252 seconds]
lobo has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
dy` has quit [Quit: ZNC 1.9.x-git-124-15e2351d - https://znc.in]
dy has joined #ocaml
favonia has quit [Ping timeout: 250 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 240 seconds]
favonia has joined #ocaml
dhil has quit [Ping timeout: 265 seconds]
Serpent7776 has quit [Quit: leaving]
gzj has joined #ocaml
glassofethanol has quit [Ping timeout: 252 seconds]
cedric has quit [Quit: Konversation terminated!]
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
gzj has quit [Remote host closed the connection]
gzj has joined #ocaml