Forums : Suggestions for Ohloh 2.0

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Add Digital Mars D to languages?

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

BabeleDunnit over 16 years 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!

Jason Allen over 16 years 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
carlos-santander over 16 years ago
 

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

carlos-santander over 16 years 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 :)

larsivi over 16 years ago
 

Support for the D programming language would be great.

Tomas Lindquist... over 16 years ago
 

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

djunky over 16 years 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.

SeeSchloss over 16 years 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

CyaNox over 16 years 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...

Dejan Lekic over 16 years 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

Robin Luckey over 16 years ago
 

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

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

CyaNox over 16 years 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

Robin Luckey over 16 years 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.

larsivi over 16 years ago
 

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

larsivi over 16 years ago
 

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

larsivi over 16 years 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!

CyaNox over 16 years 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

Robin Luckey over 16 years ago
 

project 8843 is in D, too (and 9959)

Thanks :)

SeeSchloss over 16 years ago
 

Hi SeeSchloss,

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

Thanks,
Robin

Robin Luckey over 16 years ago
 

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

~ Clay

clayasaurus over 16 years ago
 

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

larsivi about 16 years 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

Robin Luckey about 16 years ago
 

Where can I find, latest update on this? Has this been incorporated?

Colleenpeterson55 almost 8 years ago