https://issues.dlang.org/show_bug.cgi?id=17914
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu
Summary|Accidental pe
https://issues.dlang.org/show_bug.cgi?id=17914
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@yahoo.com
--- Comment #3 fr
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #4 from Martin Nowak ---
(In reply to Steven Schveighoffer from comment #3)
> > I'd err on the side of memory safety. Stack overflows are an actual problem
> > with Fibers and hard&time-consuming to debug.
>
> Except this breaks existing
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #5 from briancsch...@gmail.com ---
> The problem is, this either break toy code that just
> creates lots of useless Fibers or heavy production code
> that actually needs 30K Fibers.
That's not entirely accurate. I found this because the r
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #6 from Steven Schveighoffer ---
(In reply to briancschott from comment #5)
> That's not entirely accurate. I found this because the range implementation
> for a complex multi-dimensional tree structure was implemented as a
> std.concurre
https://issues.dlang.org/show_bug.cgi?id=17914
Nemanja Boric <4bur...@gmail.com> changed:
What|Removed |Added
CC||4bur...@gmail.com
--- Com
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #8 from Martin Nowak ---
We could keep track of the number of unfinalized Fibers with guard pages and
trigger a GC collection when reaching 30K, but that's too hacky for my taste.
> We don't actually need 30k fibers. We need one fiber at
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #9 from Martin Nowak ---
If scoped isn't enough, you could use automem (~master or the next release) for
ref-counted classes.
http://code.dlang.org/packages/automem
import automem.ref_counted;
auto gen = RefCounted!(Generator!int)({
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #10 from anonymous4 ---
Judging by the code Generator can just destroy itself on termination. It's not
reusable, is it?
--
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #11 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/9fee0ca6365408d753aedb517c0896af36966b65
Merge pull request #1966 from nemanja-boric-socioman
https://issues.dlang.org/show_bug.cgi?id=17914
Steven Schveighoffer changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #13 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/1c12d6d59e6a3eccf42efe379066c0a9c658fa36
Add std.concurrency.Generator overloads to accept Fiber'
https://issues.dlang.org/show_bug.cgi?id=17914
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|-
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #14 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/9fee0ca6365408d753aedb517c0896af36966b65
Merge pull request #1966 from nemanja-boric-socioman
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #15 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/1c12d6d59e6a3eccf42efe379066c0a9c658fa36
Add std.concurrency.Generator overloads to accept Fiber'
15 matches
Mail list logo