lars_kurth has quit [Remote host closed the connection]
<nixfreak>
Thank you Drup
mort___ has joined #mirage
<nixfreak>
Does Ocaml have a virtualmachine like virtualenv for python
<hannes>
nixfreak: opam has a concept of `switches`, and you can build each application in a separate switch (a switch can be named, and thus there can be multiple switches using the same compiler)
<nixfreak>
ok yes, yes I saw that
<nixfreak>
thanks
mort___ has quit [Quit: Leaving.]
lobo has joined #mirage
brson_ has joined #mirage
brson has quit [Ping timeout: 250 seconds]
brson has joined #mirage
brson_ has quit [Read error: Connection reset by peer]
nullcat has joined #mirage
<nixfreak>
I'm looking at kv_ro and not understanding if in Ocaml you call getenv that you can call env like this env FS=fat mirage configure --unix
<nixfreak>
does ocaml hook getenv to use env?
<nixfreak>
nm sorry I looked at the API I see it now
nixfreak has quit [Ping timeout: 252 seconds]
tomboy64 has joined #mirage
brson_ has joined #mirage
brson has quit [Read error: Connection reset by peer]
brson_ has quit [Read error: Connection reset by peer]
brson has joined #mirage
brson_ has joined #mirage
brson has quit [Ping timeout: 276 seconds]
tomboy65 has joined #mirage
tomboy64 has quit [Ping timeout: 246 seconds]
<jgjl>
I am trying to understand and extend mirage-skeleton/netif-forward.
<jgjl>
My idea is to write generic forwarding code that can handle any number of network interfaces.
<jgjl>
Since every interfaces brings its own module and, therefore, type, this seems impossble?
<jgjl>
Any pointer on what the rational is for using a separate module for each interface?
brson_ has quit [Ping timeout: 264 seconds]
<Drup>
jgjl: if you want to do that, you shouldn't use the combinator in config.ml
<Drup>
use the module directly
<jgjl>
could you elaborate what combinator means in the context of config.ml?
<jgjl>
Or better, where to read more on how to use the module directly, I am pretty new to mirage and ocaml...
<jgjl>
ok, @-> is the combinator..
<Drup>
no, I meant the "netif" function in config.ml
<Drup>
just call the Netif module in your unikernel.ml directly
<jgjl>
ah, ok, will try, thanks
<jgjl>
Mhh, now where to I get an implementation of NETWORK from?
<Drup>
Netif is such implementation
<jgjl>
I see, it seems that I am missing fundamental stuff here :)
<jgjl>
Thanks
<Drup>
have you tried to look at the main.ml generated for netif-forward ?