If you could make any changes to D, what would they look like?

Basile B. b2.temp at gmx.com
Tue Oct 26 01:01:04 UTC 2021


On Monday, 25 October 2021 at 23:50:59 UTC, H. S. Teoh wrote:
> On Mon, Oct 25, 2021 at 11:34:10PM +0000, Basile B. via 
> Digitalmars-d wrote:
>> On Sunday, 24 October 2021 at 20:04:05 UTC, Paul Backus wrote:
> [...]
>> > I have a shortcut set up in Vim that opens the 
>> > [dpldocs.info][2] search page with the identifier under the 
>> > cursor, which works pretty well for the standard library and 
>> > ok for dub packages, but a language server could probably do 
>> > a better job.
>> > 
>> > [2]: http://dpldocs.info/
>> 
>> I'm thinking to a new design lately.
>> 
>> The deamon would just keep the ast in sync and when a request 
>> is made the semantic is run from a particular point. The idea 
>> is that there's no need to run the sema for everything on each 
>> request.
>> 
>> We only need to have the AST up to date, undecorate it when a 
>> file changes, redecorate it when request are made. And 
>> important, only redecorate from what's asked.
>
> The problem with this is that the current DMDFE mutates the AST 
> as it goes along.

yeah indeed, aka lowerings...


More information about the Digitalmars-d mailing list