User talk:Thundergnat: Difference between revisions

From Rosetta Code
Content added Content deleted
 
(261 intermediate revisions by 23 users not shown)
Line 1: Line 1:
[[User_talk:Thundergnat/archive|Archive of older talk page entries]]
Hi. Nice job on the Perl6 version of [[Write language name in 3D ASCII]] ! :-)
--[[User:Grondilu|Grondilu]] 19:36, 14 November 2012 (UTC)


Hi Thundergnat.


==Syntax highlighting disappearing after a certain point for some tasks==
Regarding the Perl 6 solution of the checking Machin Style formulas.
The problem is that the Perl 6 solution uses floating point numbers.
The task requires one to use exact computations.


Take the [[List comprehensions]] task for example. It's fine up to and including the Swift entry but then disappears from Tcl onwards even though Tcl definitely has Pygments support. If you press the edit button for Tcl and go immediately to Show Preview then the syntax highlighting appears.
For example:
is tan(atan(1/2)+atan(1/3)), 1;


I thought at first that there must be an unfinished tag or similar in the Swift entry but I can't see anything.
Here atan(1/2) and atan(1/3) produces floating point values.


It's the same on FireFox, Chrome and Safari so unlikely to be a browser problem.
--[[User:Soegaard|Soegaard]] ([[User talk:Soegaard|talk]]) 15:31, 1 June 2013 (UTC)


Any ideas on what could be causing it? --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 16:38, 2 September 2023 (UTC)
== Spam redirect ==
(Posted this on Paddy's page a while back but he doesn't seem to be around atm, maybe you'd like to have a look at it.)


:Just looked at the [[100 doors]] task and the problem there is far worse as SH is gone after the Crystal entry - though again I can't see any obvious cause. Probably something to do with the WikiTide migration as I don't recall seeing this problem with Miraheze. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 17:34, 2 September 2023 (UTC)
Just found the following redirect. It seems to refer to a software company. http://rosettacode.org/mw/index.php?title=CalmoSoft_Fifteen_Puzzle_Game&redirect=no
[[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 19:00, 26 February 2016 (UTC)


::Both [[List comprehensions]] and [[100 doors]] have a category "Pages with too many expensive parser function calls", which I suspect is something to do with it. If you edit the page as a whole and click Show preview, a message appears at the top of the page saying:
: Not spam exactly. More confusion on the part of a new user. As far I as I can determine, CalmoSoft is a person, not a company. That was [[User:CalmoSoft|Calmosoft]]s first contribution to the site, (the first of many) and an overly specific page description was entered. While it wasn't well planned, I don't think it was malicious. That being said, you are probably right, that page probably should be removed at this point. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 20:50, 19 March 2016 (UTC)
:::Warning: This page contains too many expensive parser function calls.
:::
:::It should have less than 99 calls, there are now 106 calls.
::I'm guessing that syntaxhighlight could be the expensive parser function call, though there are about 125 syntaxhighlights in [[List comprehensions]] before it stops... --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 17:58, 2 September 2023 (UTC)


:::Ah,that sounds like it could be the culprit though, if it is, the stewards may be reluctant to do anything about it, as some pages are slow to load as it is. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 18:58, 2 September 2023 (UTC)
== massive changes to Heronian triangles ==
Many many thanks for reverting the massive (and damaging) changes to the Rosetta Code task:   ''Heronian triangles''.


:::I did an experimental edit to [[List comprehensions#Python]] to change it from a rather greedy eight syntaxhighlight to one. (Feel free to undo that.) I wonder if changing the "too many expensive" from a redlink to a real page would a) work, and b) help, and, while I would do it for Phix, whether PureFox would be happy to ferret out similar edits when Wren fails to syntax highlight properly? I rather suspect we'd just have to live with/give up on the 373 on 100 doors, though, or perhaps split it into say A-G, H-N, O-U, and V-Z, or whatever works best?. PS: one thing I noted was that syntaxhighlights with no actual highlighter didn't count towards the limit. --[[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 20:51, 3 September 2023 (UTC)
I didn't want to start an editing war on the task's preamble, but I couldn't let the damaging and negatory changes to the two REXX language's entries, as well as their prologues and epilogues.


::::Well, after Pete’s experiments, it now seems certain that this is where the problem lies. TBH I doubt whether it’s worth the effort of trying to do something manually about this. A lot of tasks will be affected and only a few will be completely fixable. Even then you’d need to watch out for further languages being added which could mess them up again. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 22:34, 3 September 2023 (UTC)
As an aside, it was nice to get the '''Ring''' programming entry back from the graveyard after being eighty-sixed.


:It seems that the limit can be changed: https://www.mediawiki.org/wiki/Topic:Va147qvml961b47p [[User:Laurence|Laurence]] ([[User talk:Laurence|talk]]) 23:18, 3 September 2023 (UTC)
I did, however, sent a rather lengthy thingy to Paddy   (user Paddy3118, the original author of the task);   you should be able to read Paddy's discussion page for what I did, and I tried to explain some of my reasons for my complaint.


::Interesting. It seems that syntax highlighting has only been regarded as an expensive parser function call since version 1.39 which would explain why this wasn’t a problem when RC was hosted by Miraheze or was self-hosted. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 23:37, 3 September 2023 (UTC)
The revert you did of the massive changes didn't revert my latest trivial changes.   I guess Rosetta Code's (or Wiki's) reversion process works better than we hoped.


::: Sorry guys. Had an unanticipated major project at work and have had zero time for Rosetta Code for the past month. Things are starting to settle down, should be around more in the future. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 18:50, 30 September 2023 (UTC)
From now on, I'm going to have to keep a copy of my (REXX'es) prologues and/or epilogues.   I always keep a
:::: Relieved to hear it's not a health issue, which had crossed my mind. --[[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 13:39, 1 October 2023 (UTC)
backup copy of each of the REXX programs, but I don't bother with the extraneous text(s).   I had never thought
that people would be butchering my comments of my REXX programs,   ... but there ya have it.


==Changeable words==
Again, many thanks for your actions.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:42, 8 July 2016 (UTC)
Hi Thundergnat, just to let you know, the output of a large number of samples on the Changeable words task was changed in April 2021. The change was to replace committeewoman and committeewomen with committeeperson and committeepeople. I've changed it back. I assume the change was for "political correctness", just thought I'd advise you I realise you don't get much time for RC. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 16:04, 12 November 2023 (UTC)

:Huh. Bizarre. I find I difficult to figure out what they were trying to achieve. ¯\_(ツ)_/¯ Ah well, no lasting harm done. Thanks. [[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 01:07, 13 November 2023 (UTC)

Latest revision as of 01:07, 13 November 2023

Archive of older talk page entries


Syntax highlighting disappearing after a certain point for some tasks

Take the List comprehensions task for example. It's fine up to and including the Swift entry but then disappears from Tcl onwards even though Tcl definitely has Pygments support. If you press the edit button for Tcl and go immediately to Show Preview then the syntax highlighting appears.

I thought at first that there must be an unfinished tag or similar in the Swift entry but I can't see anything.

It's the same on FireFox, Chrome and Safari so unlikely to be a browser problem.

Any ideas on what could be causing it? --PureFox (talk) 16:38, 2 September 2023 (UTC)

Just looked at the 100 doors task and the problem there is far worse as SH is gone after the Crystal entry - though again I can't see any obvious cause. Probably something to do with the WikiTide migration as I don't recall seeing this problem with Miraheze. --PureFox (talk) 17:34, 2 September 2023 (UTC)
Both List comprehensions and 100 doors have a category "Pages with too many expensive parser function calls", which I suspect is something to do with it. If you edit the page as a whole and click Show preview, a message appears at the top of the page saying:
Warning: This page contains too many expensive parser function calls.
It should have less than 99 calls, there are now 106 calls.
I'm guessing that syntaxhighlight could be the expensive parser function call, though there are about 125 syntaxhighlights in List comprehensions before it stops... --Tigerofdarkness (talk) 17:58, 2 September 2023 (UTC)
Ah,that sounds like it could be the culprit though, if it is, the stewards may be reluctant to do anything about it, as some pages are slow to load as it is. --PureFox (talk) 18:58, 2 September 2023 (UTC)
I did an experimental edit to List comprehensions#Python to change it from a rather greedy eight syntaxhighlight to one. (Feel free to undo that.) I wonder if changing the "too many expensive" from a redlink to a real page would a) work, and b) help, and, while I would do it for Phix, whether PureFox would be happy to ferret out similar edits when Wren fails to syntax highlight properly? I rather suspect we'd just have to live with/give up on the 373 on 100 doors, though, or perhaps split it into say A-G, H-N, O-U, and V-Z, or whatever works best?. PS: one thing I noted was that syntaxhighlights with no actual highlighter didn't count towards the limit. --Petelomax (talk) 20:51, 3 September 2023 (UTC)
Well, after Pete’s experiments, it now seems certain that this is where the problem lies. TBH I doubt whether it’s worth the effort of trying to do something manually about this. A lot of tasks will be affected and only a few will be completely fixable. Even then you’d need to watch out for further languages being added which could mess them up again. --PureFox (talk) 22:34, 3 September 2023 (UTC)
It seems that the limit can be changed: https://www.mediawiki.org/wiki/Topic:Va147qvml961b47p Laurence (talk) 23:18, 3 September 2023 (UTC)
Interesting. It seems that syntax highlighting has only been regarded as an expensive parser function call since version 1.39 which would explain why this wasn’t a problem when RC was hosted by Miraheze or was self-hosted. --PureFox (talk) 23:37, 3 September 2023 (UTC)
Sorry guys. Had an unanticipated major project at work and have had zero time for Rosetta Code for the past month. Things are starting to settle down, should be around more in the future. --Thundergnat (talk) 18:50, 30 September 2023 (UTC)
Relieved to hear it's not a health issue, which had crossed my mind. --Petelomax (talk) 13:39, 1 October 2023 (UTC)

Changeable words

Hi Thundergnat, just to let you know, the output of a large number of samples on the Changeable words task was changed in April 2021. The change was to replace committeewoman and committeewomen with committeeperson and committeepeople. I've changed it back. I assume the change was for "political correctness", just thought I'd advise you I realise you don't get much time for RC. --Tigerofdarkness (talk) 16:04, 12 November 2023 (UTC)

Huh. Bizarre. I find I difficult to figure out what they were trying to achieve. ¯\_(ツ)_/¯ Ah well, no lasting harm done. Thanks. Thundergnat (talk) 01:07, 13 November 2023 (UTC)