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/
oriba has joined #ocaml
mange has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 246 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
burley has joined #ocaml
burley has quit [Ping timeout: 276 seconds]
Inline has quit [Ping timeout: 248 seconds]
burley has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Inline has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
burley has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
anpad has joined #ocaml
alfiee has quit [Ping timeout: 276 seconds]
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
f[x] has joined #ocaml
anpad has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
f[x] has quit [Ping timeout: 264 seconds]
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
alfiee has joined #ocaml
anpad has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 272 seconds]
anpad has joined #ocaml
anpad has quit [Client Quit]
anpad has joined #ocaml
alfiee has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
alfiee has quit [Ping timeout: 245 seconds]
Inline has quit [Ping timeout: 268 seconds]
anpad has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
anpad has quit [Client Quit]
anpad has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
cr1901 has quit [Ping timeout: 268 seconds]
cr1901 has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
anpad has quit [Ping timeout: 260 seconds]
anpad has joined #ocaml
Serpent7776 has joined #ocaml
fmira has joined #ocaml
fmira has quit [Remote host closed the connection]
fmira has joined #ocaml
dhil has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 276 seconds]
fmira has quit [Remote host closed the connection]
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
alfiee has joined #ocaml
Haudegen has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 276 seconds]
neiluj has joined #ocaml
<neiluj> hi! why `ocamlfind list | grep llvm` does not list llvm.scalar_opts?
<neiluj> ok seems not to be available with the latest version of LLVM (v17)
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
mange has quit [Quit: Zzz...]
alfiee has joined #ocaml
fmira has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
<discocaml> <hannes6838> Thanks, in the end I called "uname -s".
olle has joined #ocaml
alfiee has joined #ocaml
<rustyne> hannes6838: otherwise `Config.system` from `compiler-libs.common` (or the one wrapped in `compilerlibs`), but that might be a big dependency for that one purpose
alfiee has quit [Ping timeout: 252 seconds]
dhil has quit [Ping timeout: 268 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
Haudegen has quit [Quit: Bin weg.]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
neiluj has quit [Quit: WeeChat 4.4.3]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
<discocaml> <noahtheduke> i see that ocaml doesn't have guard patterns in matches. i found ppx_guard_patterns which seems to have been taken down from opam at some point. are there any other ways to implement guards in pattern matching?
<companion_cube> You mean | pat when expr ->...?
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
<discocaml> <noahtheduke> oh huh. i missed those. i searched "pattern guard ocaml" and only saw stack overflow answers saying that guards weren't ported to ocaml 4
myrkraverk_ has joined #ocaml
dhil has joined #ocaml
myrkraverk has quit [Ping timeout: 268 seconds]
<olle> google + stackoverflow is out, LLM is in
<olle> Which is ironic considering LLM is trained on SO
Inline has joined #ocaml
<discocaml> <octachron> @noahtheduke , did you have a link to where you read this misinformation?
<olle> 2014
<discocaml> <noahtheduke> i see that the "basic data types" page says "guard" on it, i must have mistyped when i searched the document earlier
<olle> SO answers need to have some kind of "rot" or warning for being that old.
<discocaml> <noahtheduke> annoyed that i missed it, thanks for the help
<discocaml> <leviroth> I don’t think the comment is wrong or outdated, is it? It appears to be referring to a more specific/powerful feature than ocaml’s existing “when” clause.
<olle> Perhaps, but still
<olle> If you check what the author wants to achieve in the question.
<olle> "when y > 0"
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 245 seconds]
<discocaml> <octachron> Well, it is a question about an OCaml 3 camlp4 extension from ten years ago, which is creating confusion about a vanilla OCaml feature. The comment is confusing even if it is not technically wrong.
infinity0 has quit [Ping timeout: 252 seconds]
f[x] has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 276 seconds]
infinity0 has joined #ocaml
<discocaml> <yawaramin> so the first answer there shows the `when` syntax while claiming it doesn't exist. lol
<olle> What's the name of that google pay-for alternative?
<olle> Wonder what it would show
<discocaml> <yawaramin> oh actually i'm wrong, the pattern 'guard' shown there is binding a variable in the guard clause and then making it available inside the branch body. that's whack...
Serpent7776 has quit [Ping timeout: 268 seconds]
<companion_cube> Guards in ocaml are not exactly in the pattern, either
JuanDaugherty has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
JuanDaugherty is now known as ColinRobinson
olle has quit [Ping timeout: 244 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
Anarchos has joined #ocaml
<discocaml> <sim642> There's also this: https://github.com/sim642/ppx_viewpattern. But I don't think anybody actually uses it
Haudegen has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
bartholin has joined #ocaml
dhil has quit [Ping timeout: 268 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
Tuplanolla has joined #ocaml
ygrek has joined #ocaml
f[x] has quit [Ping timeout: 264 seconds]
ygrek has quit [Remote host closed the connection]
Inline has quit [Quit: Leaving]
alfiee has joined #ocaml
ygrek has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Serpent7776 has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
YuGiOhJCJ has joined #ocaml
rgrinberg has joined #ocaml
Inline has joined #ocaml
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhil has joined #ocaml
ohperitel_ has quit [Quit: ZNC 1.9.0 - https://znc.in]
ohperitel has joined #ocaml
dhil has quit [Ping timeout: 246 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
mange has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
wbooze has quit [Ping timeout: 265 seconds]
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
Serpent7776 has quit [Ping timeout: 268 seconds]
wbooze has joined #ocaml
rgrinberg has joined #ocaml
wbooze has quit [Remote host closed the connection]
bartholin has quit [Quit: Leaving]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
wbooze has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has joined #ocaml
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
<dh`> haskell has a syntax for letting you do additional bind-type matches in guards, but the cost of that is that you apparently can't have multiple cases with one code block
alfiee has quit [Ping timeout: 268 seconds]