avsm changed the topic of #mirage to: mirage 2 released! party on!
AltGr has joined #mirage
thomasga has quit [Quit: Leaving.]
circ-user-rBWXD has joined #mirage
circ-user-rBWXD has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #mirage
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #mirage
brson has joined #mirage
mcclurmc has quit [Remote host closed the connection]
circ-user-rBWXD has joined #mirage
MrScout_ has quit [Remote host closed the connection]
circ-user-rBWXD has quit [Ping timeout: 272 seconds]
circ-user-rBWXD has joined #mirage
<circ-user-rBWXD> close
<circ-user-rBWXD> close
<circ-user-rBWXD> eixt
<circ-user-rBWXD> exit
circ-user-rBWXD has quit [Remote host closed the connection]
brson has quit [Quit: leaving]
mcclurmc has joined #mirage
seako has quit [Quit: Connection closed for inactivity]
seako has joined #mirage
nullcat has joined #mirage
seangrove has joined #mirage
mort___ has joined #mirage
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dezzy_ is now known as dezzy
jonludlam has joined #mirage
<vbmithr_> reynir: what do you use websocket for btw ?
<reynir> I wanted to use it for a server that would broadcast messages from clients
<vbmithr_> Ok
<reynir> this is what I wrote http://paste.reyn.ir/53
<vbmithr_> Obj.magic opcode ?
<reynir> It just replies with "OK"
<vbmithr_> :) yeah
<vbmithr_> Well, I'm gonna update my code…
<vbmithr_> I mean, fix all this
<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
<thomasga> $ cat ~/.opam/mirage/lib/re/opam.config
<thomasga> foo: "bar"
<thomasga> $ opam config var re:foo
<thomasga> bar
<mato> ah, cool, that should do what i need
<mato> at least for now
<mato> thx
<thomasga> that's very useful to keep a list of things which would be useful to help you. we should add these to the next version of opam!
<mato> yup, i'll be keeping a list
<mato> hmm
<mato> there's a chicken and egg here
<mato> if i do this during build:
<mato> mkdir -p $(opam config var lib)/ocaml-rumprun
<mato> echo "prefix: \"${OPAM_PREFIX}/${RUMPRUN_PLATFORM}\"" \ >>$(opam config var lib)/ocaml-rumprun/opam.config
<mato> then the opam.config file gets overwritten by opam after the package is installed
<mato> i guess i can just abuse the global config for now
<mato> ok, that seems to work
<mato> $ opam config var ocaml-rumprun-prefix
<mato> /home/mato/.opam/system/rumprun-xen
thomasga has quit [Quit: Leaving.]
thomasga has joined #mirage
<thomasga> mato: you can add opam.config files/ directory
<thomasga> it should be installed by opam automatically
<thomasga> hum
<thomasga> not sure actually
<thomasga> anyway you work-around is fine for now
thomasga has quit [Quit: Leaving.]
wildsebastian has quit [Remote host closed the connection]
MrScout has joined #mirage
MrScout has quit [Read error: Connection reset by peer]
MrScout has joined #mirage
brson has joined #mirage
kdef has joined #mirage
MrScout has quit [Ping timeout: 256 seconds]
seangrove has quit [Remote host closed the connection]
nullcat has joined #mirage
seangrove has joined #mirage
mort___ has quit [Ping timeout: 255 seconds]
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrScout has joined #mirage
nullcat_ has joined #mirage
mort___ has joined #mirage
MrScout has quit [Remote host closed the connection]
MrScout has joined #mirage
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mort___ has quit [Quit: Leaving.]
nullcat_ has joined #mirage
<nullcat_> anyone knows how to generate random bytes in Mirage?
larhat1 has joined #mirage
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nullcat_ has joined #mirage
kdef has quit [Quit: Leaving]
brson has quit [Quit: leaving]
MrScout has quit [Ping timeout: 256 seconds]
jonludlam has quit [Ping timeout: 246 seconds]
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brson has joined #mirage
seangrove has quit [Remote host closed the connection]
seangrove has joined #mirage