00:24
Haudegen has quit [Ping timeout: 264 seconds]
00:24
Tuplanolla has quit [Quit: Leaving.]
00:32
adanwan has quit [Remote host closed the connection]
00:34
adanwan has joined #ocaml
00:37
waleee has quit [Ping timeout: 244 seconds]
00:46
Serpent7776 has quit [Read error: Connection reset by peer]
00:48
bobo_ has joined #ocaml
00:48
spip has quit [Ping timeout: 248 seconds]
01:18
williewi` has joined #ocaml
01:47
azimut has joined #ocaml
02:25
adanwan has quit [Remote host closed the connection]
02:25
adanwan has joined #ocaml
02:49
chrisz has quit [Ping timeout: 252 seconds]
02:51
chrisz has joined #ocaml
03:06
tizoc has quit [Quit: Coyote finally caught me]
03:12
tizoc has joined #ocaml
03:16
williewi` has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
03:36
zebrag has joined #ocaml
03:37
zebrag has quit [Client Quit]
03:38
zebrag has joined #ocaml
03:43
zebrag has quit [Client Quit]
03:52
zebrag has joined #ocaml
03:53
zebrag has quit [Client Quit]
03:57
John_Ivan_ has quit [Ping timeout: 252 seconds]
05:31
azimut has quit [Remote host closed the connection]
05:31
azimut has joined #ocaml
05:44
azimut has quit [Remote host closed the connection]
05:44
azimut has joined #ocaml
07:57
olle has joined #ocaml
08:00
hrberg has joined #ocaml
08:00
wonko_ has joined #ocaml
09:15
wonko_ has quit [Ping timeout: 248 seconds]
09:28
olle has quit [Ping timeout: 268 seconds]
09:33
jlrnick has joined #ocaml
09:51
Tuplanolla has joined #ocaml
09:57
wonko_ has joined #ocaml
10:00
jlrnick has quit [Ping timeout: 264 seconds]
10:02
spip has joined #ocaml
10:02
bobo_ has quit [Ping timeout: 268 seconds]
10:13
adanwan has quit [Remote host closed the connection]
10:14
adanwan has joined #ocaml
10:25
waleee has joined #ocaml
10:35
waleee has quit [Ping timeout: 248 seconds]
10:36
azimut has quit [Remote host closed the connection]
10:36
azimut has joined #ocaml
10:37
olle has joined #ocaml
10:46
wonko_ has quit [Ping timeout: 264 seconds]
10:55
bartholin has joined #ocaml
11:15
bartholin has quit [Ping timeout: 252 seconds]
11:28
bartholin has joined #ocaml
11:29
ansiwen has joined #ocaml
11:40
wonko_ has joined #ocaml
11:42
Serpent7776 has joined #ocaml
11:52
jlrnick has joined #ocaml
11:56
jlrnick has quit [Ping timeout: 244 seconds]
11:56
wonko_ has quit [Ping timeout: 244 seconds]
12:03
adanwan has quit [Ping timeout: 258 seconds]
12:05
adanwan has joined #ocaml
12:11
adanwan has quit [Remote host closed the connection]
12:11
adanwan has joined #ocaml
12:28
wonko_ has joined #ocaml
12:34
wonko_ has quit [Ping timeout: 244 seconds]
12:49
ansiwen has joined #ocaml
12:51
ansiwen has quit [Client Quit]
12:52
John_Ivan_ has joined #ocaml
12:53
ansiwen has joined #ocaml
13:10
wonko_ has joined #ocaml
13:14
bartholin has quit [Ping timeout: 244 seconds]
13:20
jlrnick has joined #ocaml
13:23
wonko_ has quit [Ping timeout: 244 seconds]
13:26
jlrnick has quit [Ping timeout: 248 seconds]
13:28
bartholin has joined #ocaml
13:34
bartholin has quit [Ping timeout: 252 seconds]
14:08
bartholin has joined #ocaml
15:13
John_Ivan_ has quit [Read error: Connection reset by peer]
15:15
John_Ivan has joined #ocaml
15:25
bobo_ has joined #ocaml
15:25
spip has quit [Ping timeout: 268 seconds]
15:29
szkl has quit [Quit: Connection closed for inactivity]
15:46
oriba has joined #ocaml
15:58
wonko_ has joined #ocaml
16:53
<
olle >
Did I already ask about good logging tool? For tracing
16:55
zebrag has joined #ocaml
16:58
<
olle >
The packages you requested declare the following system dependencies. Please make sure they are installed before retrying: camlp4-extra
16:58
<
olle >
[ERROR] No package named camlp4-extra found.
17:06
<
olle >
dolog installs
17:23
<
olle >
But how to I log to file...?
17:24
<
hannes >
olle: I'm pretty happy with "logs" (and logs-syslog if you've a syslog sink in production)
17:26
<
olle >
hannes: trying out dolog now :)
17:32
tizoc has quit [Quit: Coyote finally caught me]
17:32
wonko_ has quit [Ping timeout: 268 seconds]
17:38
tizoc has joined #ocaml
17:58
<
companion_cube >
just use `logs`
17:59
<
olle >
companion_cube: what's that?
17:59
<
olle >
third on the list :|
17:59
<
companion_cube >
like hannes said, it's the library you should use
18:00
<
companion_cube >
I don't think that's an ordered list…
18:00
<
olle >
well, what the hell is it? because it's top google
18:00
<
companion_cube >
just a list
18:00
<
olle >
speaking of "maturity of eco-system" xD
18:02
<
companion_cube >
I'm making a PR to put it first :p
18:03
<
olle >
Yeah, not getting the results I'm expecting with dolog, sigh, moving to logs, thanks
18:06
<
olle >
Error: Unknown package logs!
18:07
<
olle >
dune: unknown command `search'.
18:07
<
companion_cube >
it's in opam
18:07
<
companion_cube >
opam search logs
18:07
<
companion_cube >
opam install logs
18:07
<
olle >
I'm an idiot
18:07
<
olle >
Of course haha
18:12
<
olle >
Ehrm, seems a bit complex
18:12
<
olle >
Each log requires a lambda? o0
18:19
<
olle >
Easy enough to alias, I guess
18:30
<
companion_cube >
it's for perf reasons, it works very nicely
18:30
<
companion_cube >
Logs.err (fun m->m "oh no %d" 42);
18:41
<
olle >
Error: Unbound module Fmt_tty
18:41
<
olle >
Example is not complete
18:41
<
companion_cube >
there are optional deps, did you install `fmt`?
18:41
<
companion_cube >
the simpler example is to just use `Logs.format_reporter()` iirc
18:42
<
olle >
Yeah, they need one of those haha
18:45
<
olle >
I'm including fmt in dune, but
18:46
<
olle >
Error: No implementations provided for the following modules: Fmt_tty referenced from lib/pholyglot.cmxa(Pholyglot__Test)
18:46
<
olle >
Gonna google that
18:46
<
companion_cube >
"logs.fmt" I think
18:46
<
companion_cube >
oh wait, that's the docs of `Logs_cli`, maybe it's a side library too.
18:47
<
companion_cube >
you need logs.cli in your dune file, most likely
18:47
<
olle >
Error: Library "logs.cli" in /home/olle/.opam/default/lib/logs is hidden
18:48
<
companion_cube >
it might also require cmdliner
18:48
<
companion_cube >
bunzli like these optional deps, ugh
18:49
<
olle >
including cmdliner still gives the fmt_tty error :d
18:51
<
olle >
Works now, thanks to a reported issue
18:53
<
olle >
Term.(const setup_log $ Fmt_cli.style_renderer () $ Logs_cli.level ())
18:53
<
olle >
What even is this
18:55
<
olle >
What's const?
18:56
<
olle >
Is $ same as |> ?
18:56
<
olle >
Back to dolog it is, %$#$%#$%#$%$
18:57
* olle
should pay more attention to the emotional regulation video in the background...
19:01
<
sim642 >
companion_cube, I haven't used logs, immediately thought about ppx-ing that and of course there are ppxs for that
19:02
<
sim642 >
But actually I think one could do even better
19:02
<
olle >
sim642: which ppx?
19:02
<
sim642 >
olle, logs-ppx, but it won't help you set things up, just write that one logging line slightly neater
19:03
<
sim642 >
Anyway, I think it'd be possible to write a logging library that on its own doesn't try to be super efficient and does formatting without the closure
19:04
<
sim642 >
But have a ppxlib special_function ppx to rewrite such function calls into other function calls that use the closure
19:04
<
sim642 >
Or even something inlined
19:04
<
sim642 >
The beauty would be that the same code works with and without the ppx
19:04
<
sim642 >
But if you want performance, you just use the ppx with no code change
19:05
<
sim642 >
I might do this in a project of mine which has its own tracing stuff anyway, but always under a stupid "if M.tracing then M.trace ..." guard
19:08
<
olle >
Who cares about performance? If you don't want logging you'll just turn it off?
19:08
<
olle >
What am I missing?
19:08
<
sim642 >
it's the turning off part
19:08
<
sim642 >
If you just have "log ..." then that function will always get called
19:08
<
sim642 >
And if you use more involved pretty-printing inside that, then all of that also
19:09
<
sim642 >
That's eager evaluation for you
19:10
<
olle >
That makes sense, yes
19:22
<
olle >
Yep, managed to solve the bug with the logging finally
19:28
John_Ivan has quit [Read error: Connection reset by peer]
19:28
azimut has quit [Ping timeout: 258 seconds]
19:30
John_Ivan has joined #ocaml
20:44
waleee has joined #ocaml
21:02
wonko_ has joined #ocaml
21:09
wonko_ has quit [Ping timeout: 248 seconds]
21:25
bartholin has quit [Quit: Leaving]
21:37
wingsorc has joined #ocaml
21:49
Haudegen has joined #ocaml
22:01
bobo_ has quit [Ping timeout: 252 seconds]
22:01
bobo_ has joined #ocaml
22:08
Serpent7776 has quit [Ping timeout: 244 seconds]
22:32
daimrod1 has quit [Ping timeout: 268 seconds]
22:42
daimrod1 has joined #ocaml
22:44
olle has quit [Ping timeout: 268 seconds]
23:18
wingsorc has quit [Quit: Leaving]
23:24
wingsorc has joined #ocaml
23:31
Tuplanolla has quit [Ping timeout: 264 seconds]