Thundergnat

Joined 24 August 2022
m
→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting
(→‎Language Stats:: Update stats)
m (→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting)
 
(14 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.78 (20212023/0601/1622)
;* [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.12 (20212022/0608/1022)
 
==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 charactercharacters - Average number of characters inside <nowiki><lang *></lang></nowiki> blocks per task including whitespace.
* 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.; the highlighting specifier with how many times it was seen (in parenthesis). Note that some variation is expected, especially for tasks like [[Call a foreign-language function]], [[Rosetta Code/Find bare lang tags]] or probably the largest source of oddball <nowiki><lang *></nowiki>markup tags: [[Rosetta Code/Fix_code_tags]].) In general, Pygments expects the lexer name to be all lower case.
 
{|class="wikitable sortable"
|+ As of 2022-0409-1011
!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
|-
||PhixWren||15231571||5457||17401646||3231.7654 %||7875.3686 %||2124.6414 %||0.0309 %||Phixecmascript(1638) c(65) csharpgo(14) javascript(8) python(2) xml(2) AutoHotkey(1) bash(1) perl(1) rtext(1)
|-
||WrenPhix||15201570||5655||16041782||3132.569 %||7578.827 %||2421.273 %||0.0904 %||ecmascriptphix(1922) c goPhix(7) javascript C foo bar bash baz python xml(1)
|-
||Julia||14941538||3334||9741011||27.891 %||77.121 %||22.979 %||0.2827 %||julia(1817) text(4) Julia html5 python(3) ruby(3) html5(2) cpp(1) html(1) lua(1) xml(1)
|-
||Raku||14781518||30||891895||28.9278 %||69.3335 %||30.6765 %||0.5759 %||perl6raku(1958) text(7) bash C(4) c(4) xml(2) html(1) rust(1) shell xml XML(1)
|-
||Go||14631497||7776||18171809||34.4456 %||75.2623 %||24.7477 %||0.111 %||go Go(1924) html(5) text(3) bash(2) c(2) xml(2) ecmascript(1) futurebasic(1) html5(1) proto(1) thrift(1)
|-
||Perl||14431473||34||919925||27.02 %||68.1817 %||31.8283 %||0.1 %||perl(2047) Perltext(12) bash(5) Shellshell(2) c(1) html5(1) latex(1) Perl(1)
|-
||NimPython||14011406||4872||13252017||2430.6684 %||75.5356 %||24.4744 %||10.1204 %||Nim nim python(2669) Pythontext(13) rubybash(5) Chtml5(5) c(2) $cmd(2) python3(2) AutoHotkey(1) Nimrodebnf(1) perl(1) Python(1) qb64(1) shell(1) xml(1)
|-
||PythonNim||13561402||7148||19941332||3024.7464 %||75.4652 %||24.5448 %||01.0412 %||pythonnim(1599) Pythontext(10) bash html5python(8) c(4) cmd ebnfNim(3) python3ruby(3) Shellnimrod(1) xml(1)
|-
||CJ||11991275||7828||1847780||2826.6893 %||7269.5373 %||30.27.47 %||06.0153 %||cj(2986) Ctext(48) cppJ(11) bash(7) XMLc(4) Assemblysh(4) d gobnf(1) html5(1) make(1) perlpython(1) shsnusp(1) Shellxml(1)
|-
||REXXC||11451215||5579||33561873||4028.3376 %||6872.4462 %||3127.5638 %||80.4801 %||rexxc(1656) REXXtext(48) Rexxcpp(11) cobolbash(6) C(2) xml(2) assembly(1) cafe(1) d(1) go(1) html5(1) make(1) perl(1) sh(1) shell(1)
|-
||JMathematica||11421177||2712||755422||2617.9656 %||6970.5777 %||3029.4323 %||60.4404 %||jmathematica(1485) Jtext(35) bashMathematica(8) shwolfram %slanguage(2) cmathematica foo(1) bar baz bnf C html5 make python SNUSP xmlsh(1)
|-
||KotlinREXX||11311146||4756||13633373||3340.2133 %||7768.6247 %||2231.3853 %||08.0445 %||scala kotlin Kotlin c C groovy Groovy html5 HTML5rexx(1766) javatext(11) schemecobol(1) xmlsh(1)
|-
||JavaHaskell||11261138||6645||20661355||3328.3934 %||7876.5784 %||2123.4316 %||0.0108 %||javahaskell(2089) java5text(7) Javabash(3) Java5Haskell(3) c bash(1) html5(1) xml foo make bar cmd java 12 java8 Java8 shellsh(1)
|-
||HaskellJava||11161138||4566||13482077||2833.3552 %||7678.8556 %||2321.1544 %||0.0801 %||haskelljava(1273) Haskelljava5(223) bashtext(6) c(4) bash(3) html5(3) shxml(3) textJava(2) java8(2) make(2) cmd(1) java 12(1) python(1) shell(1)
|-
||MathematicaKotlin||11061132||1147||4091365||1733.521 %||7077.7561 %||2922.2539 %||0.0403 %||Mathematicascala(1110) mathematicakotlin(61) fooc(4) Wolframgroovy(2) Languagehtml5(2) "~~scheme(2) x~~"java(1) bar barf baz shxml(1)
|-
||C++||10941115||73||19741973||29.2527 %||72.771 %||27.329 %||0.02 %||cpp(1511) Cpp Cc++(14) c(8) CPP c++text(4) sh(3) html5(2) asm(1) bash C(1) cmake(1) d(1) make text(1)
|-
||Ruby||10921103||32||826832||26.218 %||76.49 %||23.51 %||0.06 %||ruby Ruby(1588) bash(4) c foo(2) html5(2) bar bazRuby(2) rust(1) tcl(1) text(1)
|-
||Racket||1089||3334||11181155||26.4748 %||75.0508 %||24.9592 %||0.29 %||racket Racket(1343) scheme(18) text(9) bash(1) Cc(1) cmd(1) html5(1) xml(1)
|-
||FreeBASIC||10161073||47||12121232||30.5887 %||82.341 %||17.759 %||0.03 %||freebasic(1128) FreeBASIC FreeBasicbasic(2) qbasic basic(2) c(1) Freebasictext(1) zxbasic(1)
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl c(1728) bash(2) csharpc(2) html5 r(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>
10,327

edits