Re: crashes with Fibers

2018-07-19 Thread Amirouche Boubekki
https://github.com/wingo/fibers/issues/21 Le mar. 17 juil. 2018 à 20:17, Clément Lassieur a écrit : > Clément Lassieur writes: > > > Ludovic Courtès writes: > > > >> Hello Clément, > >> > >> Clément Lassieur skribis: > >> > >>> ;; bad > >>> (define (test4) > >>> (run-fibers > >>

Re: crashes with Fibers

2018-07-17 Thread Clément Lassieur
Clément Lassieur writes: > Ludovic Courtès writes: > >> Hello Clément, >> >> Clément Lassieur skribis: >> >>> ;; bad >>> (define (test4) >>> (run-fibers >>>(lambda () >>> (spawn-fiber >>> (lambda () >>> (let ((channel (make-channel))) >>>

Re: crashes with Fibers

2018-07-02 Thread Clément Lassieur
Ludovic Courtès writes: > Hello Clément, > > Clément Lassieur skribis: > >> ;; bad >> (define (test4) >> (run-fibers >>(lambda () >> (spawn-fiber >> (lambda () >> (let ((channel (make-channel))) >> (call-with-new-thread >>

Re: crashes with Fibers

2018-07-02 Thread Ludovic Courtès
Hello Clément, Clément Lassieur skribis: > ;; bad > (define (test4) > (run-fibers >(lambda () > (spawn-fiber > (lambda () > (let ((channel (make-channel))) > (call-with-new-thread >(lambda () > (p

Re: crashes with Fibers

2018-07-02 Thread Clément Lassieur
Hi Amirouche, Amirouche Boubekki writes: >> You test5 code should definitly work. Otherwise, it requires to pre-allocate >> as many thread as you need before you know you will them. May be we can look >> at it backward and say, that allocating a pool of threads in advance is more >> interesting

Re: crashes with Fibers

2018-07-01 Thread Amirouche Boubekki
On 2018-07-02 00:41, Amirouche Boubekki wrote: On 2018-07-02 00:32, Amirouche Boubekki wrote: On 2018-07-01 15:09, Clément Lassieur wrote: Amirouche Boubekki writes: Sorry, I did not read the code. What are you trying to achieve? Within a fiber, I need to spawn several Guile-Git clones in

Re: crashes with Fibers

2018-07-01 Thread Amirouche Boubekki
On 2018-07-02 00:32, Amirouche Boubekki wrote: On 2018-07-01 15:09, Clément Lassieur wrote: Amirouche Boubekki writes: Sorry, I did not read the code. What are you trying to achieve? Within a fiber, I need to spawn several Guile-Git clones in parallel. Since they block the Fibers scheduler,

Re: crashes with Fibers

2018-07-01 Thread Amirouche Boubekki
On 2018-07-01 15:09, Clément Lassieur wrote: Amirouche Boubekki writes: Sorry, I did not read the code. What are you trying to achieve? Within a fiber, I need to spawn several Guile-Git clones in parallel. Since they block the Fibers scheduler, they need to be in separate threads. I tried

Re: crashes with Fibers

2018-07-01 Thread Clément Lassieur
Amirouche Boubekki writes: > Sorry, I did not read the code. What are you trying to achieve? Within a fiber, I need to spawn several Guile-Git clones in parallel. Since they block the Fibers scheduler, they need to be in separate threads.

Re: crashes with Fibers

2018-07-01 Thread Amirouche Boubekki
On 2018-06-29 11:20, Clément Lassieur wrote: Hi, I'm encountering a few crashes with Fibers that happen when I call CALL-WITH-NEW-THREAD in a Fiber. TEST4 crashes every time. TEST5 never outputs, but it doesn't crash every time. TEST1 is exactly like TEST5 except that I replace

crashes with Fibers

2018-06-29 Thread Clément Lassieur
Hi, I'm encountering a few crashes with Fibers that happen when I call CALL-WITH-NEW-THREAD in a Fiber. TEST4 crashes every time. TEST5 never outputs, but it doesn't crash every time. TEST1 is exactly like TEST5 except that I replace CALL-WITH-NEW-THREAD with SPAWN-FIBER. Is it a mi