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/
alfiee has quit [Ping timeout: 248 seconds]
Inline has joined #ocaml
Inline has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 246 seconds]
malte has quit [Ping timeout: 252 seconds]
malte has joined #ocaml
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #ocaml
Inline has joined #ocaml
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
JuanDaugherty has joined #ocaml
ygrek has joined #ocaml
JuanDaugherty is now known as ColinRobinson
burley has quit [Quit: Leaving]
Haudegen has quit [Quit: Bin weg.]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 252 seconds]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 252 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
emp has quit [Ping timeout: 260 seconds]
emp has joined #ocaml
ygrek has quit [Remote host closed the connection]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
pi3ce has quit [Read error: Connection reset by peer]
pi3ce_ has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
Inline has quit [Ping timeout: 244 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 246 seconds]
Serpent7776 has joined #ocaml
rgrinberg has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
chiselfuse has quit [Ping timeout: 264 seconds]
chiselfuse has joined #ocaml
Inline has joined #ocaml
dhil has joined #ocaml
leah2 has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has quit [Ping timeout: 244 seconds]
leah2 has joined #ocaml
Inline has quit [Ping timeout: 246 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 246 seconds]
bartholin has joined #ocaml
bartholin has quit [Client Quit]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 252 seconds]
<discocaml> <hannes6838> Is it possible to programmatically detect whether we're on macOS in OCaml? There's a "Sys.win32" and "Sys.os_type" -- but both are only Windows vs the rest.
Inline has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
mange has quit [Quit: Zzz...]
<discocaml> <lecondorduplateau> I used uname C binding at time
<discocaml> <holmdunc> Maybe the `OSTYPE` environment variable if you can assume being run in a shell
<discocaml> <holmdunc> Actually, it isn't exported, so not available to a child process, oh well
troydm has joined #ocaml
troydm has quit [Client Quit]
<discocaml> <darrenldl> i just call `uname` and parse the stdout (please don't judge)
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
olle has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
JuanDaugherty has joined #ocaml
JuanDaugherty is now known as ColinRobinson
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 246 seconds]
ColinRobinson is now known as JuanDaugherty
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 276 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
JuanDaugherty is now known as ColinRobinson
Anarchos has joined #ocaml
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 260 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
<discocaml> <yawaramin> there's a PPX https://github.com/ocaml-sys/config.ml
fmira has quit [Remote host closed the connection]
fmira has joined #ocaml
<discocaml> <deepspacejohn> I think Dune can access the OS type in a variable, which you could write to a ml file. (If you're using dune and don't want a PPX dependency.)
<discocaml> <deepspacejohn> Most of the time when I want to statically access something in the build environment, I generate it with a Dune rule.
alfiee has joined #ocaml
trillion_exabyte has quit [Ping timeout: 252 seconds]
trillion_exabyte has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
ygrek has joined #ocaml
<discocaml> <yawaramin> nice: `%{os_type}`
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
olle has quit [Ping timeout: 252 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 260 seconds]
trillion_exabyte has quit [Ping timeout: 252 seconds]
trillion_exabyte has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 265 seconds]
dh` has quit [Read error: Connection reset by peer]
alfiee has joined #ocaml
Inline has quit [Remote host closed the connection]
Inline has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
bartholin has joined #ocaml
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #ocaml
JuanDaugherty has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
rgrinberg has joined #ocaml
dh` has joined #ocaml
JuanDaugherty is now known as ColinRobinson
Tuplanolla has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
Inline has quit [Ping timeout: 252 seconds]
aljazmc has joined #ocaml
alfiee has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has quit [Ping timeout: 268 seconds]
aljazmc has quit [Quit: Leaving]
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
pi3ce has joined #ocaml
kurfen_ has joined #ocaml
serpent has joined #ocaml
kurfen has quit [Ping timeout: 252 seconds]
Serpent7776 has quit [Ping timeout: 252 seconds]
Opus has quit [Ping timeout: 252 seconds]
pi3ce_ has quit [Ping timeout: 252 seconds]
Opus has joined #ocaml
rgrinberg has joined #ocaml
Inline has joined #ocaml
YuGiOhJCJ has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
serpent has quit [Ping timeout: 268 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
fmira has quit [Remote host closed the connection]
fmira has joined #ocaml
fmira has quit [Ping timeout: 264 seconds]
LainExperiments has joined #ocaml
<discocaml> <gdiazlo> This worked for me (taken from https://github.com/gdiazlo/sysinfo/blob/main/lib_sysinfo/macos/dune)
<discocaml> <gdiazlo>
<discocaml> <gdiazlo> `(enabled_if
<discocaml> <gdiazlo> (= %{system} "macosx")) `
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
bartholin has quit [Quit: Leaving]
troydm has joined #ocaml
LainExperiments has quit [Quit: Client closed]
rgrinberg has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]