Thread overview
gchunt v0.1.0 is out!
Nov 11, 2014
Dmitry Olshansky
Nov 12, 2014
Kagamin
Nov 12, 2014
Dmitry Olshansky
Nov 13, 2014
Kagamin
Nov 13, 2014
Marc Schütz
Nov 21, 2014
Piotr Szturmaj
Nov 21, 2014
Dmitry Olshansky
November 11, 2014
gchunt is a tool is to help D developers identify and keep in check the usage of GC in their projects.

So far it just postprocesses D compiler's -vgc output into a nice Wiki table. Results looks like this (Phobos):
http://wiki.dlang.org/Stuff_in_Phobos_That_Generates_Garbage#Labeled_data

Notice the source links grouped for each allocation reason per function. In short: it's a ready to use spread-sheet for reviewers to work through.

Release notes & Windows binary:
https://github.com/DmitryOlshansky/gchunt/releases/tag/v0.1.0

Past discussions and the origin of the tool:
http://forum.dlang.org/thread/pzyzqwpqdllegxnysmwz@forum.dlang.org#post-m11hhb:2423nf:241:40digitalmars.com

Happy GC hunting !

-- 
Dmitry Olshansky
November 12, 2014
https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/base64.d#L1144

Probably should be an assert?
November 12, 2014
12-Nov-2014 13:32, Kagamin пишет:
> https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/base64.d#L1144
>
>
> Probably should be an assert?

I'd bet it should. Ranges typically don't `enforce`.

-- 
Dmitry Olshansky
November 13, 2014
Hmm... now that I think of it, base64 is a format used for data transfer, so it's unlikely to come from a trusted source.
November 13, 2014
On Thursday, 13 November 2014 at 10:44:38 UTC, Kagamin wrote:
> Hmm... now that I think of it, base64 is a format used for data transfer, so it's unlikely to come from a trusted source.

That doesn't matter. A user still has to make sure the range isn't `empty` before calling `popFront()`, and that's all that line enforces. Thus, it should be an assert().
November 21, 2014
W dniu 2014-11-11 o 23:38, Dmitry Olshansky pisze:
> gchunt is a tool is to help D developers identify and keep in check the
> usage of GC in their projects.
>
> So far it just postprocesses D compiler's -vgc output into a nice Wiki
> table. Results looks like this (Phobos):
> http://wiki.dlang.org/Stuff_in_Phobos_That_Generates_Garbage#Labeled_data

Nice :)

I think I found a -vgc bug: https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/array.d#L419 - this line doesn't allocate, unlike the one below.

November 21, 2014
21-Nov-2014 05:18, Piotr Szturmaj пишет:
> W dniu 2014-11-11 o 23:38, Dmitry Olshansky pisze:
>> gchunt is a tool is to help D developers identify and keep in check the
>> usage of GC in their projects.
>>
>> So far it just postprocesses D compiler's -vgc output into a nice Wiki
>> table. Results looks like this (Phobos):
>> http://wiki.dlang.org/Stuff_in_Phobos_That_Generates_Garbage#Labeled_data
>
> Nice :)
>
> I think I found a -vgc bug:
> https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/array.d#L419
> - this line doesn't allocate, unlike the one below.
>

Can you reduce and file it? Thanks!

-- 
Dmitry Olshansky