<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?
<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)]
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