February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paulo Pinto | On 2/25/2014 7:36 AM, Paulo Pinto wrote:
> Yeah, it worked really great for C.
>
> Developers created C compilers in other systems and never ported lint
> as part of the process.
>
> End result being a portable macro assembler, as safe as, writing in pure assembly.
This is hyperbole. C's type system made it far safer than assembler.
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paulo Pinto | On 2/25/2014 8:05 AM, Paulo Pinto wrote:
> Actually a good approach the Go guys have, everything that can be a warning, is
> an error.
D started with and maintained that approach for many years. It was a position I strongly advocated.
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Tuesday, 25 February 2014 at 22:42:53 UTC, Walter Bright wrote:
> On 2/25/2014 8:05 AM, Paulo Pinto wrote:
>> Actually a good approach the Go guys have, everything that can be a warning, is
>> an error.
>
> D started with and maintained that approach for many years. It was a position I strongly advocated.
To be completely honest, at the moment warning lobby has happened it was more reasonable because there was not even slight possibility of lint-like tool creation back then. But now we have DScanner and DDMD is not that far away too which allows for more purism in this question.
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dicebot | On 2/25/2014 2:47 PM, Dicebot wrote: > To be completely honest, I should hope so :-) > at the moment warning lobby has happened it was more > reasonable because there was not even slight possibility of lint-like tool > creation back then. But now we have DScanner and DDMD is not that far away too > which allows for more purism in this question. I tend to agree. The existence of warnings in the compiler is a red flag that the language design needs work. But I still support the existence of warnings in the compiler as a means to ease transitioning away from obsolete features. |
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to bachmeier | On 2/24/14, 4:46 PM, bachmeier wrote:
> On Monday, 24 February 2014 at 21:07:00 UTC, Andrei Alexandrescu wrote:
>> This is a first on so many levels.
>>
>> https://news.ycombinator.com/item?id=7293396
>>
>> http://www.reddit.com/r/programming/comments/1yts5n/facebook_open_sources_flint_a_c_linter_written_in/
>>
>>
>>
>> Andrei
>
>
> Is your job title really "D Language Evangelist"?
On paper it's "Research Scientist". But we are really allowed to describe our jobs any way we want.
Andrei
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On 2/25/14, 3:22 AM, bearophile wrote:
> Andrei Alexandrescu:
>
>> http://www.reddit.com/r/programming/comments/1yts5n/facebook_open_sources_flint_a_c_linter_written_in/
>>
>
> An interesting comment from Reddit:
>
> klusark>I've been trying to build this for the past hour. It requires
> folly. folly requires some "double-conversion" library, but you can't
> use the default version, you have to build it with scripts from folly's
> source. After I finally get folly to get past configure stage I get some
> random python error in one of the build scripts. I just gave up at this
> point. I'm sure I could get it working, but the time isn't worth it.<
>
> Bye,
> bearophile
Ironically that's for the obsoleted C++ program. The D program is trivial to build.
Andrei
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | Andrei Alexandrescu:
> Ironically that's for the obsoleted C++ program. The D program is trivial to build.
Oh, I didn't know/understand that. Sorry for the noise.
Bye,
bearophile
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 2/25/2014 3:40 PM, Andrei Alexandrescu wrote:
> Ironically that's for the obsoleted C++ program. The D program is trivial to build.
Maybe the C++ version should undergo a git rm :-)
Or at least, put it on another branch.
|
February 25, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Tuesday, 25 February 2014 at 23:40:02 UTC, Andrei Alexandrescu wrote: > On 2/25/14, 3:22 AM, bearophile wrote: >> Andrei Alexandrescu: >> >>> http://www.reddit.com/r/programming/comments/1yts5n/facebook_open_sources_flint_a_c_linter_written_in/ >>> >> >> An interesting comment from Reddit: >> >> klusark>I've been trying to build this for the past hour. It requires >> folly. folly requires some "double-conversion" library, but you can't >> use the default version, you have to build it with scripts from folly's >> source. After I finally get folly to get past configure stage I get some >> random python error in one of the build scripts. I just gave up at this >> point. I'm sure I could get it working, but the time isn't worth it.< >> >> Bye, >> bearophile > > Ironically that's for the obsoleted C++ program. The D program is trivial to build. > > Andrei Somewhat related, what ideas in Folly do you think we should borrow for Phobos? It seems like there is a lot of nice stuff in there: https://github.com/facebook/folly/blob/master/folly/docs/Overview.md |
February 26, 2014 Re: Facebook open sources flint, a C++ linter written in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to bachmeier | On Tuesday, 25 February 2014 at 00:46:03 UTC, bachmeier wrote:
> On Monday, 24 February 2014 at 21:07:00 UTC, Andrei Alexandrescu wrote:
>> This is a first on so many levels.
>>
>> https://news.ycombinator.com/item?id=7293396
>>
>> http://www.reddit.com/r/programming/comments/1yts5n/facebook_open_sources_flint_a_c_linter_written_in/
>>
>>
>> Andrei
>
>
> Is your job title really "D Language Evangelist"?
Usually, I understand XXX evangelist as "My job is to use
twitter".
|
Copyright © 1999-2021 by the D Language Foundation