<Flerex>
The only exception I tried to catch is that one
argent_smith has quit [Quit: Leaving.]
<Flerex>
I realized that it has some errors when compiling
shinnya has quit [Ping timeout: 250 seconds]
<lyxia>
indeed
<Flerex>
I'm so sorry
<Flerex>
I just fixed some things and it worked
<Flerex>
Sorry for bothering you
<lyxia>
np
myst|fon has joined #ocaml
madroach has quit [Ping timeout: 264 seconds]
fre has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
fre has joined #ocaml
fre has quit [Ping timeout: 268 seconds]
Flerex has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
noddy2OOO has joined #ocaml
Flerex has joined #ocaml
ryanartecona has joined #ocaml
maattdd has joined #ocaml
ggole_ has joined #ocaml
colorless has joined #ocaml
ryanartecona has quit [Ping timeout: 264 seconds]
ggole has quit [Ping timeout: 264 seconds]
malc_ has quit [Ping timeout: 256 seconds]
maattdd has quit [Ping timeout: 265 seconds]
chris2 is now known as leah2
Flerex has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
colorless has left #ocaml [#ocaml]
ggole__ has joined #ocaml
ggole_ has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #ocaml
fraggle-boate has quit [Ping timeout: 258 seconds]
ryanartecona has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ocaml
senseithink has joined #ocaml
jnavila has joined #ocaml
fraggle-boate has joined #ocaml
ggole_ has joined #ocaml
Flerex has joined #ocaml
ggole__ has quit [Ping timeout: 258 seconds]
maattdd has joined #ocaml
kamog has joined #ocaml
tane has joined #ocaml
maattdd has quit [Ping timeout: 250 seconds]
luzie has quit [Remote host closed the connection]
luzie has joined #ocaml
<iyy>
what's the recommended least pain approach to serialization and deserialization of, for instance, a hashtbl containing tree-like types?
<theblatte>
Marshal?
<iyy>
wow, i managed to miss that completely. thanks!
<theblatte>
yw
ziyourenxiang has quit [Quit: Leaving]
<dmbaturin>
iyy: There are modules for protobuf and msgpack. If you don't need to process data from untrusted source or easily communicate to programs in other languages, marshal can be the easiest thing to use though.
scitesy has joined #ocaml
tane has quit [Quit: Leaving]
malc_ has joined #ocaml
<iyy>
good info, thanks. i forgot to specify that this specific need was for storing and using precalculated data within the same ocaml process on different invocations, but for network use i'll definitely need something like that later on
<Drup>
iyy: I wouldn't use marshall for that
<Drup>
at least not for production
esad has joined #ocaml
d0nn1e has quit [Ping timeout: 264 seconds]
d0nn1e has joined #ocaml
FreeBirdLjj has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
myst|fon has quit [Quit: Connection closed for inactivity]
troydm has quit [Ping timeout: 250 seconds]
rgrinberg has joined #ocaml
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jnavila has quit [Ping timeout: 256 seconds]
sillyotter has joined #ocaml
esad has joined #ocaml
sillyotter has quit [Client Quit]
Sorella has quit [Quit: Connection closed for inactivity]
esad has quit [Client Quit]
esad has joined #ocaml
esad has quit [Client Quit]
esad has joined #ocaml
esad has quit [Client Quit]
esad has joined #ocaml
nomicflux has joined #ocaml
esad has quit [Client Quit]
esad has joined #ocaml
diphuser has joined #ocaml
scitesy has quit [Quit: AtomicIRC: The nuclear option.]
esad has quit [Client Quit]
esad has joined #ocaml
maattdd has joined #ocaml
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Drup>
theblatte: two reasons: 1) it will break on new ocaml versions 2) it's unsafe
<Drup>
it you launch your program, get some computations, serialize then upgrade your program which changes the format, and launch it again, you'll get segfaults
<theblatte>
sounds like depending on the exact use-case that could be ok
<theblatte>
but ok :)
<Drup>
theblatte: of course, marshall is useful sometime :)
<Drup>
I just wouldn't use it for caching data in a user-facing program
<theblatte>
infer does that :)
FreeBirdLjj has quit [Ping timeout: 256 seconds]
<Drup>
that doesn't make it right ^^'
<theblatte>
not implying it does
<theblatte>
but I wouldn't expect cached results to be reusable across versions in the first place
<Drup>
theblatte: except the failure mode, with marshall, is a segfault
<theblatte>
yes that's bad ^^
<Drup>
nowadays, with things like ppx_deriving_yojson and whatnot, it's not difficult to use a safe version. The price is that it's quite slower (and doesn't preserve sharing, and so on)
<Drup>
marshall is really good when you want something very fast and that preserve sharing. If those are not essential, better use another format
<theblatte>
yup, being fast and preserving sharing (also for speed reasons) is a requirement in our case
<Drup>
yeah :p
<orbitz>
companion_cube: what's the difference between qcheck and qtest packages/
trepta7 has quit [Remote host closed the connection]
jnavila has quit [Remote host closed the connection]
trepta7 has joined #ocaml
fraggle_ has quit [Ping timeout: 246 seconds]
fraggle_ has joined #ocaml
vramana has quit [Ping timeout: 264 seconds]
programo has quit [Remote host closed the connection]
kamog has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
diphuser has quit [Ping timeout: 264 seconds]
ziyourenxiang has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 246 seconds]
whisperedcigar has joined #ocaml
whisperedcigar has quit [Ping timeout: 245 seconds]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
average has quit [Ping timeout: 260 seconds]
average has joined #ocaml
Sorella has joined #ocaml
FreeBirdLjj has joined #ocaml
nomicflux has quit [Read error: Connection reset by peer]