[phobos] core.demangle replacing std.demangle?
Benjamin Shropshire
benjamin at precisionsoftware.us
Fri Sep 10 19:02:53 PDT 2010
David Simcha wrote:
> I tried to use core.demangle to print human-readable profiling reports
> and it still seems to fail horribly on some symbols. The
> un-demanglable symbols seem to be really complicated template
> instantiations, like randomShuffle!(chain!(... . IIRC there's some
> fundamental limitation where once a symbol gets huge DMD relies on
> hashing, so the mangling no longer has an inverse. Is this true, or
> is it worth spending some time trying to create a decent test case?
If a symbol is to large for the object file format, it gets compressed.
If that is to large, a hash (MD5?) is taken (I would assume of the
uncompressed symbol). OTOH, anything that is that long is going to be
ugly even if you could de-mangle it.
>
> On Fri, Sep 10, 2010 at 10:14 AM, Andrei Alexandrescu
> <andrei at erdani.com <mailto:andrei at erdani.com>> wrote:
>
> Remove std.demangle and continue maintaining core.demangle.
>
> Andrei
>
>
> On 9/10/10 9:01 CDT, Sean Kelly wrote:
>
> I wasn't sure whether to fix std.demangle now that
> core.demangle works, or to replace/deprecate it. At the time
> I just needed something in druntime and I didn't like how
> std.demangle did everything via string ops. What do you all think?
>
> Sent from my iPhone
>
> On Sep 10, 2010, at 1:12 AM, Lars Tandle
> Kyllingstad<lars at kyllingen.net <mailto:lars at kyllingen.net>>
> wrote:
>
> I've noticed that Sean has recently added the
> core.demangle module to
> druntime. Does this mean we can deprecate std.demangle?
> I've never
> used it myself, but I seem to remember people saying on
> the NG that it
> is pretty outdated.
>
> -Lars
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com <mailto:phobos at puremagic.com>
> http://lists.puremagic.com/mailman/listinfo/phobos
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com <mailto:phobos at puremagic.com>
> http://lists.puremagic.com/mailman/listinfo/phobos
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com <mailto:phobos at puremagic.com>
> http://lists.puremagic.com/mailman/listinfo/phobos
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
More information about the phobos
mailing list