I don't think the compression is mentioned in the ABI, so core.demangle won't 
handle it correctly.  I'll take a look at the DMD source and see what can be 
done.  Hopefully there's some easy way for a parser to recognize that a symbol 
is compressed.

On Sep 10, 2010, at 9:37 AM, 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?
> 
> On Fri, Sep 10, 2010 at 10:14 AM, Andrei Alexandrescu <and...@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<l...@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@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
> 
> _______________________________________________
> phobos mailing list
> phobos@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

_______________________________________________
phobos mailing list
phobos@puremagic.com
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to