Zaab1t has quit [Remote host closed the connection]
forgottenone has quit [Quit: Konversation terminated!]
bapt_ has joined #pypy
bapt_ has quit [Client Quit]
bapt_bapt has joined #pypy
bapt_bapt has quit [Client Quit]
bapt_bapt has joined #pypy
bapt_bapt has quit [Client Quit]
bsaleil has joined #pypy
bsaleil has quit [Quit: Page closed]
bsaleil has joined #pypy
<bsaleil>
Hello, I'm collecting statistics on various language frameworks. Is it possible to get the number of lines of code for both the RPython framework and PyPy somewhere ?
<bsaleil>
This repo includes both RPython and PyPy right ?
<mjacob>
bsaleil: it's mostly in separate directories
<mjacob>
out of interest, what will you use the statistics for?
<bsaleil>
Ok, so I can collect them both respectively from the /pypy and /rpython folders in the source tree and ignore the other folders ?
<bsaleil>
these statistics are for my dissertation to give an order of magnitude of the effort required to build a language framework
<mjacob>
bsaleil: yes, i don't think there's anything interesting (for your purpose) outside of these folders
<mjacob>
i tend to say that the folders contain "too much"
<mjacob>
for example, they contain all the tests
<mjacob>
also, the tests aren't cleanly separated from the rest
<bsaleil>
mjacob: any idea on the % of the code the tests represent ?
<mjacob>
according to py.countloc: number of testfiles: 544, number of non-empty testlines: 137392, number of files: 715, number of non-empty lines: 554927
<mjacob>
however, a large part of it are the unicode databases
<mjacob>
with /home/manu/vcs/pypy/rpython/rlib/unicodedata/unicodedb_5_2_0.py having 158163 non-empty lines
<mjacob>
so you see, it's not that easy
<mjacob>
(the numbers are for rpython/)
<mjacob>
after deleting the unicode dbs: py.countloc for rpython: number of testfiles: 544, number of non-empty testlines: 137392, number of files: 708, number of non-empty lines: 205741
<mjacob>
probably the code vs. test file detection is not quite accurate
<mjacob>
and many things are in non-test-files, but still are exclusively for tests
nunatak has joined #pypy
<mjacob>
i claim that the number of lines is not a reliable metric for anything useful ;)
<mjacob>
another thing: there's rpython/rlib/, a collection of things useful for many language implementations
<mjacob>
do you want to count it or not?
nunatak has quit [Client Quit]
<bsaleil>
I know that it is probably not an exact measure but I really only need an order of magnitude and I'm not trying to conclude anything from it
<bsaleil>
thank you for the py.countloc tool btw, I didn't know it before
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
forgottenone has joined #pypy
rubdos has quit [Ping timeout: 264 seconds]
rubdos has joined #pypy
<fijal>
mjacob: LOC combined with the project/language culture gives you magnitude of effort
jcea has quit [Quit: jcea]
Hasimir has quit [Ping timeout: 268 seconds]
Hasimir has joined #pypy
<mjacob>
i'm not convinced ;)
<mjacob>
especially if over half of the lines comes from generated files (unicode db)
forgottenone has quit [Quit: Konversation terminated!]
Hasimir has quit [Ping timeout: 245 seconds]
jcea has joined #pypy
jcea has quit [Client Quit]
<fijal>
yeah you need to pay attention
<toad_poloest>
An LOC metric I've never really seen used before might be churn.
<toad_poloest>
So not total LOC in the VCS, but how many lines of code are added/deleted over time.
<simpson>
toad_poloest: I was going to suggest something similar. The total effort includes dead ends, unused structures, deprecated and experimental features, etc.
<toad_poloest>
Yeah, it's very hard to measure, or even to come up with a reasonably easily-accessible metric that is comparable across projects.
<toad_poloest>
Something like developer-hours is probably decently spot-on, but hard to get that information, particularly retroactively.
jcea has joined #pypy
Hasimir has joined #pypy
xcm is now known as Guest26581
Guest26581 has quit [Killed (weber.freenode.net (Nickname regained by services))]
xcm has joined #pypy
tsaka__ has joined #pypy
Hasimir has quit [Ping timeout: 246 seconds]
Hasimir has joined #pypy
Hasimir has quit [Ping timeout: 246 seconds]
Hasimir has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
lritter has quit [Quit: Leaving]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
mvantellingen has quit [Ping timeout: 252 seconds]