3 ms·
The problem of D GC is it doesn't scale at all The more pointers you need to scan, the slower it becomes, and it'll stop all threads It's fine for a compiler
by Shadonototro 6y ago
The problem of D GC is it doesn't scale at all
The more pointers you need to scan, the slower it becomes, and it'll stop all threads
It's fine for a compiler or a cli tool, but it's very bad for anything that runs forever and needs to scale (server and games, specially networked games where the world and number of entities is not fixed) you then need to think about managing your memory and working around the GC a lot; then you think about yourself, why use GC at all..
D needs invest more into non GC stuff and making the GC trully optional, make it possible to link the GC away if you don't need it, make the runtime less dependent on GC (ability to statically make GC usages assert such as 'new', rework associative array, and cleanup the runtime from requiring GC, thread, socket etc etc etc)
I use D everyday, i know how to deal with that kind of issue, but new people don't, and they might be turned off the day they need to workaround GC issues
- bsdooby 6y agoDare to elaborate how you manage these GC issues (example code, howtos, etc.)? Thx