Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
waleee has quit [Ping timeout: 260 seconds]
jabuxas has quit [Ping timeout: 268 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
jabuxas has joined #ocaml
zanetti has quit [Quit: zanetti]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ocaml
jabuxas has quit [Ping timeout: 256 seconds]
torretto has quit [Ping timeout: 260 seconds]
torretto has joined #ocaml
Serpent7776 has joined #ocaml
<discocaml> <peuk> Is there a standard way of getting the number of "cores" of the machine in OCaml?
<discocaml> <darrenldl> assuming you are asking in the context of ocaml 5, meaningfully this will give you the answer <https://v2.ocaml.org/releases/5.1/api/Domain.html#VALrecommended_domain_count>
<discocaml> <darrenldl> (if you are asking for the purpose of scheduling)
<discocaml> <darrenldl> if you are actually interested in the number of physical cores, i don't know off the top of my head
<discocaml> <peuk> Now, it is not related to OCaml 5. I have a program that starts external parallel processes. The number of processes is configurable, but I wanted to take as default the number of cores (physical or HT is not really important).
<discocaml> <peuk> No, it is not related to OCaml 5. I have a program that starts external parallel processes. The number of processes is configurable, but I wanted to take as default the number of cores (physical or HT is not really important).
<discocaml> <darrenldl> right gotcha
<discocaml> <darrenldl> linux? or you want cross os?
<discocaml> <peuk> Ideally cross OS, yup. This is why I hoped for a solution in the standard library.
<discocaml> <darrenldl> ah forgot about this completely <https://ocaml.org/p/cpu/2.0.0/doc/Cpu/index.html> - the creator uses it for their fork (and join?) library parany
<discocaml> <peuk> Oh, cool!
<discocaml> <peuk> Thanks
<discocaml> <darrenldl> standard library seems devoid of direct mentioning of core count, so that package might be your best bet
<discocaml> <peuk> Indeed
olle has joined #ocaml
bartholin has joined #ocaml
<reynir> I am curious how people keep ocaml ci happy: there is a library that has a (non-public) example binary that is not used in tests either. It depends on cmdliner which neither the library nor the tests depend on. CI runs build @install @check @runtest, and the dune build @check part tries to check the example binary.
<reynir> Now, dune build @check will fail if cmdliner is not installed. Do I add cmdliner as a dependency in the opam file? As a {with-test} dependency? Furthermore, the example binary only works with certain versions of cmdliner, so version constraints could propagate to dependent packages if they are installed with --with-test
dh` has quit [Ping timeout: 260 seconds]
dnh has joined #ocaml
dnh has quit [Client Quit]
neiluj has joined #ocaml
n8n has joined #ocaml
nickiminjaj has joined #ocaml
nickiminjaj has quit [Changing host]
nickiminjaj has joined #ocaml
dh` has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
sroso has quit [Quit: Leaving :)]
<discocaml> <regularspatula> I have used a dev opam package for this sort of thing, if I understand you correctly
<discocaml> <andreypopp> hannes: @etiennemillon I was specifically interested in wireguard in userspace via ocaml
dnh has joined #ocaml
bartholin has quit [Quit: Leaving]
alexherbo2 has joined #ocaml
nickiminjaj has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
nickiminjaj has joined #ocaml
nickiminjaj has quit [Client Quit]
alexherbo2 has quit [Remote host closed the connection]
cross has joined #ocaml
jabuxas has joined #ocaml
Anarchos has joined #ocaml
jabuxas has quit [Ping timeout: 268 seconds]
jabuxas has joined #ocaml
waleee has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
bartholin has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
neiluj has quit [Quit: WeeChat 4.2.1]
jabuxas has quit [Ping timeout: 256 seconds]
jabuxas has joined #ocaml
jabuxas has quit [Ping timeout: 255 seconds]
n8n has quit [Quit: WeeChat 4.2.2]
Serpent7776 has quit [Ping timeout: 268 seconds]
bartholin has quit [Quit: Leaving]
jabuxas has joined #ocaml
n8n has joined #ocaml
<discocaml> <nchu> Hi guys! I'm working with some of my classmates on this ocaml extension for vscode. We used menage to make bindings for ocaml -> js (for the extension) - We have created a seperate branch that includes raylib/bogue and we were wondering if it was possible to integrate our bogue with our vscode extension?
Tuplanolla has joined #ocaml
sroso has joined #ocaml