Replies: 2 comments
-
|
Thanks, Kyle, I never knew there were such tools and I find these results eye-opening. That $4M cost estimate is an interesting number that could be included in future proposals. The federal funding agencies should know what value they are getting; the total funds awarded for code development over the years does not come close to that level. Instead it was all on the backs of lowly paid grad students like yourself! It would be interesting to run scc on AthenaK... |
Beta Was this translation helpful? Give feedback.
-
|
I know this is a bit late but if there is anything you need added to scc to assist with what you are doing, or just general questions please do reach out. I am always happy to assist. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I often use
slocto track the growth of repos and keep an eye on code bloat. As @jmstone says, once you get around ~100K lines of C/C++, the project can start to become unwieldy (at least for computational science codes supported by folks from only a handful of academic and research institutions).slocwas really useful for some rewrites of thebvals/content, etc.Recently learned about a much more powerful extension of a code counter, https://github.com/boyter/scc, and thought I would share it here for fun. Here is the basic output:
Uses the COCOMO software cost estimation model and computes cyclomatic complexity for all the files. Discussion from the project author about the latter here: boyter/scc#235
It obviously doesn't take into account that some parts of the repo benefitted from being indirectly ported from https://github.com/PrincetonUniversity/Athena-Cversion, and ZEUS etc. before that. And the 4x constants from the "organic" type project for the Basic COCOMO model here could probably be tuned--- plus, it assumes an average salary of $56,286 and an overhead of 2.4 in
https://github.com/boyter/scc/blob/c55ec6a0fc06f8a69a46968001801e2b3c89901f/processor/cocomo.go#L31
... which strikes me as a bit high for some of the grad students who worked on the code, speaking from experience
Tons of fun options to play around with and get insights on the codebase. For example, ranking the files by complexity:
So @tomo-ono, for your prize of writing the most complex file, you can expect a check for your cut of the $4M soon 😄
Beta Was this translation helpful? Give feedback.
All reactions