hannes changed the topic of #mirage to: bug cleaning day first friday each month from 14:00 UTC till late, meet here. MirageOS 3 is released, happy hacking!
mort___1 has joined #mirage
mort___ has quit [Read error: Connection reset by peer]
olle has joined #mirage
argent_smith has joined #mirage
AltGr has joined #mirage
mort___1 has left #mirage [#mirage]
<argent_smith>
hi ppl. it looks like mirage is a good framework for building statically-linked userland linux binaries. can I implement a program reading from the host FS and running a cohttp server connected to the host IP stack at the same time?
<argent_smith>
also, please remind what lib to use to parse cli keys/options (like cmdliner or so)
olle has quit [Quit: olle]
<argent_smith>
already found about keys
<argent_smith>
now, the question is the host file IO and network )
<argent_smith>
also, the network answer is found ) what about file io? will mirage unix binary work with usual lwt_io calls, for example?
<hannes>
argent_smith: you can use the mirage-block-lwt abstraction interface.
<hannes>
or mirage-fs-lwt -- on unix this will use mirage-fs-unix, and it has read / write / size which are in the lwt.t monad
<hannes>
but lwt_io depends on lwt_unix, and thus is not supported by mirage itself (i.e. when you use lwt_io, you'll never be able to execute this as a virtual machine)
<argent_smith>
hannes: thanks
AltGr has quit [Remote host closed the connection]