April 20, 2012
On Fri, 20 Apr 2012 05:34:41 +0200, H. S. Teoh <hsteoh@quickfur.ath.cx> wrote:
> One thing I miss, though, is ctags support for D. You don't know how
> powerful such a simple concept is; it lets you navigate 50,000-line
> source files without even batting an eyelid.  :-) (Just try that in an
> IDE, and you'll soon get an aneurism from trying to scroll with a
> 1-pixel high scrollbar...)

There's a patch for ctags to support D. Works pretty well
http://prowiki.org/wiki4d/wiki.cgi?EditorSupport/VimEditor
April 20, 2012
On 2012-04-20 04:51, Ary Manzana wrote:

> Things to learn about Descent:
>
> * It's impossible for one/two men to continually port a project from one
> language to another (C++ to Java in this case)
> * D needs to be implemented as a library. This means no global variables
> and means to make it easy to build tools on top of it. I know of about
> two alternative new implementation of D (SDC and DCT) but for now they
> are making the same mistake as DMD: they use global variables. Also, the
> developers of those projects don't seem to have experience in writing
> compilers so the code is not very nice (though I saw a visitor in DCT).
> People suggest me to send pull requests or open issues to SDC, but if
> the main design has a big flaw it's better to start from scratch than to
> change the whole code.

I think Dil has been ported to D2 just recently.

-- 
/Jacob Carlborg
April 20, 2012
On 2012-04-20 05:34, H. S. Teoh wrote:

> I use vim, and would not touch an IDE with a 20-foot sterilized pole.
> Vim has decent auto-indentation, and quite configurable in what it does
> with tabs (expandtab, noexpandtab, tabstop, shiftwidth, etc.). I'm sure
> if somebody's willing to invest the time, you can do D autocompletion in
> vim too (but I've never felt the need for it).

There's a vim plugin that uses Clang for autocompletion, if I recall correctly. We need the same for D.

-- 
/Jacob Carlborg
April 20, 2012
On Friday, 20 April 2012 at 03:33:43 UTC, H. S. Teoh wrote:

> One thing I miss, though, is ctags support for D.

Here are the changes I made to the Exuburant ctags so
it would do D language tagging.

      http://www.zeusedit.com/z300/ctags_src.zip

These changes where made quite some so that the Zeus IDE
would tag D code, so I'm not sure how well it handles the
latest D 2.0 language changes.



April 20, 2012
On 04/20/2012 05:34 AM, H. S. Teoh wrote:
> On Fri, Apr 20, 2012 at 05:15:36AM +0200, Joseph Rushton Wakeling wrote:
>> On 20/04/12 04:51, Ary Manzana wrote:
>>> * Eclispe is great for writing IDEs but after programming in Ruby for
>>> some years now and exclusively using vim I can't go back to using a
>>> slow IDE so I don't think I'll ever write anything else for Eclipse.
>>
>> vim actually seems like a great development environment for D -- it
>> was the first I could set up to really meet my preferences (I'm sure
>> Emacs is also great, but I never got my head round it sufficiently).
>> The caveat being that my concept of IDE is "glorified text editor that
>> has really nice handling of syntax highlighting and auto-indentation
>> and in particular supports smart tab indentation with tabs for indent,
>> spaces for alignment".
>
> I use vim, and would not touch an IDE with a 20-foot sterilized pole.
> Vim has decent auto-indentation, and quite configurable in what it does
> with tabs (expandtab, noexpandtab, tabstop, shiftwidth, etc.). I'm sure
> if somebody's willing to invest the time, you can do D autocompletion in
> vim too (but I've never felt the need for it).
>
> One thing I miss, though, is ctags support for D. You don't know how
> powerful such a simple concept is; it lets you navigate 50,000-line
> source files without even batting an eyelid.  :-) (Just try that in an
> IDE, and you'll soon get an aneurism from trying to scroll with a
> 1-pixel high scrollbar...)
>
> Vim/Emacs are the ultimate tools for programming IMAO. I mean, you can
> literally *implement* an IDE in Emacs if you're insane enough (heck, you
> can implement an entire OS in emacs if you lisp enough). Who needs
> klunky IDEs when *text editors* are that powerful?? ;-)
>
>
> T
>

More importantly, I have yet to find an IDE that actually supports editing text efficiently.
April 20, 2012
On Friday, 20 April 2012 at 05:12:23 UTC, H. S. Teoh wrote:
> On Fri, Apr 20, 2012 at 12:55:56PM +0800, Ary Manzana wrote:
>> How do you implement ctags for a language? I know there is one for
>> Ruby. What's the difficulty of making one for D?
>
> I've no idea, to be honest. Never done it before. I just use it for
> C/C++ code at work, and it works wonders. Makes code *soooo* much easier
> to find, esp. in a very large project with many developers. (Finding
> code without tags in large projects is just so painful and slow that
> nobody should have to suffer it.)
>
>
> T

When you talk about code completion, you want something that is at least context sensitive. That means when you are in a module, it only proposes names imported in that module and nothing else. Is that what you mean ? Because last time I used Ctags (a looooong time ago), it wasn't possible. Also, one of the good things with IDE's is the refactoring capacities. Eclipse can refactor without screwing up, and that's pretty cool. As for compiling while you're typing, I suppose with the compilation speed of D compilers, we could do something approaching, with the compiler running every 2 seconds or something.
April 20, 2012
On 4/20/12, H. S. Teoh <hsteoh@quickfur.ath.cx> wrote:
> One thing I miss, though, is ctags support for D.

Info on using ctags is here: http://prowiki.org/wiki4d/wiki.cgi?EditorSupport/VimEditor

and also cscope: http://prowiki.org/wiki4d/wiki.cgi?ReferenceForTools/Cscope
April 21, 2012
On Friday, 20 April 2012 at 08:01:08 UTC, Jacob Carlborg wrote:
> There's a vim plugin that uses Clang for autocompletion, if I recall correctly. We need the same for D.

Pre-alpha is on Github: https://github.com/Hackerpilot/Dscanner/

There *ARE* bugs in --dotComplete. I'll be implementing the first version of --parenComplete this weekend.


April 21, 2012
On 4/21/12 9:32 PM, Brian Schott wrote:
> On Friday, 20 April 2012 at 08:01:08 UTC, Jacob Carlborg wrote:
>> There's a vim plugin that uses Clang for autocompletion, if I recall
>> correctly. We need the same for D.
>
> Pre-alpha is on Github: https://github.com/Hackerpilot/Dscanner/
>
> There *ARE* bugs in --dotComplete. I'll be implementing the first
> version of --parenComplete this weekend.

Compiler *cough* as *cough* library *cough*...

Nice work, by the way :-)

April 21, 2012
On Saturday, 21 April 2012 at 13:32:16 UTC, Brian Schott wrote:
> On Friday, 20 April 2012 at 08:01:08 UTC, Jacob Carlborg wrote:
>> There's a vim plugin that uses Clang for autocompletion, if I recall correctly. We need the same for D.
>
> Pre-alpha is on Github: https://github.com/Hackerpilot/Dscanner/
>
> There *ARE* bugs in --dotComplete. I'll be implementing the first version of --parenComplete this weekend.

KISS in action. There is a lot to learn from.

Some questions:
* Are there any plans for semantic analysis?
* Is it possible to change license to Boost?
* Do you accept contributons?