User:Jgrprior: Difference between revisions
Content added Content deleted
m (External Link test) |
(Restore example after module fix) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
: Excellent Python versions. Many thanks. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:11, 28 July 2022 (UTC) |
: Excellent Python versions. Many thanks. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:11, 28 July 2022 (UTC) |
||
== Experimental unimplemented tasks by language == |
|||
[https://github.com/jg-rp/bad-lang-tags this (GitHub)] and [https://docs.google.com/spreadsheets/d/1HHkDJsBD4X_pl9E6oBnOebdCzX-XhQcRVnVIIhgq7Ks/edit?usp=sharing this (Google docs)] |
|||
The [https://www.mediawiki.org/wiki/Extension:Scribunto Lua script] defined at |
|||
[[Module:Unimplemented]] attempts to work around [https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages Semantic MediaWiki's limitations] |
|||
by deriving a list of unimplemented tasks from multiple SMW [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries inline queries]. |
|||
This script could then be invoked from a suitable [https://www.mediawiki.org/wiki/Help:Templates template]. |
|||
The early, untested assumption is that this approach will be too inefficient to be useful, |
|||
especially considering the SMW query result limit of 500 records. |
|||
: Initial tests have indeed show this approach to be far too slow. [[User:Jgrprior|Jgrprior]] ([[User talk:Jgrprior|talk]]) 07:02, 2 October 2022 (UTC) |
|||
:: Replacing <code>mw.text.split</code> with a local split function has resolved some of the speed problems. [[User:Jgrprior|Jgrprior]] ([[User talk:Jgrprior|talk]]) 07:25, 7 February 2023 (UTC) |
|||
=== Usage === |
|||
[https://www.mediawiki.org/wiki/Extension:Scribunto#Usage Invoke] [[Module:Unimplemented]] |
|||
with one of the <code>tasks</code>, <code>drafts</code> or <code>omitted</code> functions and the target language. |
|||
Here we've used <code>TypeScript</code> as the example language. |
|||
<pre> |
|||
<nowiki>{{#invoke:</nowiki>Unimplemented|tasks|TypeScript}} |
|||
</pre> |
|||
<pre> |
|||
<nowiki>{{#invoke:</nowiki>Unimplemented|drafts|TypeScript}} |
|||
</pre> |
|||
<pre> |
|||
<nowiki>{{#invoke:</nowiki>Unimplemented|omitted|TypeScript}} |
|||
</pre> |
|||
=== Example === |
|||
The following example output from invoking [[Module:Unimplemented]] will likely change during development of the script. |
|||
<pre> |
|||
<nowiki>{{#invoke:</nowiki>Unimplemented|tasks|Go}} |
|||
</pre> |
|||
{{#invoke:Unimplemented|tasks|Go}} |
Latest revision as of 07:25, 7 February 2023
My Favorite Languages | |
Language | Proficiency |
C | Very Rusty |
C++ | Rusty |
Go | Rusty |
Java | Rusty |
JavaScript | Active |
PL/pgSQL | Rusty |
Python | Active |
SQL | Active |
TypeScript | Active |
Hi, I'm James.
Experimental unimplemented tasks by language
The Lua script defined at Module:Unimplemented attempts to work around Semantic MediaWiki's limitations by deriving a list of unimplemented tasks from multiple SMW inline queries. This script could then be invoked from a suitable template.
The early, untested assumption is that this approach will be too inefficient to be useful, especially considering the SMW query result limit of 500 records.
- Initial tests have indeed show this approach to be far too slow. Jgrprior (talk) 07:02, 2 October 2022 (UTC)
Usage
Invoke Module:Unimplemented
with one of the tasks
, drafts
or omitted
functions and the target language.
Here we've used TypeScript
as the example language.
{{#invoke:Unimplemented|tasks|TypeScript}}
{{#invoke:Unimplemented|drafts|TypeScript}}
{{#invoke:Unimplemented|omitted|TypeScript}}
Example
The following example output from invoking Module:Unimplemented will likely change during development of the script.
{{#invoke:Unimplemented|tasks|Go}}
- Anagram generator
- Babylonian spiral
- Bifid cipher
- Boustrophedon transform
- Boyer-Moore string search
- Camel case and snake case
- Centre and radius of a circle passing through 3 points in a plane
- Cycles of a permutation
- Distance and Bearing
- Dominoes
- Euler's constant 0.5772...
- Factorial primes
- Factorize string into Lyndon words
- Fermat pseudoprimes
- GSTrans string conversion
- Gaussian primes
- Goldbach's comet
- Gotchas
- Greatest prime dividing the n-th cubefree number
- Hex words
- Inconsummate numbers in base 10
- Isograms and heterograms
- Klarner-Rado sequence
- Lyndon word
- Numbers k such that the last letter of k is the same as the first letter of k+1
- P-Adic square roots
- Pan base non-primes
- Particle fountain
- Peripheral drift illusion
- Primes: n*2^m+1
- Radical of an integer
- Random sentence from book
- Riordan numbers
- Search in paragraph's text
- Set, the card game
- Sieve of Pritchard
- Simple turtle graphics
- Sisyphus sequence
- Soloway's recurring rainfall
- Sorensen–Dice coefficient
- Sub-unit squares
- Super-Poulet numbers
- Transliterate English text using the Greek alphabet
- Tupper's self-referential formula
- Two's complement
- Undulating numbers
- Universal Lambda Machine
- Variadic fixed-point combinator
- Wasteful, equidigital and frugal numbers
- Wordiff
- Worthwhile task shaving
- Zsigmondy numbers