Talk:Ordered words: Difference between revisions

→‎No Dictionary?: possible solution
m (→‎A bug (which was not really a bug) in Rexx solution: added a comment, made the 1/4 glyph into HTML friendly code.)
(→‎No Dictionary?: possible solution)
 
(6 intermediate revisions by 3 users not shown)
Line 345:
These are the results for REXX exact vs. regular comparisons as per Walter's request.
 
<br>I no longer have the original ''regular compare'' vs. ''exact compare'' REXX benchmarkingbench-marking programs,
<br>but I took the (above) existing code and ripped its guts out (er, disembowelleddisemboweled it), and made a
<br>simple benchmark test out of it.
 
I soon discovered that the two versions of the '''if''' statement was being drawfeddwarfed by the
<br>overhead of the '''do''' loop, so I unrolled the '''if''' statements.
 
Just for grins, I reversed the order of the compares on every other compare, and I was
<br>somewhat surprised that more CPU time was consummedconsumed.
<br>I left that modification in the benchmark program.
 
Line 359:
<br>installed on my two computers, plus an o-o REXX interpreter:
 
::* &nbsp; R4
::* &nbsp; ROO
::* &nbsp; Regina
::* &nbsp; Personal REXX
 
<lang rexx>/*REXX*/ parse version _; say 'version:' _; say
Line 456:
<br>As with most benchmarks, I often feel that I'm leading a horse to water ...
<br> -- [[User:Gerard Schildberger|Gerard Schildberger]] 23:32, 16 July 2012 (UTC)
 
 
P.S.: &nbsp; I benchmarked the programs on an air-gap computer. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 07:02, 15 August 2018 (UTC)
 
-----
 
ooRexx Results for the above 2 programs thar surprised me (a little):
<pre>
Line 471 ⟶ 475:
 
==Ruby Golfing?==
It looks as if the last Ruby example is just a "Code golf" olutionsolution and is not idiomatic Ruby. If so then it probably shouldn't be on RC.
 
What do you think?<br>
Line 481 ⟶ 485:
 
--[[User:Jtprince|Jtprince]] ([[User talk:Jtprince|talk]]) 15:52, 14 August 2015 (UTC)
 
==No Dictionary?==
At this moment, the URL for the dictionary (http://www.puzzlers.org/pub/wordlists/unixdict.txt) is returning a 401. Is any action required to remedy this?
 
--[[User:Balrog|Balrog]] ([[User talk:Balrog|talk]]) 20:20, 14 August 2018 (UTC)
 
: Yes, it would be nice to have a (stable) version of the &nbsp; '''unixdict.txt''' &nbsp; stored somewhere on Rosetta Code, &nbsp; that way, &nbsp; any new computer programming examples would be consistent with those entered before the latest updates or changes that might have been made to the original (dictionary) file. &nbsp; Plus it would eliminate the possibility of any 401 and 404 errors, &nbsp; and the possibility of added cookies from the original host site mentioned above. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:50, 14 August 2018 (UTC)
 
::I started to look into it, but have to stop, myself. I got as far as [http://www.puzzlers.org/word-lists this page] which states that '''some''' of the lists may be open-source. If someone finds that we could site the list here then we might then try and get a copy re-hosted; but it would have to be the exact same page or saved as a latin_1 encoded text file. (We would not want a copy to cause problems with existing code).
 
:::I successfully accessed the wordlist using the "Wayback Machine" with this URL ==> https://web.archive.org/web/20180611003215/http://www.puzzlers.org/pub/wordlists/unixdict.txt
:::I'll edit that URL into the page. If that's a mistake feel free to back out my change.
:::--[[User:Balrog|Balrog]] ([[User talk:Balrog|talk]]) 19:16, 7 June 2019 (UTC)
Anonymous user