Conversation
|
Would be appreciated if you could add the comment to the commit as well, so people tracing history don't have to do "blame" => commit => P.R. => Issue => Comment |
|
Yes, the commit message should contain a reason. |
|
How would deleted lines show up in blame? |
|
That said I'm willing to add any text to the commit message in exchange for a speedy merge. |
|
I would be more happy with a reason in the commit message, but I don't have any authority to merge. |
|
I'm hesitant to put "because it's useless and should never have been merged" into the permanent history. |
Sure, but it all depends on how you word it. I think what you wrote in the PR that introduced the |
|
Also, if you write the explanation in the commit message (and have only one commit), GitHub will automatically use that commit message as the title and description of the PR, avoiding the need to refer to the other PR. |
|
Honestly I'm expecting someone with merge rights to come along and request a slightly different comment from what you asked for, at which point I'll update it and they'll merge it. |
|
It is my judgment (as the initiator and co-designer of this project) that the |
|
I agree with this, however I was not included in the discussion of this AST and how this carp got merged I have no idea.
I'll merge if you put this, or any other suggested commit message. |
|
@yebblies - tentative ping. |
After reviewing this in more detail the conclusion is that there is no use case for the ASTNull AST family that is not better covered by ASTBase and therefore should be removed. While this does cover the API used by the parser to construct an AST it does not actually result in building an AST, and at the same time is ineffective for use cases that don't require an AST as it will allocate huge amounts of memory and does not provide a hookable API. The testing of the parser API will be adequately covered by ASTBase.
andralex
left a comment
There was a problem hiding this comment.
OK, to be considered when there's a good use case for it. (One issue is it's not visitable which reduces usefulness.)
|
@andralex do we have a forum to discuss this? Maybe the internals ML. As I've said before, I don't think the parser is something that needs speeding up or has memory problems. For plugging in your own passes/analysers, there's already the Visitor interface, which is used by gdc. |
|
@jacob-carlborg - You could do the exact same with the normal parser? |
@ibuclaw you mean the |
|
@jacob-carlborg could you use ASTBase instead? |
|
@ibuclaw internals is fine as is skype. There are benefits to the decomposition that go well beyond speed or memory consumption (which I see more of a perk than a fundamental pursuit). By modularizing the compiler:
I.e.. the usual advantages of modularization. Perhaps it's clear to you who are familiar with the codebase, but even the parser was a rat's nest of dependencies - for example, one surprising thing is that parsing depends on the name mangler. There is an explanation for it, but it's one of many surprising consequences of the compiler being monolithic. |
FWIW there's also dlang.slack.com (however one needs an invite with the free version) |
@andralex yes, I didn't know that existed. I found it now in a PR. |
This removes a module added in #6625 - see my comment there for more details on why.