rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
motherfsck has quit [Quit: quit]
<d_bot>
<Bluddy> yep. the less we have to think about this stuff, the better
<d_bot>
<Bluddy> make it all opinionated and be done with it
cedric has joined #ocaml
<d_bot>
<Bluddy> companion_cube: I take back my taking back of the question above. CCRandom (wisely, IMO) overrides the default Random functions to all take state. But then you need to store that state somewhere (usually in your state record), and that makes the record unserializable except with Marshal.
raskol has joined #ocaml
aspe has joined #ocaml
aspe has quit [Remote host closed the connection]
aspe has joined #ocaml
noonien has quit [Ping timeout: 248 seconds]
<greenbagels>
opam update 23.59s user 19.40s system 7% cpu 9:39.67 total
<greenbagels>
i *really* need to remember to enable the debug flags more often
<greenbagels>
a 10 minute opam update...
noonien has joined #ocaml
SoniEx2 has quit [Quit: No Ping reply in 180 seconds.]
Soni has joined #ocaml
gdd has joined #ocaml
trev has joined #ocaml
olle has joined #ocaml
adrien_ is now known as adrien
bartholin has joined #ocaml
wingsorc has quit [Quit: Leaving]
bartholin has quit [Remote host closed the connection]
bartholin has joined #ocaml
Haudegen has joined #ocaml
gravicappa has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
amk has quit [Changing host]
amk has joined #ocaml
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
waleee has joined #ocaml
bobo_ has quit [Ping timeout: 246 seconds]
spip has joined #ocaml
adanwan has quit [Ping timeout: 240 seconds]
dextaa has quit [Read error: Connection reset by peer]
adanwan has joined #ocaml
dextaa has joined #ocaml
<d_bot>
<VPhantom> I just spent a while adding printfs everywhere to find where a program raised `Not_found`. This is despite Dune compiling with `-g` and my running with `OCAMLRUNPARAM=b` which did yield a 2-line backtrace, but unrelated to where the problem turned out to be. What could be the cause for `Printexc.get_backtrace` within an exception handler not to return a complete stack?
<companion_cube>
you absolutely need to call it first thing
<companion_cube>
with e -> let bt = Printexc.get_backtrace () in …
<companion_cube>
otherwise it might be erased
<d_bot>
<VPhantom> I use it left of a `^` operator… 🤔
<d_bot>
<VPhantom> I'll refactor with a binding to be sure.
dextaa has quit [Read error: Connection reset by peer]
<d_bot>
<VPhantom> Well I'll be damned. 😛
<companion_cube>
yeah, be super careful with that
<d_bot>
<VPhantom> First really means dead first.
<companion_cube>
yeah, cause calling another function might kill your frame
<d_bot>
<VPhantom> Welp, now I can remove my 30-ish prints to stderr. 😛
<d_bot>
<VPhantom> (That was a heck of a throw-back to my old C-without-gdb days.)
<companion_cube>
\o/
<companion_cube>
well ppx_deriving.show is worth it even just for printf-debugging, in my experience
<companion_cube>
(and I do a lot of that)
<d_bot>
<VPhantom> Indeed. I haven't taken the plunge yet but it's on my radar.
dextaa has joined #ocaml
<companion_cube>
sad it's not standard, but it's just so useful
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
zebrag has joined #ocaml
raskol has quit [Ping timeout: 276 seconds]
rgrinberg has joined #ocaml
raskol has joined #ocaml
vicfred has joined #ocaml
motherfsck has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raskol has quit [Ping timeout: 240 seconds]
rgrinberg has joined #ocaml
aspe has quit [Quit: aspe]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d_bot>
<mbacarella> does the tooling go out of its way to hide names with `__` in them?
<d_bot>
<mbacarella> maybe just module names?
<companion_cube>
cause they're used by dune for wrapped libraries I think
olle has quit [Remote host closed the connection]
<d_bot>
<koche> hello, can anyone help me with threads in OCaml?
<d_bot>
<mbacarella> right. is this __ hiding documented somewhere?
<d_bot>
<octachron> It is the reverse `__` was used for type paths that ought to be hidden before dune.
<companion_cube>
@koche you can always ask
<d_bot>
<koche> i have a syntax error here and don't know how to fix it
<d_bot>
<mbacarella> > When a type is visible under several module-paths, use the shortest one when printing the type’s name in inferred interfaces and error and warning messages. Identifier names starting with an underscore _ or containing double underscores __ incur a penalty of +10 when computing their length.
<d_bot>
<mbacarella> ah, thanks
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
bartholin has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]