companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<discocaml> <limp.biskit> ughhh i think something with tcp keepalive is broken in eio
<discocaml> <limp.biskit> i don't want to think about it
<discocaml> <limp.biskit> their i/o stack is incredibly impressive, until it's not
<discocaml> <limp.biskit> 🙂
<discocaml> <yawaramin> i'm seeing this too with ppxlib, but i don't understand, is it a compilation issue? https://github.com/yawaramin/fun-sql/blob/bd156f9cf71b10b51f09bc8c4d9088dedb65a44f/test_ppx/test.expected.ml#L8
Tuplanolla has quit [Quit: Leaving.]
waleee has quit [Ping timeout: 264 seconds]
<discocaml> <anmonteiro> this is done on purpose to avoid unused type warnings
<discocaml> <anmonteiro> this is done on purpose to avoid unused type/value warnings
YuGiOhJCJ has joined #ocaml
jabuxas has joined #ocaml
<discocaml> <yawaramin> oh...but why would we not want unused warnings? eg above i want to use the type `t` and value `ret`. if i didn't, it's a mistake...
toastal has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
jabuxas has quit [Ping timeout: 256 seconds]
landonf has quit [Server closed connection]
landonf has joined #ocaml
jusensei2 has quit [Server closed connection]
jusensei2 has joined #ocaml
toastal has left #ocaml [Disconnected: Replaced by new connection]
toastal has joined #ocaml
<discocaml> <sim642> Maybe because some derivers generate a bunch of different things, not all of whom you might actually use
mbuf has joined #ocaml
<discocaml> <sim642> Although could also use attributes to suppress the warning locally
<discocaml> <sim642> And I have no idea about the first ignored unit function
Serpent7776 has joined #ocaml
<discocaml> <anmonteiro> it uses the type `(_: t)`
<discocaml> <sim642> But the type is created by the user not the deriver, so if the type is unused then the user might want to know. Or if the derived function needs it, the annotation could just be included there
bartholin has joined #ocaml
dreadedfrog has joined #ocaml
dreadedfrog has quit [Ping timeout: 268 seconds]
dreadedfrog has joined #ocaml
cross has quit [Server closed connection]
cross has joined #ocaml
tomku has quit [Remote host closed the connection]
tomku has joined #ocaml
dreadedfrog has quit [Ping timeout: 240 seconds]
dreadedfrog has joined #ocaml
Tuplanolla has joined #ocaml
dreadedfrog has quit [Ping timeout: 268 seconds]
dreadedfrog has joined #ocaml
johnel has quit [Server closed connection]
johnel has joined #ocaml
dhil has joined #ocaml
<discocaml> <darrenldl> you checked with wireshark about the tcp traffic?
waleee has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
waleee has quit [Ping timeout: 268 seconds]
ggb has quit [Server closed connection]
ggb has joined #ocaml
bartholin has quit [Quit: Leaving]
toastal has quit [Ping timeout: 260 seconds]
whereiseveryone has quit [Server closed connection]
whereiseveryone has joined #ocaml
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #ocaml
jmcantrell has quit [Server closed connection]
jmcantrell has joined #ocaml
<discocaml> <getzapped.> Is there any config option to stop ocamlformat from wrapping larger match arm bodies in parentheses? I type this:
<discocaml> <getzapped.> ```ocaml
<discocaml> <getzapped.> | Some num ->
<discocaml> <getzapped.> match Grid.drop ~grid ~col:num ~player:grid.current with
<discocaml> <getzapped.> | Some g -> main_loop ~grid:(Grid.switch g)
<discocaml> <getzapped.> | None ->
<discocaml> <getzapped.> print_endline "Something went wrong";
<discocaml> <getzapped.> main_loop ~grid
<discocaml> <getzapped.> ```
<discocaml> <getzapped.> and the formatter turns it into this
<discocaml> <getzapped.> ```ocaml
<discocaml> <getzapped.> | Some num -> (
<discocaml> <getzapped.> match Grid.drop ~grid ~col:num ~player:grid.current with
<discocaml> <getzapped.> | Some g -> main_loop ~grid:(Grid.switch g)
<discocaml> <getzapped.> | None ->
<discocaml> <getzapped.> print_endline "Something went wrong";
<discocaml> <getzapped.> main_loop ~grid)
<discocaml> <getzapped.> ```
<discocaml> <otini_> I don’t know, but I prefer to always parenthesize (or put in a `let ... in` due to the ambiguity of the syntax.
<discocaml> <otini_> I don’t know, but personally I prefer to always parenthesize (or put in a `let ... in`) due to the ambiguity of the syntax.
<discocaml> <deepspacejohn> Yeah. I realize this doesn't answer the question, but IMO it's best to use `( )`/`begin end`/`let in` anyway because otherwise the syntax is ambiguous.
dinosaure has quit [Ping timeout: 260 seconds]
dinosaure has joined #ocaml
<palainp> §1
<palainp> oups
<discocaml> <limp.biskit> for now i am just gonna leave it and debug later
<discocaml> <limp.biskit> i'm on wsl2 so i'm not sure how i'd even capture packets. i think their stack uses uring as well so i can't rule out kernel version weirdness
<discocaml> <getzapped.> i can live with begin end, but the formatter still turns begin into ( and end into ) in this case. is there something i can do to make it not?
dreadedfrog has quit [Remote host closed the connection]
<discocaml> <deepspacejohn> `exp-grouping=preserve` https://ocaml.org/p/ocamlformat/latest/doc/manpage_ocamlformat.html
<discocaml> <deepspacejohn> You can also use this to experiment with different configurations https://ahrefs.github.io/ocamlformat/
infinity0 has quit [Ping timeout: 256 seconds]
infinity0 has joined #ocaml
toastal has joined #ocaml
Exa has quit [Ping timeout: 256 seconds]
Exa has joined #ocaml
_alix has quit [Server closed connection]
_alix has joined #ocaml
<discocaml> <yawaramin> true, some might. but i don't think ppx_deriving_yojson does? it just generates `of_yojson` or `to_yojson` or similar functions depending on the exact deriving syntax you used. eg you can generate _only_ a serializer by just doing `[@@deriving to_yojson]`. but sure, maybe ppxlib is doing this out of 'an abundance of caution'. the utility is arguable, though, i think.
jabuxas has joined #ocaml
prgbln has quit [Server closed connection]
prgbln has joined #ocaml
toastal has left #ocaml [Error from remote client]
ds-ac has quit [Server closed connection]
ds-ac has joined #ocaml
motherfsck has quit [Ping timeout: 256 seconds]
mbuf has quit [Quit: Leaving]
mal`` has quit [Quit: Leaving]
jabuxas has quit [Ping timeout: 268 seconds]
dhil has quit [Ping timeout: 240 seconds]
mal`` has joined #ocaml
torretto_ has joined #ocaml
torretto has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
tomku has quit [Ping timeout: 268 seconds]
tomku has joined #ocaml
slothby has quit [Server closed connection]
slothby has joined #ocaml
Serpent7776 has quit [Ping timeout: 260 seconds]
patrick_ is now known as patrick
patrick has quit [Changing host]
patrick_ has joined #ocaml