Are Fibers just broken in D?

rikki cattermole rikki at cattermole.co.nz
Fri Apr 20 19:21:33 UTC 2018


On 21/04/2018 6:58 AM, Byron Moxie wrote:
> I am working on an application that makes heavy use of Fibers pools that 
> are processed by a thread pool.
> 
> In WIN32 it looks like its leaking memory then it segfaults (I am 
> guessing its an OOM).
> 
> I am also trying to use Semaphores and/or Conditions on shared data 
> between fibers, which results in segfaults as well.
> 
> atomicLoad and atomicStore are not working either.
> 
> Are Fibers usable at all?  Cause it doesn't seem like.  I already 
> re-arched this application to remove vibe.d (was fighting all sorts of 
> sync and event errors)
> 
> This application is turning into my last straw for D..  I spend about 
> 90% of my time fighting the compiler / library. I am really debating 
> re-writing this application in c++ over the weekend (I have already lost 
> money on this job after convincing by boss that D would be better).

atomicLoad and atomicStore, definitely are working.

It sounds like you have got some pretty big problems that may not be on 
D's end.

But we'll need code to be able to help you further than that.


More information about the Digitalmars-d-learn mailing list