Non-pipeline component programming
Meta
jared771 at gmail.com
Thu Feb 6 05:47:21 PST 2014
On Thursday, 6 February 2014 at 05:27:22 UTC, Mike Parker wrote:
> A cursory look at Nitro suggests they are using an ECS with
> DOP. Given that they're providing ranges for iterating the
> data, it will fit into D's range-based component pipelines
> (std.algorithm and such).
That seems cool. I can only imagine the possibilities...
auto shipComponents = components.filter!(a =>
a.hasComponent!SpaceShip);
foreach (i, spaceship; taskPool.parallel(shipComponents))
{
spaceship.name = format("Ship %i", i);
}
More information about the Digitalmars-d
mailing list