SublimeLinter-contrib-dmd: dmd feedback as you type
Bastiaan Veelo
Bastiaan at Veelo.net
Wed Nov 1 13:11:24 UTC 2017
On Wednesday, 1 November 2017 at 12:54:38 UTC, Basile B. wrote:
> On Tuesday, 31 October 2017 at 15:43:08 UTC, Bastiaan Veelo
> wrote:
>> On Tuesday, 31 October 2017 at 13:47:26 UTC, Dmitry Olshansky
>> wrote:
>>
>>> Sounds cool, I assume you use -o- option to disable DMD
>>> codegen?
>>
>> yes
>>
>>> Should be fairly fast.
>>
>> indeed
>
> Surprising. Back in 2014 i used something similar to display
> the AST in my IDE (also -o- but to get the JSON output) and
> found it slow (especially in projects since the dmd command
> line had to include all the imports and sources to avoid false
> positives). Tt's been replaced by something based on libdparse,
> which also allows to show syntax errors fast.
To be frank, I have only tested this on the minimal examples from
dlang.org. "Fast" and "slow" are subjective measures, the
question is: when is it too slow? I am interested to hear how
this does for people with large code bases, but because dmd works
in the background and you don't have to wait for it to get your
code typed out, I suppose speed is not very important as long as
it stays within a few seconds. Remember it is used for linting
only, if it were used for code completion or go-to-definition it
could be too slow.
More information about the Digitalmars-d-announce
mailing list