Thundergnat
Joined 24 August 2022
m
→Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting
Thundergnat (talk | contribs) m (→Language Stats:: is there an echo in here?) |
Thundergnat (talk | contribs) m (→Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting) |
||
(22 intermediate revisions by the same user not shown) | |||
Line 11:
==Syntax highlighting and CSS guide==
==Reports:==▼
;* [[User:Thundergnat/Syntax_highlighting_and_CSS|Short guide to Rosetta Code syntax highlighting and CSS customization that I wrote]]
▲==Reports I Generate:==
;*[[Rosetta_Code/Rank_languages_by_popularity/Full_list|Rank languages by popularity]]
;*[[Rosetta_Code/List_authors_of_task_descriptions/Full_list|List authors of task descriptions]]
Line 21 ⟶ 25:
==Utilities I Wrote:==
'''[https://www.tampermonkey.net/ Tampermonkey]''' or '''[https://www.greasespot.net/ Greasemonkey]''' javascript applets
;* [https://gist.github.com/thundergnat/c5a86a6d5e0018ac67bdea3fc48786a0#file-language_links-user-js Add language parameters to Category task entry links] - See [[Rosetta_Code:Village_Pump/Add_link_anchors_to_Language_Category_pages|this Village Pump page]] for details. Presently @ version 0.
;* [https://gist.github.com/thundergnat/5f7f36dc0cf303b110f6d7c6275fbb85#file-toggle_syntax_highlighting-user-js Syntax highlighting toggle] Toggle the task syntax highlighting off and on. Presently @ version 0.
==Resources I Host:==▼
▲==Resources:==
;*[https://github.com/thundergnat/rc/tree/master Offsite repository of resource files for various tasks]
Line 44 ⟶ 47:
* Task count - The number of tasks for which there is an entry in that language.
* Average lines per entry - The average number of lines in code blocks per entry. Multiple versions under the same task all count as lines per task. (If there are four versions and each has 25 lines, it counts as 100 for that task.)
* Average number of
* Average whitespace - How many of the above characters are white space? (Including new line characters.)
* Average percent alpha-numerics - What percentage of the non-white space characters are alphabetic or numeric?
* Average percent non-alpha-numerics - What percentage of the non-white space characters are not alphabetic or numeric? (Punctuation, symbols, etc)
* Average percent non-ASCII - What percentage of the non-white space characters are not ASCII characters?
* Syntax highlighting - What syntax highlighter does it use in order from most to least common
{|class="wikitable sortable"
|+ As of 2022-
!Language!!Task<br>Count!!Avg. #<br>Lines / Entry!!Avg. #<br>Characters!!Avg. %<br>White space!!Avg. %<br>Alphanumerics!!Avg. %Non<br>Alphanumerics!!Avg. %<br>Non-ASCII!!Syntax<br>highlighting
|-
||
|-
||
|-
||Julia||
|-
||Raku||
|-
||Go||
|-
||Perl||
|-
||
|-
||
|-
||
|-
||
|-
||
|-
||
|-
||Haskell||
|-
||
|-
||
|-
||
|-
||Ruby||
|-
||
|-
||
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl(1728) bash(2) c(2) html5(1)
|-
||Sidef||1003||22||545||30.82 %||70.18 %||29.82 %||0.45 %||ruby(1251) sidef(4) shell(2) html5(1)
|}
<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>▼
Second pass through after a lot of minor patches to the site and custom syntax highlighting filtering added. Should be a lot <strike>more accurate</strike> less inaccurate now. Numbers probably still don't ''mean'' anything, but they aren't quite as large outright whoppers. J numbers are still way overstated due to the very common decision to just include the output inside the language tags rather than in a separate output section. Not really sure what to do about it (if anything.) I '''''really''''' don't want to take on trying to untangle that mess. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 21:29, 13 February 2022 (UTC)
▲<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>
Some observations: Phix numbers are completely bogus due to the custom syntax highlighting code polluting every entry. Eventually I'll look into filtering. This is a very preliminary first whack at it.
I expected Raku to have a higher percent of non-ASCII characters and was very surprised by J and REXX having so much. On closer investigation, J and REXX entries make heavy use of box line drawing characters... which aren't ASCII. Syntax highlighting directives are all over the place. Case doesn't matter but spelling nominally does. Though, to be fair, most of the syntax highlighting are very minor variations, so getting it wrong probably doesn't change much. There are a whole bunch of obvious typos in there too though. Sigh. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]), 08 February
|