adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
FreeBirdLjj has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
agarwal1975 has joined #ocaml
esad has joined #ocaml
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
whisperedcigar has joined #ocaml
jee28 has joined #ocaml
jmiven has quit [Quit: co'o]
ryanartecona has quit [Quit: ryanartecona]
whisperedcigar has quit [Ping timeout: 245 seconds]
jmiven has joined #ocaml
ziyourenxiang has joined #ocaml
d0nn1e has quit [Ping timeout: 252 seconds]
d0nn1e has joined #ocaml
octachron has quit [Quit: Leaving]
jee28 has quit [Quit: leaving]
Simn has quit [Quit: Leaving]
copy` has quit [Quit: Connection closed for inactivity]
fraggle_ has quit [Ping timeout: 250 seconds]
Madars has joined #ocaml
whisperedcigar has joined #ocaml
whisperedcigar has quit [Ping timeout: 245 seconds]
Algebr``` has joined #ocaml
Algebr`` has quit [Ping timeout: 264 seconds]
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silver has quit [Read error: Connection reset by peer]
mfp has quit [Ping timeout: 264 seconds]
Algebr``` has quit [Ping timeout: 264 seconds]
hellofunk has joined #ocaml
noddy2OOO has quit [Ping timeout: 258 seconds]
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
hellofunk has quit [Remote host closed the connection]
unbalanced has quit [Ping timeout: 264 seconds]
zirman has quit [Quit: Leaving...]
lyxia has quit [Ping timeout: 260 seconds]
lyxia has joined #ocaml
whisperedcigar has joined #ocaml
whisperedcigar has quit [Ping timeout: 245 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
pierpa has quit [Ping timeout: 250 seconds]
malc_ has joined #ocaml
programo has joined #ocaml
rgrinberg has quit [Ping timeout: 256 seconds]
sh0t has joined #ocaml
sh0t has quit [Remote host closed the connection]
whisperedcigar has joined #ocaml
whisperedcigar has quit [Ping timeout: 245 seconds]
ryanartecona has joined #ocaml
programo has quit [Quit: Leaving]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 252 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
myst|fon has quit [Quit: Connection closed for inactivity]
f[x] has joined #ocaml
ygrek_ has quit [Ping timeout: 264 seconds]
whisperedcigar has joined #ocaml
f[x] has quit [Ping timeout: 258 seconds]
ryanartecona has quit [Quit: ryanartecona]
adelbertc has left #ocaml [#ocaml]
slash^ has joined #ocaml
MercurialAlchemi has joined #ocaml
larhat has joined #ocaml
esad has joined #ocaml
esad has quit [Client Quit]
argent_smith has joined #ocaml
esad has joined #ocaml
ocaml533 has joined #ocaml
<ocaml533> Question about Hashtbl.
<ocaml533> Both keys and values are lists. Find if a string is the first element of the key and return the value. I know how to use Hashtbl.
<ocaml533> Hashtbl.iter ? Can I directly find it without iterating ?
<lyxia> no
<flux> hash tables by definition require the whole key for searching
Simn has joined #ocaml
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vramana has quit [Ping timeout: 256 seconds]
larhat has quit [Quit: Leaving.]
vramana has joined #ocaml
fraggle_ has joined #ocaml
<ocaml533> But this seems to work.
<ocaml533> let value htbl word = Hashtbl.fold (fun k v accum -> (if ( List.nth k 0 = word) then (v::accum ) else accum)) htbl []
silver has joined #ocaml
copy` has joined #ocaml
mfp has joined #ocaml
<lyxia> fold iterates through the hashtbl too
esad has joined #ocaml
ggole has joined #ocaml
tane has joined #ocaml
esad has quit [Ping timeout: 250 seconds]
esad has joined #ocaml
ggole_ has joined #ocaml
jimt has quit [Ping timeout: 246 seconds]
ggole has quit [Ping timeout: 248 seconds]
jimt has joined #ocaml
maattdd has joined #ocaml
ryanartecona has joined #ocaml
esad has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 250 seconds]
ryanartecona has quit [Ping timeout: 246 seconds]
FreeBirdLjj has joined #ocaml
ggole_ has quit [Ping timeout: 246 seconds]
ggole has joined #ocaml
shinnya has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
tane has quit [Ping timeout: 265 seconds]
ocaml533 has quit [Ping timeout: 260 seconds]
fre has joined #ocaml
Flerex has joined #ocaml
<Flerex> Hello. I'm trying to caught the Graphics Failure exception when closing a X11 window with the following function:
<Flerex> Where open_clock is a function with a call to open_graph and some other graphical functions+
<Flerex> But it doesn't work and the exception is returned
<Flerex> Does anyone know what is happening?
<lyxia> Flerex: what is the output?
<Flerex> lyxia # Fatal error: exception Graphics.Graphic_failure("fatal I/O error")
<lyxia> hmm, are you sure it comes from within open_clock
<lyxia> Can you paste compilable code
<lyxia> Have you tried catching any exception?
<Flerex> Yeah, I think so.
<Flerex> Here you are:
<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…]
esad has joined #ocaml
esad has quit [Client Quit]
maattdd has quit [Ping timeout: 250 seconds]
esad has joined #ocaml
esad has quit [Client Quit]
esad has joined #ocaml
pierpa has joined #ocaml
senseithink has quit [Quit: Page closed]
esad has quit [Quit: Textual IRC Client: www.textualapp.com]
jbrown has quit [Ping timeout: 246 seconds]
programo has joined #ocaml
maattdd has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 245 seconds]
testml has joined #ocaml
<testml> hello, is there a way to make ppx_deriving.show to ignore the module names (like pervasives) ?
ryanartecona has joined #ocaml
FreeBirdLjj has joined #ocaml
programo has quit [Ping timeout: 265 seconds]
programo has joined #ocaml
sternenseemann has joined #ocaml
isd1 has joined #ocaml
isd1 has quit [Read error: Connection reset by peer]
isd has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
MetaHertz has joined #ocaml
maattdd has joined #ocaml
ryanartecona has joined #ocaml
maattdd has quit [Ping timeout: 252 seconds]
Guest71678 is now known as msch
myst|fon has joined #ocaml
MetaHertz has quit [Ping timeout: 264 seconds]
jnavila has joined #ocaml
maattdd has joined #ocaml
argent_smith has joined #ocaml
maattdd has quit [Ping timeout: 240 seconds]
f[x] has joined #ocaml
jbrown has joined #ocaml
trepta7 has joined #ocaml
programo has quit [Ping timeout: 250 seconds]
ryanartecona has quit [Quit: ryanartecona]
f[x] has quit [Ping timeout: 240 seconds]
slash^ has quit [Read error: Connection reset by peer]
ryanartecona has joined #ocaml
fraggle_ has quit [Ping timeout: 246 seconds]
fraggle_ has joined #ocaml
malc_ has quit [Remote host closed the connection]
ryanartecona has quit [Client Quit]
jnavila has quit [Ping timeout: 260 seconds]
ggole_ has quit [Ping timeout: 250 seconds]
kakadu has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
vicfred has joined #ocaml
testml has quit [Ping timeout: 260 seconds]
trepta7 has quit [Remote host closed the connection]
trepta7 has joined #ocaml
f[x] has joined #ocaml
trepta7 has quit [Remote host closed the connection]
trepta7 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
<orbitz> Anyone know exactly what the build-doc stuff does in OPAM? Does it install the docs somewhere or just verify they built successfully?
programo has joined #ocaml
argent_smith has quit [Quit: Leaving.]
whisperedcigar has quit [Ping timeout: 245 seconds]
<Drup> build-doc are the instructions to build the documentation. The install step is run after that (and should install it, if it was built)
<orbitz> Drup: do you know what directory? $(PREFIX)/docs/$PACKAGE?
<Drup> iirc, yes. You can run "opam config env package:doc" to make sure
<orbitz> thanks, Drup
jnavila has joined #ocaml
Simn has quit [Ping timeout: 246 seconds]
Flerex has quit [Quit: Textual IRC Client: www.textualapp.com]
FreeBirdLjj has joined #ocaml
<theblatte> Drup: why not use marshal for that?
<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]
nomicflux has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 252 seconds]
<copy`> orbitz: https://github.com/vincent-hugot/iTeML/issues/42 (tldr: qtest is actually iteml)
<orbitz> copy`: yeah but looks like the version being developed right now is separating again
<copy`> Right, if you don't want inline tests, install qcheck, otherwise install qtest
<orbitz> copy`: ah, last comment in there
<orbitz> copy`: the problem for me is that containers conflicts qith qcheck
<orbitz> so i can't have both
<copy`> The split happened very recently, so I guess that will be fixed very soon
<orbitz> What I'm really intereted in is which API I need to write tests against
<copy`> It's probably the same, whether you install one or the other
<orbitz> qcheck and qtest have different APIs