April 21, 2015
On 2015-04-18 20:39:55 +0000, weaselcat said:

> On Saturday, 18 April 2015 at 17:21:28 UTC, Shammah Chancellor wrote:
>> ...
> 
> Are there any plans for the LDC and SDC team to work together once SDC matures?

I have not had an opportunity to speak with them, but LDC is written in C++.   But, I'm sure they have the skills to help us if they want to :)

I was am interested to know if their custom runtime code would be something both projects could share.

-Shammah

April 21, 2015
On 2015-04-20 22:40:10 +0000, Brian Schott said:

> On Sunday, 19 April 2015 at 06:01:14 UTC, weaselcat wrote:
>> gofmt, much like python's standardized formatting, made contributing to go projects much easier IMO. While the same can't be done for D, hopefully dfmt becomes a standard tool and each dub project can just include a dfmt.conf or something to make contributing easier.
> 
> dfmt options go in .editorconfig with the rest of your project's style decisions like tabs/spaces and line length.
> 
>> I agree with the OP on the tooling point, just look at C++. C++ had historically zero(okay, some - but it sucked! ctags were awful, etc.) tooling before clang hit the scene. IMO clang/LLVM was a complete game changer for C++ tooling, and I hope D can do the same.
> 
> For what it's worth, D-Scanner can output ctags information for D files.
> 
>> Clang has a static analyzer, a formatter, a modernizer...
>> Hell, clang(and obv. libclang) can dump the AST right from its driver, and even has autocompletion built into it(-code-completion-at)
> 
> We now have a formatter. D-Scanner can perform some static analysis and dump an AST from its parser, DCD provides autocompletion. dfix can perform syntax upgrades.

Can D-Scanner really provide you with autocompletion for code that is from a mixin generated by CTFE?

-Shammah

April 21, 2015
"Brian Schott" <briancschott@gmail.com> writes:
> For what it's worth, D-Scanner can output ctags information for D files.

Brian, how about etags for emacs?
April 21, 2015
On Monday, 20 April 2015 at 22:40:11 UTC, Brian Schott wrote:
> On Sunday, 19 April 2015 at 06:01:14 UTC, weaselcat wrote:
>> gofmt, much like python's standardized formatting, made contributing to go projects much easier IMO. While the same can't be done for D, hopefully dfmt becomes a standard tool and each dub project can just include a dfmt.conf or something to make contributing easier.
>
> dfmt options go in .editorconfig with the rest of your project's style decisions like tabs/spaces and line length.
>
>> I agree with the OP on the tooling point, just look at C++. C++ had historically zero(okay, some - but it sucked! ctags were awful, etc.) tooling before clang hit the scene. IMO clang/LLVM was a complete game changer for C++ tooling, and I hope D can do the same.
>
> For what it's worth, D-Scanner can output ctags information for D files.
>
>> Clang has a static analyzer, a formatter, a modernizer...
>> Hell, clang(and obv. libclang) can dump the AST right from its driver, and even has autocompletion built into it(-code-completion-at)
>
> We now have a formatter. D-Scanner can perform some static analysis and dump an AST from its parser, DCD provides autocompletion. dfix can perform syntax upgrades.

I think your work is very valuable, but SDC is still necessary. D a very meta programming language, which makes having a fully featured front end necessary for various tooling.

Your approach certainly yield result faster, and is sufficient for some tooling. I see your work and SDC as complementary rather than stepping on each other. This is why I put tools like REPL or test runner in the list rather than tools like formatting, which you approach can already provide.
April 21, 2015
On Monday, 20 April 2015 at 20:01:17 UTC, Johan Engelen wrote:
> On Saturday, 18 April 2015 at 20:39:56 UTC, weaselcat wrote:
>> On Saturday, 18 April 2015 at 17:21:28 UTC, Shammah Chancellor wrote:
>>> ...
>>
>> Are there any plans for the LDC and SDC team to work together once SDC matures?
>
> I recently joined the LDC team, and I am a bit at a loss...
> Should I join SDC so that I can have fun writing in D?  How big is the duplication of effort between SDC and LDC? Could LDC and SDC perhaps share druntime? (LDC has many custom changes to druntime to either use LLVM intrinsics, or rewriting of assembly routines that (I think) really only work for DMD)
>
> -Johan

I'm actually looking at how things are done in LDC runtime on a regular basis. That is great source of help.

Right now, thing are reimplemented in SDC, but the actual runtime is very slim. I reimplemented exceptions as I was not satisfied by the way C++ exception are handled by LDC and I want to leverage type qualifier to improve the GC, which makes for an incompatible GC API at runtime level for SDC (so reimplementation is going on here).

I'm not opposed to sharing work with LDC, and vast part of SDC's runtime are stupid stubs that fake it (till hopefully we can make it) and I'm sure sharing with LDC is an option for some of them.
April 21, 2015
On Tuesday, 21 April 2015 at 15:01:59 UTC, Dan Olson wrote:
> "Brian Schott" <briancschott@gmail.com> writes:
>> For what it's worth, D-Scanner can output ctags information for D
>> files.
>
> Brian, how about etags for emacs?

Better:

https://github.com/atilaneves/ac-dcd

Atila
April 21, 2015
On Tuesday, 21 April 2015 at 15:01:59 UTC, Dan Olson wrote:
> "Brian Schott" <briancschott@gmail.com> writes:
>> For what it's worth, D-Scanner can output ctags information for D
>> files.
>
> Brian, how about etags for emacs?

Because the documentation for etags consists of a Wikipedia article and a Stack Overflow post. I'm far too lazy to reverse-engineer Emacs' source code.

https://github.com/Hackerpilot/Dscanner/issues/223
April 22, 2015
"Brian Schott" <briancschott@gmail.com> writes:

> On Tuesday, 21 April 2015 at 15:01:59 UTC, Dan Olson wrote:
>> "Brian Schott" <briancschott@gmail.com> writes:
>>> For what it's worth, D-Scanner can output ctags information for D files.
>>
>> Brian, how about etags for emacs?
>
> Because the documentation for etags consists of a Wikipedia article and a Stack Overflow post. I'm far too lazy to reverse-engineer Emacs' source code.
>
> https://github.com/Hackerpilot/Dscanner/issues/223

Mind if I add it then?  I've lived with etags for so long that my fingers automatically reach for " M-." for D names too.
April 22, 2015
"Atila Neves" <atila.neves@gmail.com> writes:
> Better:
>
> https://github.com/atilaneves/ac-dcd
>
> Atila

Yes, I grabbed that last fall. It's in my .emacs but disabled. I'll have to go back a try it again. It looked really good but I was having some sort of problem, I don't remember what. Probably something to do with needed extra elisp libraries.
April 22, 2015
On Wednesday, 22 April 2015 at 06:59:42 UTC, Dan Olson wrote:
> "Atila Neves" <atila.neves@gmail.com> writes:
>> Better:
>>
>> https://github.com/atilaneves/ac-dcd
>>
>> Atila
>
> Yes, I grabbed that last fall. It's in my .emacs but disabled. I'll have
> to go back a try it again. It looked really good but I was having some
> sort of problem, I don't remember what. Probably something to do with
> needed extra elisp libraries.

Extra lisp libraries? How did you install it?

As for the your brain using etags keybindings: it's Emacs, you can bind those to anything ;)

Atila