News for hackers. Stuff that matters.
Re:No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 ... by perlgeek on Wednesday October 16, 2013 @03:05PM (#6561471)
>On my 4-core (8 virtual cores) i7 MacBook, with 10,000 spaceships, I get close to 10 simulation cycles per second. [...]

> When running the simulation synchronously, i.e. with a phaser, performance drops to about 8 cycles per second on my development machine.

> Performance – we are able to fully exploit the computing power of modern multi-core hardware.

So, 25% faster with 8 cores is "fully exploit the computing power of modern multi-core hardware". WTF?

Re:No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 ... by wtetzner on Wednesday October 16, 2013 @03:12PM (#6561507)
When he says he's using a phaser, he means that updates happen in lockstep. Each update still happens on multiple cores, but each fiber will not move on to the next update until all of the other fibers have finished the current update.

So it's not synchronous in the sense that it's running everything sequentially.

Re:No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 ... by pron on Thursday October 17, 2013 @02:33AM (#6563949)
Exactly. Still parallel, but don't start the next cycle until the previous one has completed.
Re:No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 ... by Morgawr on Wednesday October 16, 2013 @07:37PM (#6562756)
8 cores != 8x speedup