Re: “Too many root sets” when calling compile frequently

2022-08-20 Thread Maxime Devos
On 20-08-2022 13:08, Jean Abou Samra wrote: Thanks for your reply. I didn’t dig into the history yet, but I might do it later. For now, I have a question. What is the actual purpose of the GC_add_roots call? Is it just to give eternal protection to the objects pointed to by pointers in the me

Re: “Too many root sets” when calling compile frequently

2022-08-20 Thread Jean Abou Samra
> Le 19 août 2022 à 12:19, Maxime Devos a écrit : > >  >> On 19-08-2022 00:18, Jean Abou Samra wrote: >> Hi, >> >> Calling the Guile compiler often causes this BDWGC error: “Too >> many root sets”. >> >> scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do ((i 0 >> (1+ i)

Re: “Too many root sets” when calling compile frequently

2022-08-19 Thread Maxime Devos
On 19-08-2022 00:18, Jean Abou Samra wrote: Hi, Calling the Guile compiler often causes this BDWGC error: “Too many root sets”. scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do ((i 0 (1+ i))) ((eqv? i n)) expr expr* ...)) scheme@(guile-user)> (use-modules (system base c

Re: “Too many root sets” when calling compile frequently

2022-08-19 Thread Jean Abou Samra
Le 19/08/2022 à 00:33, Jean Abou Samra a écrit : Le 19/08/2022 à 00:18, Jean Abou Samra a écrit : Calling the Guile compiler often causes this BDWGC error: “Too many root sets”. scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do ((i 0 (1+ i))) ((eqv? i n)) expr expr* ...))

Re: “Too many root sets” when calling compile frequently

2022-08-18 Thread Jean Abou Samra
Le 19/08/2022 à 00:18, Jean Abou Samra a écrit : Calling the Guile compiler often causes this BDWGC error: “Too many root sets”. scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do ((i 0 (1+ i))) ((eqv? i n)) expr expr* ...)) scheme@(guile-user)> (use-modules (system base co

“Too many root sets” when calling compile frequently

2022-08-18 Thread Jean Abou Samra
Hi, Calling the Guile compiler often causes this BDWGC error: “Too many root sets”. scheme@(guile-user)> (define-syntax-rule (repeat n expr expr* ...) (do ((i 0 (1+ i))) ((eqv? i n)) expr expr* ...)) scheme@(guile-user)> (use-modules (system base compile)) scheme@(guile-user)> (repeat 1 (c