companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Tuplanolla has quit [Quit: Leaving.]
xgqt has quit [Ping timeout: 256 seconds]
xgqt has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
quernd has quit [Quit: Ping timeout (120 seconds)]
quernd has joined #ocaml
motherfsck has joined #ocaml
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp has joined #ocaml
chrisz has quit [Ping timeout: 248 seconds]
chrisz has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 255 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rom15041 is now known as rom1504
zebrag has quit [Quit: Konversation terminated!]
waleee has quit [Ping timeout: 255 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
gravicappa has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
ansiwen has joined #ocaml
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> <octachron> https://v2.ocaml.org/manual/comp.html: `-short-paths`
<d_bot> <octachron> You cannot use directives outside of the toplevel/REPL.
trev has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
rgrinberg has joined #ocaml
<d_bot> <mbacarella> > -short-paths
<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…]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
brettgilio has quit [Ping timeout: 276 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
gdd has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
vicfred has quit [Remote host closed the connection]
vicfred has joined #ocaml
motherfsck has quit [Quit: quit]
motherfsck has joined #ocaml
adanwan_ has joined #ocaml
adanwan has quit [Ping timeout: 240 seconds]
gdd has joined #ocaml
adanwan_ has quit [Ping timeout: 240 seconds]
adanwan has joined #ocaml
nated has joined #ocaml
azimut has joined #ocaml
Haudegen has quit [Ping timeout: 244 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
meinside has quit [Quit: Connection closed for inactivity]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]