<reynir>
I didn't know how I would broadcast messages - I could collect the push functions, but I wouldn't know when they're closed
<vbmithr_>
ok.
<reynir>
Obj.magic opcode is just to force it into something I could print for debugging. It's probably not safe...!
<vbmithr_>
You prefer using lwt streams for messages or you would prefer using a normal channel ?
<vbmithr_>
It is but I should have provided code to print those
<vbmithr_>
I'm gonna do it now :)
<vbmithr_>
And try to update your code with it
<vbmithr_>
It's my fault, actually, if you have to do that kind of stuff :S
<reynir>
eh don't worry
<reynir>
I'm not sure what I would prefer. I'd have to think about it :)
<vbmithr_>
Because chambart told me he prefers channels, so…
<vbmithr_>
Just to gather some info about what ppl prefer
<vbmithr_>
Anyway I'm going to rewrite it to make encryption and lwt optional
<vbmithr_>
But I'm trying to solve your problem first.
mort___ has quit [Quit: Leaving.]
<reynir>
ok thanks
seako has quit [Quit: Connection closed for inactivity]
<reynir>
vbmithr_: I'll have some time this weekend and monday, maybe I can help out
<vbmithr_>
Ok
mort___ has joined #mirage
<vbmithr_>
Yeah, The thread get cancelled in Lwt when the connection is closed
thomasga has joined #mirage
<mato>
is there any way to persistently set an opam variable?
<mato>
i need some way of recording the cross-toolchain target when building the compiler and getting it back in a variable when cross-building packages...
<mato>
and the shell construct $(command) doesn't seem to work in opam files :/
<mato>
thomasga: ping?
AltGr has left #mirage [#mirage]
<thomasga>
there is a mechanism to set-up env variables: "OPAMVAR_foo=bar opam config var foo" gives you "bar"
<thomasga>
normally, this should work ok when you write %{foo}% in config files
<mato>
right, but that would mean the variable needs to be set on each opam invocation
<thomasga>
but it might be not very well tested ...
<mato>
i was hoping for something like "opam config set var=value"
<mato>
which would be done at the time ocaml-rumprun is installed
<mato>
and the dependent packages could then use %{ocaml-rumprun-prefix}% where appropriate
<thomasga>
ha I see
<thomasga>
you can edit ~/.opam/<switch>/config/global-config.config
<thomasga>
or add an opam.config file in your package lib
<thomasga>
and do %{pkg:var}% in the opam file
<thomasga>
having a way to set the variable on the command line would be useful