On Friday, 8 January 2016 at 18:07:49 UTC, Nordlöw wrote:
On Friday, 8 January 2016 at 16:58:59 UTC, Jin wrote:
Idea: no mutex, no CAS, only one direction queues without any
locks.
My prototype (https://github.com/nin-jin/go.d) is up to 10x
faster than std.concurrency.send/receive
Very interesting. D has builtin unittests. You should add
stress unittests to assure that your logic is correct. You can
start by searching for keyword `unittest` in the
std.concurrency module for advice how to do this.
I just add unit tests. But how to idiomatic implement benchmarks
(compiling must be in release mode)? Currently, i was implement
main function in app.d and run with "dub --build=release", but
nobody can import my module.