<darchitect>
yeah I work as a ML Engineer and am not really impressed with LLMs, that's y I came here to see if anyone get me excited about the progress... In my mind reasoning is search... search through the possible programs that optimize a goal and fit a tiven type. We don't have anything close yet ... at least not to my knowledge
<darchitect>
given *
neiluj has joined #ocaml
<neiluj>
hi
<neiluj>
got this monad https://bpa.st/NKTA for stack memory management (ltop is the stack pointer at a point of time, gerepilecopy cleans the stack from ltop to stack pointer and returns the given variable), but would like to postpone the gerepilecopy call to the end of the computation
<neiluj>
is there an easy way to do so?
<neiluj>
there's this alternative way https://bpa.st/3UUA also (without monad)
waleee has quit [Ping timeout: 256 seconds]
chrisz has quit [Ping timeout: 276 seconds]
chrisz has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ania123 has joined #ocaml
gentauro has quit [Ping timeout: 268 seconds]
ania123 has quit [Quit: Client closed]
bartholin has joined #ocaml
trev has joined #ocaml
neiluj has quit [Quit: Client closed]
Serpent7776 has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
bartholin has quit [Quit: Leaving]
gahr has quit [Remote host closed the connection]
gahr has joined #ocaml
dnh has joined #ocaml
John_Ivan has quit [Ping timeout: 260 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rito has joined #ocaml
szkl has joined #ocaml
dnh has joined #ocaml
bartholin has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
azimut has joined #ocaml
edr has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
szkl has joined #ocaml
darchitect has quit [Quit: WeeChat 4.1.1]
waleee has joined #ocaml
rito has quit [Ping timeout: 256 seconds]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
rito has joined #ocaml
<discocaml>
<akashi_the_mechanic> Is it expected that alcotest doesn't print anything if I run `dune test` again after a successful test run? I noticed that I need to run `dune clean` before running `dune test` again for alcotest to print the result after a successful test run.
<hannes>
akashi_the_mechanic: you can also use "dune runtest --force" instead of a clean
<discocaml>
<akashi_the_mechanic> Thanks, it works. Still wierd decision imo. When people see nothing on the screen, they might assume somethings go wrong.
<hannes>
I might have the wrong impression about the
<hannes>
amount of work you did after all that time, but it certainly has nothing to
<hannes>
do with your gender.
<hannes>
oh sorry
<hannes>
akashi_the_mechanic: I agree
rito has quit [Ping timeout: 255 seconds]
<discocaml>
<deepspacejohn> dune only runs runs tests if they changed or failed previously. So running a test successfully and then re-running again is a no-op. I don't know exactly what went into the design decision, except that dune also behaves the same way regarding builds. There's also the old unix convention of only printing on failure, not success (with unix you can usually assume that no output = success).
<discocaml>
<deepspacejohn> and, FWIW, dune's built-in expect or cram tests never print on success either way, even when re-run.
rito has joined #ocaml
rgrinberg has joined #ocaml
waleee has joined #ocaml
cimento has quit [Quit: WeeChat 4.1.2]
cimento has joined #ocaml
<rage>
discocaml: is there a way to force dune to rerun the tests regardless of success/failure?
<rage>
also, hi
<rgrinberg>
you could make the test action depend on (universe)
<rage>
perfect, that worked. thanks
<rage>
so I have another testing question. I've been trying to get ppx_inline_test working but as external tests (as in they run in the test/ folder) and I've had no luck
<rage>
I followed the guide on the dune website, did (library (name proj) (inline_tests) (preprocess (pps ppx_inline_test))), it builds the library, but then how do I run it?
trev has quit [Quit: trev]
kurfen_ has joined #ocaml
rito is now known as ritog
kurfen has quit [Ping timeout: 256 seconds]
ritog has quit [Quit: Leaving]
John_Ivan is now known as Lim_Fao
Lim_Fao is now known as Der_Dumm_Nemetzk
Der_Dumm_Nemetzk is now known as DerDummNemetzkii
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
remexre has joined #ocaml
<remexre>
if I have code like `let a = match x with Foo y -> Foo y | Bar -> z in a == x`, is it legal for the OCaml compiler to optimize it to `let a = match x with Foo _ -> x | Bar -> z in a == x`?
<discocaml>
<._null._> I want to say yes
<dh`>
anyone know offhand how to get sub-second timing with lwt? it has timeouts but they seem to only work in integer seconds
<dh`>
remexre: why wouldn't it be?
<remexre>
dh`: in the original version, that expression should evaluate to false; in the optimized one, it's true when x matches (Foo _)
<remexre>
note (==), not (=)
<dh`>
oh, ==. hmm
<discocaml>
<s.alad> anyone doing advent of code in OCaml?
<dh`>
my inclination is that if you use == you can't expect things to behave sensibly, but that's not actually fair :-)