Re: On the D Blog: Using the GCC Static Analyzer on the D Programming Language

2022-01-15 Thread Walter Bright via Digitalmars-d-announce

Nice work, Max!


Re: On the D Blog: Using the GCC Static Analyzer on the D Programming Language

2022-01-14 Thread max haughton via Digitalmars-d-announce

On Friday, 14 January 2022 at 20:25:22 UTC, Dukc wrote:

On Friday, 14 January 2022 at 13:37:11 UTC, Mike Parker wrote:

The Blog:
https://dlang.org/blog/2022/01/14/using-the-gcc-static-analyzer-on-the-d-programming-language/

Reddit:
https://www.reddit.com/r/programming/comments/s3sh9p/using_the_gcc_static_analyzer_on_the_d/


Wow, it looks like the analyzer is easy to use! If bloated in 
it's error messages.


Better bloated than bad IMO. You'll notice that the GCC 
__backend__ can literally do a nicer error message than the D 
frontend. We should really have these for DIP1000, but the 
analysis just kind of happens as the compiler sees the code so 
doing these top-down views is quite hard.


Re: On the D Blog: Using the GCC Static Analyzer on the D Programming Language

2022-01-14 Thread Dukc via Digitalmars-d-announce

On Friday, 14 January 2022 at 13:37:11 UTC, Mike Parker wrote:

The Blog:
https://dlang.org/blog/2022/01/14/using-the-gcc-static-analyzer-on-the-d-programming-language/

Reddit:
https://www.reddit.com/r/programming/comments/s3sh9p/using_the_gcc_static_analyzer_on_the_d/


Wow, it looks like the analyzer is easy to use! If bloated in 
it's error messages.


On the D Blog: Using the GCC Static Analyzer on the D Programming Language

2022-01-14 Thread Mike Parker via Digitalmars-d-announce
If you saw Max Haughton's [DConf Online 2021 
presentation](https://youtu.be/6TDZa5LUBzY) (Q & A video coming 
soon), or followed his remarks here in the forums or the D 
Community Discord, you know that profiling and static analysis 
are among his major interests.


The DConf Online video was all about profiling. Now, he's 
submitted an article to the D Blog showing why the GCC static 
analyzer is useful for D and how to use it.


The Blog:
https://dlang.org/blog/2022/01/14/using-the-gcc-static-analyzer-on-the-d-programming-language/

Reddit:
https://www.reddit.com/r/programming/comments/s3sh9p/using_the_gcc_static_analyzer_on_the_d/