Talk:Rosetta Code/Rank languages by popularity: Difference between revisions

Content added Content deleted
m (→‎wanted: a complete list: updated the number of languages, elided a leading blank.)
m (→‎wanted: a complete list: added more whitespace to reflect the line sep.)
Line 259: Line 259:
One reason to have a complete list is to ensure that the example programs are processing all of the languages (or ''for'' the languages).   That isn't the main reason, but it would/could point out deficiencies in an example's process/algorithm. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:35, 29 June 2012 (UTC)
One reason to have a complete list is to ensure that the example programs are processing all of the languages (or ''for'' the languages).   That isn't the main reason, but it would/could point out deficiencies in an example's process/algorithm. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:35, 29 June 2012 (UTC)


<br>
-----
-----
<br>


Since nobody re-ran their examples, I decided to write my own (using REXX) and included an almost full list of the rank of languages on Rosetta Code.
Since nobody re-ran their examples, I decided to write my own (using REXX) and included an almost full list of the rank of languages on Rosetta Code.
Line 320: Line 322:
(The above was struck as it no longer applies.) -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 05:28, 1 September 2014 (UTC)
(The above was struck as it no longer applies.) -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 05:28, 1 September 2014 (UTC)


<br>
-----
-----
<br>
Hi Gerard - I noticed your recent update to this page didn't agree with my count (from the Tcl API example, which currently counts 582 languages). I'm not sure exactly where our discrepancy comes from, but looking at the data:
Hi Gerard - I noticed your recent update to this page didn't agree with my count (from the Tcl API example, which currently counts 582 languages). I'm not sure exactly where our discrepancy comes from, but looking at the data:


Line 332: Line 337:
--[[User:Aspectcl|Aspectcl]] ([[User talk:Aspectcl|talk]]) 03:37, 23 July 2015 (UTC)
--[[User:Aspectcl|Aspectcl]] ([[User talk:Aspectcl|talk]]) 03:37, 23 July 2015 (UTC)


<br>
-----
-----
<br>


First, regarding the Unicode characters: &nbsp; there are several Unicode versions (or entries) of the same(?) language (all spelled different and/or use different glyphs), and it was somewhat obvious to me that they all referred to a common language, albeit spelled differently. &nbsp; I chose to combine them as I thought they referred to the same language. &nbsp; There are probably other languages that have multiple spellings that I haven't observed. &nbsp; This was &nbsp; ''one'' &nbsp; of the reasons that I include a complete list of all languages (as REXX finds them in the categories file), which are specified/verified in the languages file.
First, regarding the Unicode characters: &nbsp; there are several Unicode versions (or entries) of the same(?) language (all spelled different and/or use different glyphs), and it was somewhat obvious to me that they all referred to a common language, albeit spelled differently. &nbsp; I chose to combine them as I thought they referred to the same language. &nbsp; There are probably other languages that have multiple spellings that I haven't observed. &nbsp; This was &nbsp; ''one'' &nbsp; of the reasons that I include a complete list of all languages (as REXX finds them in the categories file), which are specified/verified in the languages file.
Line 383: Line 390:


::: I've enhanced the REXX program to now include the &nbsp; ''total number of languages detected in the languages file'' &nbsp; (as well as previously noting the total number of languages detected in the category file. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 06:08, 4 August 2015 (UTC)
::: I've enhanced the REXX program to now include the &nbsp; ''total number of languages detected in the languages file'' &nbsp; (as well as previously noting the total number of languages detected in the category file. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 06:08, 4 August 2015 (UTC)
<br>


<br>
-----
-----
<br>


Thanks! I've updated the Tcl script to produce a similar report to [[RC_POP.OUT]], saved at [[Rosetta_Code/Rank_languages_by_popularity/Tcl_API_full_output]]. The Tcl script hits the API, first asking for all members of "Category:Programming Languages", then getting a count for each "Category:$language" in a separate call, without attempting to filter empty categories. I don't have the attention to do any deeper analysis just now, but having uniform output to compare should help!
Thanks! I've updated the Tcl script to produce a similar report to [[RC_POP.OUT]], saved at [[Rosetta_Code/Rank_languages_by_popularity/Tcl_API_full_output]]. The Tcl script hits the API, first asking for all members of "Category:Programming Languages", then getting a count for each "Category:$language" in a separate call, without attempting to filter empty categories. I don't have the attention to do any deeper analysis just now, but having uniform output to compare should help!
Line 393: Line 401:
: Thank you for the complete ranking list produced by Tcl. &nbsp; I noticed the number of zero entries (at the bottom), which aren't present in the category file that the REXX program reads. &nbsp; Kudos to your proper handling of the tied entries! &nbsp; I think only five programming entries got it correct (for tied rankings) as far as I could tell, some programming entries only listed just a few (top ten languages or whatever) where there weren't any tied entries. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:55, 23 July 2015 (UTC)
: Thank you for the complete ranking list produced by Tcl. &nbsp; I noticed the number of zero entries (at the bottom), which aren't present in the category file that the REXX program reads. &nbsp; Kudos to your proper handling of the tied entries! &nbsp; I think only five programming entries got it correct (for tied rankings) as far as I could tell, some programming entries only listed just a few (top ten languages or whatever) where there weren't any tied entries. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:55, 23 July 2015 (UTC)


<br>
-----
-----
<br>


In the complete list [http://rosettacode.org/wiki/Category:A%2B A+] is ranked 431 although (unfairly) it has no worked tasks. [http://rosettacode.org/wiki/Category:Xanadu Xanadu], a language with which I am unfamiliar, has one worked [http://rosettacode.org/wiki/N-queens_problem task] but is ranked 463. --[[User:Nigel Galloway|Nigel Galloway]] 12:29, 21 December 2012 (UTC)
In the complete list [http://rosettacode.org/wiki/Category:A%2B A+] is ranked 431 although (unfairly) it has no worked tasks. [http://rosettacode.org/wiki/Category:Xanadu Xanadu], a language with which I am unfamiliar, has one worked [http://rosettacode.org/wiki/N-queens_problem task] but is ranked 463. --[[User:Nigel Galloway|Nigel Galloway]] 12:29, 21 December 2012 (UTC)
Line 422: Line 432:
:: Using the number of members in a category is biased because most language categories have three subcategories ("X examples needing attention", "X Implementations" and "X User") which are also included in the count. Many (all?) languages that are listed with 3 members (like [[A+]] or [[B]]) in the ranking actually don't have any task implemented. --[[User:AndiPersti|Andreas Perstinger]] ([[User talk:AndiPersti|talk]]) 13:18, 12 March 2014 (UTC)
:: Using the number of members in a category is biased because most language categories have three subcategories ("X examples needing attention", "X Implementations" and "X User") which are also included in the count. Many (all?) languages that are listed with 3 members (like [[A+]] or [[B]]) in the ranking actually don't have any task implemented. --[[User:AndiPersti|Andreas Perstinger]] ([[User talk:AndiPersti|talk]]) 13:18, 12 March 2014 (UTC)


<br>
-----
-----
<br>


I took the task's requirements quite literally:
I took the task's requirements quite literally: