digitalmars.D.announce - gchunt v0.1.0 is out!
- Dmitry Olshansky (14/14) Nov 11 2014 gchunt is a tool is to help D developers identify and keep in check the
- Kagamin (2/2) Nov 12 2014 https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc51...
- Dmitry Olshansky (4/6) Nov 12 2014 I'd bet it should. Ranges typically don't `enforce`.
- Kagamin (2/2) Nov 13 2014 Hmm... now that I think of it, base64 is a format used for data
- "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> (4/6) Nov 13 2014 That doesn't matter. A user still has to make sure the range
- Piotr Szturmaj (5/10) Nov 20 2014 Nice :)
- Dmitry Olshansky (4/15) Nov 21 2014 Can you reduce and file it? Thanks!
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
Nov 11 2014
https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b500/std/base64.d#L1144 Probably should be an assert?
Nov 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
Nov 12 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.
Nov 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().
Nov 13 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_dataNice :) I think I found a -vgc bug: https://github.com/D-Programming-Language/phobos/blob/271c771a57764dcc511ca12ae91d490872d9b 00/std/array.d#L419 - this line doesn't allocate, unlike the one below.
Nov 20 2014
21-Nov-2014 05:18, Piotr Szturmaj пишет:W dniu 2014-11-11 o 23:38, Dmitry Olshansky pisze:Can you reduce and file it? Thanks! -- Dmitry Olshanskygchunt 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_dataNice :) 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.
Nov 21 2014