Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-11 Thread Elvis Zhou
On Friday, 11 October 2013 at 19:50:42 UTC, Kiith-Sa wrote: A component-entity architecture has two main advantages; one of them is efficiency/cache locality (which this project doesn't have at all). Another is the ability to quickly define new types without the clusterfuck that happens if you

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-11 Thread Elvis Zhou
On Friday, 11 October 2013 at 19:29:52 UTC, Agustin wrote: Correct me if i'm wrong, but isn't the whole point of Artemis design to take advantage of CPU cache levels by storing every component of the same type contignously? In your example, the components are stored non contignous, using the

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-11 Thread Kiith-Sa
A component-entity architecture has two main advantages; one of them is efficiency/cache locality (which this project doesn't have at all). Another is the ability to quickly define new types without the clusterfuck that happens if you try to use OOP to design game entities (and also to define t

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-11 Thread Agustin
Correct me if i'm wrong, but isn't the whole point of Artemis design to take advantage of CPU cache levels by storing every component of the same type contignously? In your example, the components are stored non contignous, using the GC Entity e = world.createEntity(); e.addComponent

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-08 Thread develop32
On Tuesday, 8 October 2013 at 10:35:53 UTC, Kiith-Sa wrote: In my implementation I don't even use a getComponent equivalent; a process() (or opApply() in the older version I linked) function directly takes component references, and all components are in plain arrays. Processing of a System is d

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-08 Thread Hannes Steffenhagen
Thanks, for the work, new libraries are always nice. Though, I have to agree that, at least at first glance, it seems a bit heavyweight. Is there really a need for Entity to be its own class, rather than, say, [code]alias Entity = Typedef!UUID;[/code]?

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-08 Thread Kiith-Sa
On Tuesday, 8 October 2013 at 05:24:13 UTC, Elvis Zhou wrote: On Monday, 7 October 2013 at 17:06:40 UTC, Kiith-Sa wrote: On Monday, 7 October 2013 at 15:21:00 UTC, Elvis Zhou wrote: On Monday, 7 October 2013 at 14:19:20 UTC, Ali Çehreli wrote: On 10/07/2013 02:18 AM, Elvis Zhou wrote: Artemi

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Elvis Zhou
On Monday, 7 October 2013 at 17:06:40 UTC, Kiith-Sa wrote: On Monday, 7 October 2013 at 15:21:00 UTC, Elvis Zhou wrote: On Monday, 7 October 2013 at 14:19:20 UTC, Ali Çehreli wrote: On 10/07/2013 02:18 AM, Elvis Zhou wrote: ArtemisD: https://github.com/elvisxzhou/artemisd Just a little note

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Elvis Zhou
On Monday, 7 October 2013 at 20:31:27 UTC, Andrei Alexandrescu wrote: On 10/7/13 2:18 AM, Elvis Zhou wrote: ArtemisD: A D port of Artemis Entity System Framework [snip] Limelight on! http://www.reddit.com/r/programming/comments/1nxlxt/artemisd_a_d_port_of_artemis_entity_system/ Andrei Th

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread deadalnix
On Monday, 7 October 2013 at 20:31:27 UTC, Andrei Alexandrescu wrote: On 10/7/13 2:18 AM, Elvis Zhou wrote: ArtemisD: A D port of Artemis Entity System Framework [snip] Limelight on! http://www.reddit.com/r/programming/comments/1nxlxt/artemisd_a_d_port_of_artemis_entity_system/ Andrei Al

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Andrei Alexandrescu
On 10/7/13 2:18 AM, Elvis Zhou wrote: ArtemisD: A D port of Artemis Entity System Framework [snip] Limelight on! http://www.reddit.com/r/programming/comments/1nxlxt/artemisd_a_d_port_of_artemis_entity_system/ Andrei

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Kiith-Sa
On Monday, 7 October 2013 at 17:06:40 UTC, Kiith-Sa wrote: On Monday, 7 October 2013 at 15:21:00 UTC, Elvis Zhou wrote: On Monday, 7 October 2013 at 14:19:20 UTC, Ali Çehreli wrote: On 10/07/2013 02:18 AM, Elvis Zhou wrote: ArtemisD: https://github.com/elvisxzhou/artemisd Just a little note

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Kiith-Sa
On Monday, 7 October 2013 at 15:21:00 UTC, Elvis Zhou wrote: On Monday, 7 October 2013 at 14:19:20 UTC, Ali Çehreli wrote: On 10/07/2013 02:18 AM, Elvis Zhou wrote: ArtemisD: https://github.com/elvisxzhou/artemisd Just a little note: As it's more readable, you may want to use 1000.msecs ins

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Elvis Zhou
On Monday, 7 October 2013 at 14:19:20 UTC, Ali Çehreli wrote: On 10/07/2013 02:18 AM, Elvis Zhou wrote: ArtemisD: https://github.com/elvisxzhou/artemisd Just a little note: As it's more readable, you may want to use 1000.msecs instead of dur!("msecs")(1000) in the example program. 1000.msec

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Ali Çehreli
On 10/07/2013 02:18 AM, Elvis Zhou wrote: ArtemisD: https://github.com/elvisxzhou/artemisd Just a little note: As it's more readable, you may want to use 1000.msecs instead of dur!("msecs")(1000) in the example program. 1000.msecs is the equivalent of the msecs(1000) function call, which re

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Elvis Zhou
On Monday, 7 October 2013 at 10:35:32 UTC, dennis luehring wrote: Am 07.10.2013 11:57, schrieb Elvis Zhou: seem nice - BUT it seems too java oop like and very ungeneric, is there a real need to derive from component? It's simple enough without over design IMO. yes - if the need of beeing par

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread dennis luehring
Am 07.10.2013 11:57, schrieb Elvis Zhou: seem nice - BUT it seems too java oop like and very ungeneric, is there a real need to derive from component? It's simple enough without over design IMO. yes - if the need of beeing part of the hierachy is not a problem :) most D libraries try to be mo

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread Elvis Zhou
On Monday, 7 October 2013 at 09:31:15 UTC, dennis luehring wrote: Am 07.10.2013 11:18, schrieb Elvis Zhou: ArtemisD: A D port of Artemis Entity System Framework About Artemis Artemis is a high performance Entity System framework for games, written in Java, and is a framework to manage entit

Re: ArtemisD: A D port of Artemis Entity System Framework for games.

2013-10-07 Thread dennis luehring
Am 07.10.2013 11:18, schrieb Elvis Zhou: ArtemisD: A D port of Artemis Entity System Framework About Artemis Artemis is a high performance Entity System framework for games, written in Java, and is a framework to manage entities in a game world. It is inspired by Entity Systems are the futu