iovec has quit [Quit: Connection closed for inactivity]
<kakekongen>
I am building sort-of a cache subsystem in one of my unikernels, but I seem to be having the problem that the Hashtbl is not updating properly, or Mirage is doing some optimization simply making it into the initial value. Any ideas?
<kakekongen>
Initially, I create a ref (`let tbl = ref (Hashtbl.create 3)`) before I add three values to it in the start function (`let init_tbl () = Hashtbl.add !tbl "foo" "bar"; ...` and `init_tbl ();` in start)
<hannes>
in OCaml, Hashtbl already has mutable semantics -- no need for ref Hashtbl.create.. just Hashtbl.create should be sufficient
<kakekongen>
AAAAAARRRGHHHHHH.....
<kakekongen>
I fucked up again... ^^
<kakekongen>
My function for getting the routes was not a function, but simply a value, resolved at compile time, always yielding the initial (empty) Hashtbl
<kakekongen>
I'll remove the ref
<hannes>
you can as well use a Map and a ref ;)
<kakekongen>
I will be using it for a static resolver, so afaik I would need a (string, port:int -> Conduit.endp) Hashtbl.t - right?
<kakekongen>
do you know if it is possible to perform fuzzy-search (or even better - type search) in ocp-browser?
<hannes>
i don't know the answer to either of your questions
<hannes>
the second one you may find an answer in #ocaml
<kakekongen>
Well, to the first one - I don't necessarily need an answer, Hashtbl works like a charm now! :D
<kakekongen>
I'll ask them
iovec has joined #mirage
Haudegen has joined #mirage
mort___ has joined #mirage
mort___ has quit [Ping timeout: 250 seconds]
iovec has quit [Quit: Connection closed for inactivity]
mort___ has joined #mirage
mort___ has quit [Quit: Leaving.]
Haudegen has quit [Ping timeout: 250 seconds]
iovec has joined #mirage
derpeter has quit [Ping timeout: 250 seconds]
derpeter has joined #mirage
mort___ has joined #mirage
mort___1 has joined #mirage
mort___ has quit [Read error: Connection reset by peer]
mort___1 has quit [Ping timeout: 268 seconds]
Haudegen has joined #mirage
iovec has quit [Quit: Connection closed for inactivity]
iovec has joined #mirage
Haudegen has quit [Ping timeout: 272 seconds]
Haudegen has joined #mirage
jnavila has joined #mirage
mort___ has joined #mirage
mort___ has left #mirage [#mirage]
mort___ has joined #mirage
Haudegen has quit [Ping timeout: 244 seconds]
iovec has quit [Quit: Connection closed for inactivity]