Talk:Anagrams: Difference between revisions

m
added a section header for the very first (talk) discussion to force the TOC (table-of-contents) to the correct location.
m (added a section header for the very first (talk) discussion to force the TOC (table-of-contents) to the correct location.)
 
(20 intermediate revisions by 5 users not shown)
Line 1:
==not acronyms==
Yep, I know now, they are not acronyms. --[[User:Paddy3118|Paddy3118]] 20:34, 24 September 2008 (UTC)
:Do you want to call them "anagrams" instead? --[[User:DanBron|DanBron]] 18:04, 25 September 2008 (UTC)
Line 31 ⟶ 32:
No problem with ooRexx!
--[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 22:56, 6 May 2013 (UTC)
 
[[ooRexx]] and roo!<sup>TM</sup> use completely different conventions to glue Object Oriented capabilities onto Rexx and as such it's unlikely that any non-trivial &quot;Object Oriented&quot; ooRexx program will run with the roo!<sup>TM</sup> interpreter and vice versa.--[[User:Alansam|Alansam]] ([[User talk:Alansam|talk]]) 03:39, 7 May 2013 (UTC)
 
==FBSL calling C: Is it useful?==
Line 159 ⟶ 162:
::::: Michael Lobko-Lobanovsky
::::: FBSL Development Team
 
:::::: Michael, there is no hammering of a gavel from above. Or, at least, if there is, that's ''me''. I'm the benevolent dictator that typically stands back; RC has, for five or six years, largely managed to get by with a relatively loose set of rules and norms, with a bunch of people who are not infrequently by nature at cross purposes muddling their way through and coming up with mutually amicable results. I myself only step in very rarely, and when I do, it's usually to resolve a technical legal issue surrounding the site (that's the trouble with being a "sole proprietor"...) or, on occasion, intercepting conversations which appear to be drifting more to the heat of argument than actual communication. It's the latter of those two activities for which I make most of my appearances, and I only have to do that every 2-3 months or so, on average. But it happens, and it happens because humans are humans, and communication of intent is an inherently faulty thing, and I sometimes have to toss a bucket of water on things when I see sparks. That's just the nature of the thing. The people who come here and stick around genuinely have common interests. They may have a basis in advocacy, of education or of learning, but their interests are all served by figuring out how to work with each other.--[[User:Short Circuit|Michael Mol]] ([[User talk:Short Circuit|talk]]) 02:29, 7 May 2013 (UTC)
:::::: The single, biggest thing you need to pick up here (and this is why I'm speaking up), is that the people on this site do not intentionally take adversarial roles. And whether or not you believe someone else was adversarial first, it's vital that you not allow an adversarial attitude to express itself in what you writing; perhaps they had a bad day, perhaps not, but adding fuel to the fire won't help. (I.e. "Now Paddy will no for sure that...That's that Paddy. Live and learn." That's adversarial, and you do no favors for yourself or anyone else by taking side shots that way.) I'm not going to name names, but I can think of incidents around at least three current major contributors to the site who, when they first arrived, had adversarial mindsets. To some extent, they still do...but they've learned to draw themselves away from the heat of argument and back toward communication, and they work out incredibly constructive agreements, sometimes after a day or two of completely talking past each other. --[[User:Short Circuit|Michael Mol]] ([[User talk:Short Circuit|talk]]) 02:29, 7 May 2013 (UTC)
:::::: Again, I'm not bringing down a gavel. This is more like a hand on the shoulder and gently saying "keep your shirt on." --[[User:Short Circuit|Michael Mol]] ([[User talk:Short Circuit|talk]]) 02:29, 7 May 2013 (UTC)
:::::: Oh, and don't call me "sir", unless you're sending me a generic legal document; this place isn't that formal. :) --[[User:Short Circuit|Michael Mol]] ([[User talk:Short Circuit|talk]]) 02:29, 7 May 2013 (UTC)
::::::: Michael, I know who you are to this site hence my "sir". I was addressing the arbiter for a final judgment so my message was sort of legal-looking. I was prepared to abide by any possible ruling but frankly, I was only glad to find so much common sense and intelligence in what I finally got. Thank you. I'll adhere to what you're suggesting and I'll try to concentrate on my creative work more than on concomitant counter propaganda. :) TheWatcher 09:46, 7 May 2013 (UTC)
 
== REXX ==
 
words should be shown as they are (not uppercased) !?! --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 06:21, 5 August 2013 (UTC)
 
: I added the uppercase because I didn't assume the dictionary (wordlist) is in any particular case (or the word may be capitalized). &nbsp; As it stands, the dictionary being used is all lowercase. &nbsp; '''EVIL''' is still an anagram of '''vile''' and '''Live'''. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 07:08, 5 August 2013 (UTC)
 
-----
 
It may be noteworthy to mention that timings (see ooRexx) for various languages have been discouraged on Rosetta Code.
 
http://rosettacode.org/wiki/User_talk:Paddy3118#Comparisons
 
(Especially for examples that no longer exist!) &nbsp; Getting repeatable results is problematic. &nbsp; Also, not knowing what hardware and/or operating system and/or which compiler/interpreter (or version) was used, or for that matter, what ''code'' (program statements) were used, &nbsp; etc, &nbsp; makes it difficult to judge the veracity of the timings. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 07:33, 5 August 2013 (UTC)
 
:: You could have said: "thanks for making me improve my code (significantly) no matter what hardware is used." But he who expects nothing shall not be disappointed. The example still exists in rosettacode's history. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 11:40, 5 August 2013 (UTC)
 
There seems to be an error in the REXX code. Applying the program to a very small dictionary
<pre>
abc
acb
bac
bca
cab
cba
</pre>
yields
<pre>
------------------------------ 6 words in the dictionary file: u.txt
ABC ACB BAC BCA CAB
 
Found 1 words (each of which have 4 anagrams).
</pre>
whereas the ooRexx programs yield
<pre>
abc acb bac bca cab cba
</pre>
which is what I have expected. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:01, 5 August 2013 (UTC)
: Maybe I introduced this error with my modifications. pls verify the original! --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:03, 5 August 2013 (UTC)
 
:: No, you didn't introduce an error. &nbsp; It was an overzealous filtering statement that I put in to optimize the reading. &nbsp; I removed the offending statement and all is now well. &nbsp; Thanks for finding that error (it only manifests itself if the number of anagrams exceed the number of letters in the word). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:17, 5 August 2013 (UTC)
 
-----
 
<strike>
The REXX version 2 program won't find all the anagrams if some words are in mixed case. &nbsp; Furthermore, if all the words are in uppercase, no anagrams are found:
</strike>
<strike>
<pre>
There are 0 set(s) of anagrams with 24819 elements each:
</pre>
</strike>
I suspect that many of the programming examples won't handle a mixed case dictionary &nbsp; (should treat '''Live''' as an anagram of '''EVIL''').
 
Since the entire dictionary '''unixdict.txt''' is in lowercase, the mixed case error situation will remain hidden for most programs.
 
-- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 06:06, 8 August 2013 (UTC)
 
: REXX version 1 is now close to perfect. thanks --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 07:47, 9 August 2013 (UTC)
 
:: I've added a faster version &nbsp; (but it has it drawbacks). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 01:13, 12 August 2013 (UTC)
 
::: After adapting the new versions (=; -> =<nowiki>''</nowiki>; @ -> aa # -> nn) and adding the invocations for time('R') and time('E'), I used this driver
<pre>
call gsana11
call gsana12
call gsana13
to get these timings on Windows/ooRexx
1.1 1.279000
1.2 1.201000
1.3 1.139000
PS I had to add a call lineout ifid in order to close the
input file before staring the next program.
I was severely burnt when not closing a file on the host
when the next program used 'my' ddname and the allocated dataset.
</pre>
--[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 16:07, 12 August 2013 (UTC)