Talk:Rosetta Code/Run examples: Difference between revisions

m
→‎Overly ambitious: Maybe online link like TryItOnline, that cache results for a period of time
(→‎Overly ambitious: A useful, simpler starting point)
m (→‎Overly ambitious: Maybe online link like TryItOnline, that cache results for a period of time)
 
(5 intermediate revisions by 2 users not shown)
Line 36:
 
:Perhaps a simpler task would be "Download all samples in Language X". That would provide a starting point for someone wanting to run them but would also be useful for other purposes such as programming language research (see "A Comparitive Study Of Programming Languages In Rosetta Code" by Sebastian Nanz and Carlo A. Furia), or using RC as a compiler test suite. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 11:04, 16 February 2020 (UTC)
 
::That's basically what the 'extra credit' is asking for and, yes, it might be useful for academic purposes. But, as far as the task itself is concerned, it may still be impractical for languages which have a lot of entries some of which take hours to run (days in the case of one Pascal entry I can recall!). --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 18:29, 16 February 2020 (UTC)
::: Little off topic [[First perfect square in base N with N unique digits]] runs with constant limits 2..28 on TryItOnline "completed in 26.534 seconds"<BR>See [[Rare numbers]] "19 digits: 6,609,905 ms" they are really rare ;-) <BR>I thought something like TryItOnline could be a solution, so that the creator her/himself would add a link, maybe with reduced limits, to stay in their runtime limits.But thats not the task --[[User:Horst.h|Horst.h]][[User:Horst.h|Horst.h]] ([[User talk:Horst.h|talk]]) 07:11, 17 February 2020 (UTC)
 
== Self reference ==
Line 62 ⟶ 65:
:::::I thought Pete made a good point about having some way of determining whether code was runnable or not and ideally you should include the version number and platform(s) as well. But, whilst that might be good practice for the future, it's difficult to see how one could enforce it and, even if you could, trying to deal with what's happened in the past for all languages would be impractical in any case.--[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 20:56, 15 February 2020 (UTC)
 
::::I see you've added Go to the Perl 6 entry's repertoire and that it's already earned its keep by identifying non-running code in the [[Determine_if_a_string_is_numeric#Go]] entry :)
 
::::The first example predates Go 1.0 (2012) and possibly was valid syntax at the time. Anyway I've brought it up to date now.
 
::::The second example was only added recently and doesn't strictly meet the task requirements as it only checks for integer-ness. However, I've cleaned it up a bit and let it stand in the circumstances.
 
::::Looks like I might have to check through the old Go examples to make sure they still work.--[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 18:21, 16 February 2020 (UTC)
::::::Another idea is to restrict efforts to http://rosettacode.org/wiki/Category:Simple --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 10:30, 16 February 2020 (UTC)
:::::::Although that would have the merit of keeping the code and output fairly short, it still won't detect non-running code. For example, the [[Determine_if_a_string_is_numeric#Go]] task which I referred to above is classified as "simple". --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 18:25, 16 February 2020 (UTC)
:::::::: Hmm. Yeah, sorry about highlighting that. I just picked that example to contrast with the Perl 6 example of the same task (and also to demonstrate the ability to run multiple code blocks), noticed that it had a problem but was out of time at the moment so just went with it. Thanks for fixing it up. Fixed example code on this task page too. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 22:06, 16 February 2020 (UTC)
::::::::: No problem, glad you did highlight it as there's nothing worse than examples which don't work. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 00:34, 17 February 2020 (UTC)
Anonymous user