News for hackers. Stuff that matters.
Re:Apple's Module proposal to replace headers for C-based la... by vilya on Monday November 26, 2012 @06:22PM (#4834584)
Thanks, I think you're probably right - the modules would have to have enough information in their compiled form that your compiler could introspect them without needing the source. The proposal wouldn't be much use if that weren't true.

Re: templates, I thought the expensive part of template processing was code generation rather than parsing. Would caching the AST really be that much of a saving? I admit I've never tried profiling it to find out...

Re:Apple's Module proposal to replace headers for C-based la... by aidenn0 on Saturday December 01, 2012 @12:20AM (#4856928)
#include <iostream>

You've just parsed ~6MB of code. You might instantiate 2 or 3 templates from it. The parsing truly is non-trivial.