May 21, 2012
On 2012-04-20 20:08, Sean Kelly wrote:

> http://petermodzelewski.blogspot.com/2008/10/tango-conference-2008-fibers-talk-video.html
>
> I've been digging around and just found Mikola's coroutine implementation on my hard drive.  It would have to be updated, but I do have the code.  Maybe this should be added to Druntime.

I thought that this is what's used in druntime and Tango already?

-- 
/Jacob Carlborg
May 21, 2012
On May 21, 2012, at 11:05 AM, Jacob Carlborg wrote:

> On 2012-04-20 20:08, Sean Kelly wrote:
> 
>> http://petermodzelewski.blogspot.com/2008/10/tango-conference-2008-fibers-talk-video.html
>> 
>> I've been digging around and just found Mikola's coroutine implementation on my hard drive.  It would have to be updated, but I do have the code.  Maybe this should be added to Druntime.
> 
> I thought that this is what's used in druntime and Tango already?

Druntime Fiber is equivalent to Mikola's StackThreads, but there's no Coroutine class in Druntime.
May 21, 2012
On 21 May 2012 21:15, Sean Kelly <sean@invisibleduck.org> wrote:

> On May 21, 2012, at 11:05 AM, Jacob Carlborg wrote:
>
> > On 2012-04-20 20:08, Sean Kelly wrote:
> >
> >>
> http://petermodzelewski.blogspot.com/2008/10/tango-conference-2008-fibers-talk-video.html
> >>
> >> I've been digging around and just found Mikola's coroutine
> implementation on my hard drive.  It would have to be updated, but I do have the code.  Maybe this should be added to Druntime.
> >
> > I thought that this is what's used in druntime and Tango already?
>
> Druntime Fiber is equivalent to Mikola's StackThreads, but there's no Coroutine class in Druntime.


What's the distinction between a fiber and a coroutine? I thought they were basically synonymous.


May 21, 2012
On May 21, 2012, at 2:55 PM, Manu wrote:

> On 21 May 2012 21:15, Sean Kelly <sean@invisibleduck.org> wrote: On May 21, 2012, at 11:05 AM, Jacob Carlborg wrote:
> 
> > On 2012-04-20 20:08, Sean Kelly wrote:
> >
> >> http://petermodzelewski.blogspot.com/2008/10/tango-conference-2008-fibers-talk-video.html
> >>
> >> I've been digging around and just found Mikola's coroutine implementation on my hard drive.  It would have to be updated, but I do have the code.  Maybe this should be added to Druntime.
> >
> > I thought that this is what's used in druntime and Tango already?
> 
> Druntime Fiber is equivalent to Mikola's StackThreads, but there's no Coroutine class in Druntime.
> 
> What's the distinction between a fiber and a coroutine? I thought they were basically synonymous.

Coroutine is a tad higher-level, but they're functionally identical.

May 22, 2012
On 2012-05-21 20:15, Sean Kelly wrote:

> Druntime Fiber is equivalent to Mikola's StackThreads, but there's no Coroutine class in Druntime.

Aha, I see. So that's the difference ?

-- 
/Jacob Carlborg
May 22, 2012
On 2012-05-22 09:23, Jacob Carlborg wrote:
> On 2012-05-21 20:15, Sean Kelly wrote:
>
>> Druntime Fiber is equivalent to Mikola's StackThreads, but there's no
>> Coroutine class in Druntime.
>
> Aha, I see. So that's the difference ?

Found the answer in an other part of the thread.

-- 
/Jacob Carlborg
May 22, 2012
On 21 May 2012 19:16, David Nadlinger <see@klickverbot.at> wrote:

> On Monday, 21 May 2012 at 15:04:56 UTC, Manu wrote:
>
>> How far did you get using Fibers on Windows in the end?
>> I'm using GDC for x64 Windows, and it crashes in call(), but before it
>> enters the fibre function. I think it's just broken... :/
>> Anyone else had problems?
>>
>
> Fiber support should be reasonably stable on pretty much all flavors of Windows when using DMD (i.e. compiling for 32 bit). Never tested GDC…


Mmm, I just ran some tests with DMD, seems to work. GDC, not so much :(


May 24, 2012
On May 22, 2012, at 9:17 AM, Manu wrote:

> On 21 May 2012 19:16, David Nadlinger <see@klickverbot.at> wrote:
> On Monday, 21 May 2012 at 15:04:56 UTC, Manu wrote:
> How far did you get using Fibers on Windows in the end?
> I'm using GDC for x64 Windows, and it crashes in call(), but before it
> enters the fibre function. I think it's just broken... :/
> Anyone else had problems?
> 
> Fiber support should be reasonably stable on pretty much all flavors of Windows when using DMD (i.e. compiling for 32 bit). Never tested GDC…
> 
> Mmm, I just ran some tests with DMD, seems to work. GDC, not so much :(

Is GDC broken for both 32 and 64 bit, or just 64 bit?

May 28, 2012
On 24 May 2012 21:08, Sean Kelly <sean@invisibleduck.org> wrote:

> On May 22, 2012, at 9:17 AM, Manu wrote:
>
> > On 21 May 2012 19:16, David Nadlinger <see@klickverbot.at> wrote:
> > On Monday, 21 May 2012 at 15:04:56 UTC, Manu wrote:
> > How far did you get using Fibers on Windows in the end?
> > I'm using GDC for x64 Windows, and it crashes in call(), but before it
> > enters the fibre function. I think it's just broken... :/
> > Anyone else had problems?
> >
> > Fiber support should be reasonably stable on pretty much all flavors of
> Windows when using DMD (i.e. compiling for 32 bit). Never tested GDC…
> >
> > Mmm, I just ran some tests with DMD, seems to work. GDC, not so much :(
>
> Is GDC broken for both 32 and 64 bit, or just 64 bit?
>

I haven't tested x32, I work with x64 exclusively.


May 28, 2012
On May 28, 2012, at 1:19 AM, Manu <turkeyman@gmail.com> wrote:

> On 24 May 2012 21:08, Sean Kelly <sean@invisibleduck.org> wrote: On May 22, 2012, at 9:17 AM, Manu wrote:
> 
> > On 21 May 2012 19:16, David Nadlinger <see@klickverbot.at> wrote:
> > On Monday, 21 May 2012 at 15:04:56 UTC, Manu wrote:
> > How far did you get using Fibers on Windows in the end?
> > I'm using GDC for x64 Windows, and it crashes in call(), but before it
> > enters the fibre function. I think it's just broken... :/
> > Anyone else had problems?
> >
> > Fiber support should be reasonably stable on pretty much all flavors of Windows when using DMD (i.e. compiling for 32 bit). Never tested GDC…
> >
> > Mmm, I just ran some tests with DMD, seems to work. GDC, not so much :(
> 
> Is GDC broken for both 32 and 64 bit, or just 64 bit?
> 
> I haven't tested x32, I work with x64 exclusively.

The x64 fiber code isn't very well tested. It's possible something got missed for setting up the stack properly.

1 2 3 4
Next ›   Last »