Reggae [was Building C++ modules]
Jacob Carlborg
doob at me.com
Wed Aug 14 10:32:11 UTC 2019
On 2019-08-13 20:33, H. S. Teoh wrote:
> I suppose in C++, with its overcomplex lexing/parsing, this could
> potentially be significant savings. But based on what Walter has said
> about storing binary forms of the source code (which is basically what
> you'll end up doing if you really want to implement incremental
> compilation in the above sense), it's not much more efficient than
> (re)lexing and (re)parsing the entire file.
I'm guessing the compiler would run as a daemon in the background
storing everything in memory.
> Plus, the way dmd currently works, the AST is mutated by the various
> semantic passes, so you can't really do something like caching the AST
> and rewriting subtrees of it based on what changed in the source file,
> either.
Yeah, that's quite annoying, for other reasons as well.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list