d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread MIURA Masahiro
Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to D2's powerful string handling. Enjoy!

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Steven Schveighoffer
On Wed, 05 May 2010 23:45:50 -0400, Walter Bright newshou...@digitalmars.com wrote: Walter Bright wrote: Alex Makhotin wrote: It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3 kernel 2.6.32.4), to get the actual error messages about the undefined identifier.

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Bernard Helyer
On 06/05/10 22:46, MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to D2's

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread BCS
Hello Walter, Walter Bright wrote: Alex Makhotin wrote: It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3 kernel 2.6.32.4), to get the actual error messages about the undefined identifier. Definitely there's a problem. The problem is the spell checker is O(n*n) on the

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Michel Fortin
On 2010-05-05 23:45:50 -0400, Walter Bright newshou...@digitalmars.com said: Walter Bright wrote: Alex Makhotin wrote: It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3 kernel 2.6.32.4), to get the actual error messages about the undefined identifier. Definitely there's a

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Leandro Lucarella
Steven Schveighoffer, el 6 de mayo a las 07:17 me escribiste: On Wed, 05 May 2010 23:45:50 -0400, Walter Bright newshou...@digitalmars.com wrote: Walter Bright wrote: Alex Makhotin wrote: It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3 kernel 2.6.32.4), to get the

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Leandro Lucarella
MIURA Masahiro, el 6 de mayo a las 19:46 me escribiste: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Robert Clipsham
On 06/05/10 11:46, MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to D2's powerful

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Andrei Alexandrescu
MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to D2's powerful string handling.

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Pelle
On 05/06/2010 06:48 PM, Andrei Alexandrescu wrote: I wonder if this is of enough general utility to warrant inclusion within the D distribution, along with rdmd. Thoughts? Yes please, rdmd --tags would be great.

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Andrei Alexandrescu
Pelle wrote: On 05/06/2010 06:48 PM, Andrei Alexandrescu wrote: I wonder if this is of enough general utility to warrant inclusion within the D distribution, along with rdmd. Thoughts? Yes please, rdmd --tags would be great. I was thinking of including the utility as a separate program.

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Leandro Lucarella
Andrei Alexandrescu, el 6 de mayo a las 09:48 me escribiste: MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Masahiro Nakagawa
On Fri, 07 May 2010 01:48:59 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Lutger
Andrei Alexandrescu wrote: MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Bernard Helyer
On 07/05/10 06:30, Lutger wrote: Yes it's very useful. How about also including the source in the examples directory? That's a good idea, seeing as most of the examples are either for Windows, or outdated.

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Steven Schveighoffer
On Thu, 06 May 2010 17:07:12 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: That can't be it. The identifier shown by Alex is only 33 characters. O(n^2) is not that slow, especially for smaller variables. There must be other factors you're not

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Walter Bright
Steven Schveighoffer wrote: On Thu, 06 May 2010 17:07:12 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: That can't be it. The identifier shown by Alex is only 33 characters. O(n^2) is not that slow, especially for smaller variables. There must be other

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Lionello Lunesu
On 6-5-2010 22:37, Michel Fortin wrote: On 2010-05-05 23:45:50 -0400, Walter Bright newshou...@digitalmars.com said: Walter Bright wrote: Alex Makhotin wrote: It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3 kernel 2.6.32.4), to get the actual error messages about the

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Brad Roberts
On Fri, 7 May 2010, Lionello Lunesu wrote: On 6-5-2010 22:37, Michel Fortin wrote: On 2010-05-05 23:45:50 -0400, Walter Bright newshou...@digitalmars.com said: Walter Bright wrote: Alex Makhotin wrote: It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3 kernel

Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Walter Bright
Walter Bright wrote: I recompiled dmd with the profiler (-gt switch) which confirmed it. For those interested, try out changeset 470.

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread MIURA Masahiro
On 05/07/2010 01:48 AM, Andrei Alexandrescu wrote: I wonder if this is of enough general utility to warrant inclusion within the D distribution, along with rdmd. Thoughts? That's my pleasure, actually! One small suggestion, Masahiro: you may want to replace the file reading loop in main()

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Ali Çehreli
MIURA Masahiro wrote: I'm considering an enhancement: d2tags DIRECTORY reads all JSON files in the directory. However I'm not sure if it should recurse into subdirectories. I think simpler is better. There are already tools like find on all Linux shells that could do the recursion. Ali