Question about an error with ports

2022-03-09 Thread Zelphir Kaltstahl
Hello Guile Users! I have some code at https://notabug.org/ZelphirKaltstahl/guile-examples/src/63af5250aa5a45d68bc6bd2d6193d2a6fb127f24/shell/example-04-using-popen-get-out-and-error-with-ports.scm: (import (ice-9 popen) (ice-9 textual-ports) (ice-9 binary-ports)

Re: with-exception-handler experiment

2022-03-09 Thread Jérémy Korwin-Zmijowski
Oh thank you! I missed this even after reading the code dozens of times haha Cheers!

Re: with-exception-handler experiment

2022-03-09 Thread Olivier Dion via General Guile related discussions
On Tue, 08 Mar 2022, Jérémy Korwin-Zmijowski wrote: > Hello Guilers, > > Hope you are all fine and safe. > > In the following code, I have a test which should check if my result is > correct. > > If you change the expected string value "1 run, 1 failed" the assert > procedure does not throw. >

Re: Shell commands with output to string

2022-03-09 Thread Josselin Poiret
Hello Zelphir, Zelphir Kaltstahl writes: > I have questions regarding this workaround: > > Can you explain how and why this works? I have tried to make sense of it and > here are my notes so far (reference: >

Re: Guile optimizations slowing down the program?

2022-03-09 Thread Dr. Arne Babenhauserheide
Jean Abou Samra writes: >>> There is also a felicitous feedback effect in that because the >>> baseline compiler is much smaller than the CPS compiler, it takes less >>> time to macro-expand — >>> https://wingolog.org/archives/2020/06/03/a-baseline-compiler-for-guile > > As far as I

Re: Guile optimizations slowing down the program?

2022-03-09 Thread Jean Abou Samra
> Le 9 mars 2022 à 08:53, "Dr. Arne Babenhauserheide" a écrit > : > > > Maxime Devos writes: >> Jean Abou Samra schreef op wo 09-03-2022 om 00:31 [+0100]: >>> In summary, the less Guile optimizes, the faster LilyPond runs. Is that >>> something expected? >> >> I don't think so, but I

Re: Guile optimizations slowing down the program?

2022-03-09 Thread Dr. Arne Babenhauserheide
Maxime Devos writes: > Jean Abou Samra schreef op wo 09-03-2022 om 00:31 [+0100]: >> In summary, the less Guile optimizes, the faster LilyPond runs. Is that >> something expected? > > I don't think so, but I don't have a clue how this happens ... Do I understand it correctly that Lilypond has