The "no gc" crowd

Benjamin Thaut code at benjamin-thaut.de
Wed Oct 9 00:39:36 PDT 2013


Am 09.10.2013 01:29, schrieb Adam D. Ruppe:
>
> It is nice to have stdlib functions available that can be used anywhere.
> For std.algorithm, Andrei has said if you ever implement an algorithm by
> hand, it means the library has failed. But there's two places where that
> falls short (IMO at least): using it without allocating, and using it
> without bringing in a bazillion dependencies.
>

This. Exactly this was one of my biggest problems when writing GC free 
code. I started with "hey I just patch all places in phobos that do 
allocations". I planed to do so, so I can use std.algorithm and others. 
After trying for a while the dependencies killed me. So I just stopped 
altogether and rewrote whatever algorithm I would need myself. The 
dependencies between the modules in phobos are catastrophic. If you need 
one module, you basically need all of them.

Kind Regards
Benjamin Thaut



More information about the Digitalmars-d mailing list