companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
tremon has quit [Quit: getting boxed in]
remexre has quit [Remote host closed the connection]
Tuplanolla has quit [Quit: Leaving.]
<discocaml> <manooch2> Does anyone have any opinions on Jane streets statement saying its at a disadvantage when using OCaml?
<discocaml> <abstract.domain> that's some weird twitter telephone game from a podcast interview
<discocaml> <Max Korp (Frisk)> Wasn't it something about using c interop to avoid gc pressure or something?
<discocaml> <hockletock> https://signalsandthreads.com/performance-engineering-on-hard-mode/#4146 has the context, the fundamental disadvantage is a lack of "mechanical sympathy" for optimizations that require precise control over the exact representation of data and memory (re)use
<discocaml> <hockletock> using c interop was actually one of the escape hatches they found useful, in comparison to e.g. trying to call C from Java ocaml has low overhead
waleee has quit [Ping timeout: 264 seconds]
<companion_cube> @manooch2 what do you mean?!
<discocaml> <Kali> like this article, for instance (which seems to be factually incorrect in some areas...) https://www.efinancialcareers.com/news/2023/11/ocaml-vs-c-high-frequency-trading
dh` has joined #ocaml
dh` has quit [Changing host]
dh` has joined #ocaml
<companion_cube> seems pretty much like what's said on the podcast…
<companion_cube> the "you can't fire me" is more of a joke tho
trev has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
<discocaml> <manooch2> That’s what some worker said or smth, I guess it was just fluff from what someone else said
hexology has quit [Remote host closed the connection]
hexology has joined #ocaml
bibi_ has quit [Quit: Konversation terminated!]
ursa-major has joined #ocaml
<discocaml> <bluddy5> Great illustration of how fake news is formed. An employee makes a fairly minor comment on a technical podcast, and that becomes the headline of an article, which sets the tone for discussions on social networks.
peony has quit [Read error: Connection reset by peer]
<greenbagels> octachron: is your answer here still accurate https://stackoverflow.com/a/71718980
<octachron> yes
octachron has quit [Quit: ZNC 1.8.2 - https://znc.in]
octachron has joined #ocaml
Serpent7776 has joined #ocaml
<greenbagels> thanks for the prompt reply!
Tuplanolla has joined #ocaml
bartholin has joined #ocaml
waleee has joined #ocaml
Anarchos has joined #ocaml
<Anarchos> how to build dune with the -g flags applied on .c files compilation ?
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Inline has quit [Quit: Leaving]
Inline has joined #ocaml
jyc__ has quit [Quit: Connection closed for inactivity]
bartholin has quit [Quit: Leaving]
bartholin has joined #ocaml
dnh has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
<discocaml> <yanek.sakura> why the stdlib is lacking so much?
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
azimut has joined #ocaml
<discocaml> <octachron> I don't know what you mean by "lacking so much" .The `stdlib` is designed by consensus, and it only aims to provide universal modules that are used by everyone. Non-universal modules are provided by other libraries.
dnh has joined #ocaml
<discocaml> <octachron> There is also the fact that the stdlib is a slow moving library, with limited review time, and very(too) strong backward-compatibility guarantees.
trev has quit [Quit: trev]
trev has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Ping timeout: 252 seconds]
dnh has joined #ocaml
parataxis has joined #ocaml
neiluj has joined #ocaml
<neiluj> Hi! So I've got a loop (recursive function) that keeps allocating memory on the heap (let rec loop (x1, x2, x3, .., x6) = if cond then (x1, .., x6) else loop (f (x1, x2, x3, ..., x6))) , but actually the memory consumption should be constant: (only keep x1, ..., x6)
<neiluj> the function f allocates stuff to compute the new x's
<neiluj> but when running the function, the memory keeps growing, the GC sometimes runs but the used memory never shrinks, it only plateaus and then grows again
parataxis has quit [Quit: Quit]
<octachron> Check the reachable words size of your function arguments? But otherwise it mostly sounds like you are overlooking a GC root somewhere.
_whitelogger has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<neiluj> thnaks, gonna check the reachable words size of functions arguments
<neiluj> what do you mean by "overlooking a GC root"?
<neiluj> the functions called in the loop are ctypes bindings
dhil has joined #ocaml
<neiluj> wow that's weird the issue seems to be gone but I don't get why
waleee has quit [Ping timeout: 256 seconds]
bartholin has quit [Remote host closed the connection]
<neiluj> nice 'cause I was seriously reconsidering my choice of ocaml for numerical stuff :)
bartholin has joined #ocaml
Anarchos has joined #ocaml
neiluj has quit [Ping timeout: 250 seconds]
azimut has joined #ocaml
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
alexherbo2 has quit [Ping timeout: 250 seconds]
dnh has joined #ocaml
Serpent7776 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ursa-major has quit [Ping timeout: 276 seconds]
dnh has joined #ocaml
waleee has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trev has quit [Quit: trev]
dnh has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
alexherbo2 has joined #ocaml
Anarchos has joined #ocaml
<Anarchos> I need to identify where in code a call to 'dune exec' launches a 'spawn_unix' with 'ocamlc.opt -config' program.
waleee has quit [Ping timeout: 268 seconds]
Serpent7776 has quit [Ping timeout: 245 seconds]
dhil has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Remote host closed the connection]
<dh`> grep is your friend
<Anarchos> dh` i try but it is really spageti code…
<companion_cube> maybe `strace -k`?
<Anarchos> i have no k option on strace
bartholin has quit [Quit: Leaving]
<companion_cube> Ah well
<Anarchos> i found two occurences where "ocamlc -config" is launched : one in dune_load and one in ocaml_toolchain.
<Anarchos> Those two are laucnhed through Process.run, which calls spawn_unix().
Anarchos has quit [Quit: Vision[]: i've been blurred!]
chrisz has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]