User:Thundergnat: Difference between revisions

Content added Content deleted
m (Add link to CSS guide)
m (→‎Language Stats:: Update stats. Had to rewrite major portions to deal with the new highlighting scheme)
Line 52: Line 52:
* Average percent non-alpha-numerics - What percentage of the non-white space characters are not alphabetic or numeric? (Punctuation, symbols, etc)
* 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?
* 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. (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> tags: [[Rosetta Code/Fix_code_tags]].)
* 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 markup tags: [[Rosetta Code/Fix_code_tags]]. In general, Pygments expects the lexer name to be all lower case.


{|class="wikitable sortable"
{|class="wikitable sortable"
|+ As of 2022-08-14
|+ As of 2022-09-11
!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
!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
|-
|-
||Wren||1561||57||1648||31.56 %||75.83 %||24.17 %||0.09 %||ecmascript c go javascript C foo xml bar bash baz python
||Wren||1571||57||1646||31.54 %||75.86 %||24.14 %||0.09 %||ecmascript(1638) c(65) go(14) javascript(8) python(2) xml(2) AutoHotkey(1) bash(1) perl(1) text(1)
|-
|-
||Phix||1559||55||1791||32.7 %||78.25 %||21.75 %||0.04 %||Phix c csharp javascript r
||Phix||1570||55||1782||32.69 %||78.27 %||21.73 %||0.04 %||phix(1922) Phix(7) javascript(1)
|-
|-
||Julia||1530||34||1009||27.93 %||77.17 %||22.83 %||0.27 %||julia Julia ruby html5 python cpp html lua xml
||Julia||1538||34||1011||27.91 %||77.21 %||22.79 %||0.27 %||julia(1817) text(4) Julia(3) ruby(3) html5(2) cpp(1) html(1) lua(1) xml(1)
|-
|-
||Raku||1507||30||895||28.85 %||69.31 %||30.69 %||0.59 %||perl6 bash C c html rust shell XML xml
||Raku||1518||30||895||28.78 %||69.35 %||30.65 %||0.59 %||raku(1958) text(7) bash(4) c(4) xml(2) html(1) rust(1) shell(1)
|-
|-
||Go||1497||76||1808||34.57 %||75.23 %||24.77 %||0.1 %||go Go html bash c xml ecmascript futurebasic html5 proto thrift
||Go||1497||76||1809||34.56 %||75.23 %||24.77 %||0.1 %||go(1924) html(5) text(3) bash(2) c(2) xml(2) ecmascript(1) futurebasic(1) html5(1) proto(1) thrift(1)
|-
|-
||Perl||1467||34||924||27.03 %||68.14 %||31.86 %||0.1 %||perl Perl bash Shell c html5 latex
||Perl||1473||34||925||27.02 %||68.17 %||31.83 %||0.1 %||perl(2047) text(12) bash(5) shell(2) c(1) html5(1) latex(1) Perl(1)
|-
|-
||Nim||1402||48||1324||24.66 %||75.53 %||24.47 %||1.12 %||Nim nim python Python ruby c C $1 Nimrod xml
||Python||1406||72||2017||30.84 %||75.56 %||24.44 %||0.04 %||python(2669) text(13) bash(5) html5(5) c(2) cmd(2) python3(2) AutoHotkey(1) ebnf(1) perl(1) Python(1) qb64(1) shell(1) xml(1)
|-
|-
||Python||1394||72||2023||30.86 %||75.52 %||24.48 %||0.04 %||python Python bash html5 c cmd python3 ebnf QB64 Shell xml
||Nim||1402||48||1332||24.64 %||75.52 %||24.48 %||1.12 %||nim(1599) text(10) python(8) c(4) Nim(3) ruby(3) nimrod(1) xml(1)
|-
|-
||J||1267||27||758||26.95 %||69.62 %||30.38 %||6.63 %||j J bash sh %s C c foo bar baz bnf html5 make python SNUSP xml
||J||1275||28||780||26.93 %||69.73 %||30.27 %||6.53 %||j(2986) text(48) J(11) bash(7) c(4) sh(4) bnf(1) html5(1) make(1) python(1) snusp(1) xml(1)
|-
|-
||C||1214||79||1863||28.74 %||72.56 %||27.44 %||0.01 %||c C cpp bash XML Assembly d go html5 make perl sh Shell
||C||1215||79||1873||28.76 %||72.62 %||27.38 %||0.01 %||c(1656) text(48) cpp(11) bash(6) C(2) xml(2) assembly(1) cafe(1) d(1) go(1) html5(1) make(1) perl(1) sh(1) shell(1)
|-
|-
||Mathematica||1177||11||410||17.43 %||70.89 %||29.11 %||0.04 %||Mathematica mathematica foo Wolfram Language "~~ x~~" bar barf baz sh
||Mathematica||1177||12||422||17.56 %||70.77 %||29.23 %||0.04 %||mathematica(1485) text(35) Mathematica(8) wolfram language(2) mathematica (1) sh(1)
|-
|-
||REXX||1146||55||3355||40.32 %||68.44 %||31.56 %||8.47 %||rexx REXX Rexx cobol sh
||REXX||1146||56||3373||40.33 %||68.47 %||31.53 %||8.45 %||rexx(1766) text(11) cobol(1) sh(1)
|-
|-
||Java||1137||66||2071||33.54 %||78.56 %||21.44 %||0.01 %||java java5 Java Java5 c bash html5 xml foo make bar cmd java 12 java8 Java8 python shell
||Haskell||1138||45||1355||28.34 %||76.84 %||23.16 %||0.08 %||haskell(2089) text(7) bash(3) Haskell(3) c(1) html5(1) sh(1)
|-
|-
||Haskell||1135||45||1351||28.34 %||76.86 %||23.14 %||0.08 %||haskell Haskell bash c html5 sh text
||Java||1138||66||2077||33.52 %||78.56 %||21.44 %||0.01 %||java(1273) java5(223) text(6) c(4) bash(3) html5(3) xml(3) Java(2) java8(2) make(2) cmd(1) java 12(1) python(1) shell(1)
|-
|-
||Kotlin||1132||47||1365||33.21 %||77.61 %||22.39 %||0.03 %||scala kotlin Kotlin C c Groovy groovy html5 HTML5 java Scheme scheme xml
||Kotlin||1132||47||1365||33.21 %||77.61 %||22.39 %||0.03 %||scala(1110) kotlin(61) c(4) groovy(2) html5(2) scheme(2) java(1) xml(1)
|-
|-
||C++||1112||73||1971||29.28 %||72.7 %||27.3 %||0.02 %||cpp Cpp C++ c c++ CPP sh html5 asm bash C cmake d make text
||C++||1115||73||1973||29.27 %||72.71 %||27.29 %||0.02 %||cpp(1511) c++(14) c(8) text(4) sh(3) html5(2) asm(1) bash(1) cmake(1) d(1) make(1)
|-
|-
||Ruby||1103||32||832||26.17 %||76.49 %||23.51 %||0.06 %||ruby Ruby bash c foo html5 bar baz rust tcl
||Ruby||1103||32||832||26.18 %||76.49 %||23.51 %||0.06 %||ruby(1588) bash(4) c(2) html5(2) Ruby(2) rust(1) tcl(1) text(1)
|-
|-
||Racket||1091||33||1139||26.49 %||75.09 %||24.91 %||0.29 %||racket Racket scheme bash C cmd html5 xml
||Racket||1089||34||1155||26.48 %||75.08 %||24.92 %||0.29 %||racket(1343) scheme(18) text(9) bash(1) c(1) cmd(1) html5(1) xml(1)
|-
|-
||FreeBASIC||1070||47||1234||30.88 %||82.38 %||17.62 %||0.03 %||freebasic FreeBASIC FreeBasic qbasic basic c Freebasic zxbasic
||FreeBASIC||1073||47||1232||30.87 %||82.41 %||17.59 %||0.03 %||freebasic(1128) basic(2) qbasic(2) c(1) text(1) zxbasic(1)
|-
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl c bash csharp html5 r
||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.17 %||29.83 %||0.45 %||ruby sidef shell html5
||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>
<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>