From: Tony Arcieri Date: 2015-03-22T13:00:47-07:00 Subject: [ruby-core:68606] Re: GSOC project Cross-thread Fiber support --089e0112c84a9bac720511e6027f Content-Type: text/plain; charset=UTF-8 Hi Surya, I put this project on the Ideas List. It's a project I'm potentially interested in mentoring. However, I just want to say up front that I think it will be quite difficult. I just sent this message to ko1 on a different ruby-core thread: ---------- Forwarded message ---------- From: Tony Arcieri Date: Sun, Mar 22, 2015 at 12:59 PM Subject: Re: [ruby-core:68480] Re: Looking for MRI projects for Ruby Google Summer of Code 2015 To: Ruby developers On Tue, Mar 17, 2015 at 1:59 PM, SASADA Koichi wrote: > Fiber captures also machine stack. How to resume it on the other > threads? It is very interesting. Hi Koichi, I put this project on the Ideas List. It is indeed quite difficult. It's a project I'm potentially interested in mentoring, but if we chose to attempt it I would really love your input on it. There are many potential states where resuming a fiber across threads simply will not work, for example if the current fiber is holding a mutex. So the project would start with determining what states a fiber could be in where cross-thread resumption is allowed. It may simply be infeasible without major changes to MRI. I would consider it more of a research project than anything, and would probably give it a low chance of success. -- Tony Arcieri --089e0112c84a9bac720511e6027f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Surya,

I put this project on the Ide= as List. It's a project I'm potentially interested in mentoring.

However, I just want to say up front that I think it= will be quite difficult. I just sent this message to ko1 on a different ru= by-core thread:


---------- Forwarded message ----------
From:=C2=A0Tony Arcieri=C2=A0<bascule@gmail.com>
Date: Sun, Mar 2= 2, 2015 at 12:59 PM
Subject: Re: [ruby-core:68480] Re: Looking for MRI p= rojects for Ruby Google Summer of Code 2015
To: Ruby developers <ruby-core@ruby-lang.org>
<= br>
On Tue, Mar 17, 2015 at 1:59 PM, SASADA Koichi=C2=A0<ko1@atdot.net>=C2=A0wrote:
Fiber captures also machine stack. How to resume it on the ot= her
threads? It is very interesting.

<= div>Hi Koichi,

I put this project on the Ideas Lis= t. It is indeed quite difficult. It's a project I'm potentially int= erested in mentoring, but if we chose to attempt it I would really love you= r input on it.

There are many potential states whe= re resuming a fiber across threads simply will not work, for example if the= current fiber is holding a mutex. So the project would start with determin= ing what states a fiber could be in where cross-thread resumption is allowe= d.

It may simply be infeasible without major chang= es to MRI. I would consider it more of a research project than anything, an= d would probably give it a low chance of success.

--
Tony Arcieri
--089e0112c84a9bac720511e6027f--