Add Digital Mars D to languages?

Avatar

Babele.Dunnit

8 months ago

Hi there,

Anybody fanatic for DMD too?

After 17 years of C++, I think this is the best thing that could have happened to C++... a BRAND NEW language!

have a look, C++ers :)

http://www.digitalmars.com/d/index.html


Avatar

Jason Allen

8 months ago

hi Babele,

Could you help me out by confirming that for "Line-Counting Purposes", D has similar syntax to "C/C++". That is:

  1. Strings are indicated using single or double quotes
  2. Line comments use double forward slash (//)
  3. Block comments use /* ... */

Oh, and one more thing - it uses the ".d" file extension only (or does it have header files too?).

thanks!


Avatar

carlos-santander

8 months ago

Jason, 1. D also uses `` (backticks) as string delimiters. See http://www.digitalmars.com/d/1.0/lex.html#StringLiteral D 2.0 introduced delimited strings and token strings, so maybe you want to check for those too. See http://www.digitalmars.com/d/lex.html#StringLiteral 2. There are .di files, but they are generally automatically generated by the compiler, so I'm not sure if they really count as written by a developer. 3. D also uses /+ +/ for block comments. These comments are nested. See http://www.digitalmars.com/d/1.0/lex.html#comment

Avatar

carlos-santander

8 months ago

I can't seem to be able to format that last post correctly. Sorry about that.


Avatar

larsivi

8 months ago

D files can also have the extension .di (usually for header like files). Would be really nice to have support for this! There are several D projects registered here now :)


Avatar

lindquist

8 months ago

Support for the D programming language would be great.


Avatar

djunky

6 months ago

I'd like to add my vote here for D support.


Avatar

SeeSchloss

6 months ago

Just to say... yes, supporting D would be great... parsing it the same way as C++ would do I think, at least for now. It's always better than nothing.


Avatar

CyaNox

5 months ago

Is there any news regarding support, planned supprt or anything related for us D users?

Also if you consider statistics (http://www.tiobe.com/tpci.htm) I'd say D deserves to be included asap. Especially if you look at the languages already supported by ohloh. Half of them are not even in the top 20.

But then again those are just statistics ... I for sure would like to see my projects listed as D instead of bash code ... :P

I'd love to have an update but I'll stay patient ... for now ... :D


Avatar

dejan

5 months ago

I asked about the same thing one month ago. It would really be good to have support for the D programming language (d-language) on OHLOH because I will soon have bunch of new (ported from C++) D-based projects released under GNU GPL...


Avatar

Robin Luckey

5 months ago

I'm happy to say that I have just checked in code to parse the D language, and it should start appearing in our reports over the next day or two.

All existing Ohloh projects which include D will need to be re-analyzed from scratch to pick up the D language, and this is going to take some manual scheduling.

As a trial run, I've scheduled fresh analyses for projects fbd and Tango for D.

It would be very helpful if folks could post the names of projects on Ohloh that they would like to see re-analyzed for D.

Thanks, Robin


Avatar

CyaNox

5 months ago

I'd like to see the following two project re-analysed:

http://www.ohloh.net/projects/3910 http://www.ohloh.net/projects/8053


Avatar

Robin Luckey

5 months ago

Hi CyaNox,

I ran the reports, and they now show D. Let me know if the results aren't what you expected.

Thanks, Robin


Avatar

larsivi

5 months ago

Robin, thanks for the D support! Looking at Tango, the line count is probably correct, but the comment count is wrong. It is set at 0% which certainly is less than what is there :) Hmm, this is going from the factoids at the main Tango page. Looking at the code stats page, it seems the documentation count may indeed be correct.


Avatar

larsivi

5 months ago

Other projects to re-analyze is 8261 and 8262 (DDL and Mango for D)


Avatar

larsivi

5 months ago

And the main Languages page isn't updated either :)


Avatar

CyaNox

5 months ago

Hey Robin, Thanks for the work as far as I can see the stats are correct. I see the language page has D listed but without line numbers.

Thanks for the great work!


Avatar

Robin Luckey

5 months ago

The languages page updates only once per day, because it's a pretty heavy calculation. It updated last night, and the D statistics are now included.

larsivi, I took a look at the Tango factoid, and I'm not yet sure why it showed 0% comments. Our line counter clearly found a lot of comments (totals were 208,031 lines of D code and 39,259 lines of D comments). I suspect this was a divide-by-zero type error resulting from the comparison with all other D projects, since our system had not yet calculated the overall statistics for all D projects. I ran a fresh analysis, and now that we have the overall language statistics available, the factoid is correct. I'll investigate.

I've scheduled new analyses for 8261 and 8262.

Thanks, Robin


Avatar

SeeSchloss

5 months ago

project 8843 is in D, too (and 9959)

Thanks :)


Avatar

Robin Luckey

5 months ago

Hi SeeSchloss,

Those projects have been updated. Let me know if you see a problem.

Thanks, Robin


Avatar

clayasaurus

5 months ago

Could project http://www.ohloh.net/projects/8235 please be reanalyzed for D? Thanks.

~ Clay


Avatar

larsivi

3 months ago

Project 8726 (derelict) seems to have been analyzed post-D-support, but got all the stats very wrong.


Avatar

Robin Luckey

3 months ago

Hi larsivi,

It looks like this project never got a full recount of the existing code on Ohloh after D support was added, so only the new D is being counted as it comes in. I've scheduled a full new report, which should clear up the problem.

Thanks, Robin