Garbage Collection for Systems Programmers
Paulo Pinto
pjmlp at progtools.org
Sun Apr 7 05:56:24 UTC 2024
On Saturday, 6 April 2024 at 21:04:03 UTC, Ogi wrote:
> On Saturday, 6 April 2024 at 14:53:09 UTC, Sergey wrote:
>> Very similar test..
>> D with LDC showed more FPS than Rust and C++ :P
>> https://github.com/NCrashed/asteroids-arena
>
> This thing barely uses GC. It implements ECS architecture: all
> game entities are split into small components which are in
> separate arrays in a manner of an object pool pattern. And it
> utilizes `std.container.Array` to avoid GC.
>
> Object pool may be good for performance, but’s also a form of
> manual memory management and therefore haram. GC bros want us
> to “just use GC”.
The fallacy is to push for a XOR strategy instead of a OR
strategy in regards to resource management.
The GC bros don't argue GC is the only strategy, only that it
should be the default.
More information about the Digitalmars-d
mailing list