User:Jgrprior: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Comment on slowness)
(Restore example after module fix)
 
Line 26: Line 26:


: 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)
: 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 ===
=== Usage ===
Line 46: Line 48:


=== Example ===
=== Example ===

'''Initial tests show this approach is far too slow, so the example output has been removed.'''


The following example output from invoking [[Module:Unimplemented]] will likely change during development of the script.
The following example output from invoking [[Module:Unimplemented]] will likely change during development of the script.
Line 54: Line 54:
<nowiki>{{#invoke:</nowiki>Unimplemented|tasks|Go}}
<nowiki>{{#invoke:</nowiki>Unimplemented|tasks|Go}}
</pre>
</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.

Excellent Python versions. Many thanks. Hout (talk) 10:11, 28 July 2022 (UTC)

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)
Replacing mw.text.split with a local split function has resolved some of the speed problems. Jgrprior (talk) 07:25, 7 February 2023 (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}}