IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Mike-Shunning Competition
We want to shun Mike 50 times in the least amount of code possible.

Here's my Perl effort:

perl -e 'for(;$i<50;$i++){print "*shun*\\n";};'


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New Bitches.
All y'all.
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Shunning Mike with the Snake:
\npython -c "print '*shun*\\n'*50"\n


Not a one-liner, but fewer characters to type overall (and slightly different output, but still shunful):

[~]$ python
Python 2.0 (#1, May 16 2001, 00:02:45)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> '*shun* ' * 50
'*shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* '


Oh, BTW: *shun*
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
Expand Edited by admin Nov. 25, 2002, 12:58:39 PM EST
New Bitch
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New *shun*
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New *shun*


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New self.idle("stop"); self.shun("Mike"); self.idle("start");
===
Microsoft offers them the one thing most business people will pay any price for - the ability to say "we had no choice - everyone's doing it that way." -- [link|http://z.iwethey.org/forums/render/content/show?contentid=38978|Andrew Grygus]
New Bitch
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Stop yer bitchin', bitch.
New Who asked you?
Schweineficker.
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New bashun
\r\nwhile echo '*shun*';do :;done|head -50\r\n
\r\n\r\n

39 characters.

--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New Python still the one to beat at 31 characters.
Oh, btw, Mike: *shun*
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Well I Wouldn't want to shun Mike, but...
if I simply had to shun somebody, maybe:

fort=1to50:?"*shun* ";:next

would be the way to do it on a Commodore 64 (Vic, 128, whatever) in 27 characters.

(Edit: Formatting)
John. Busy lad.
Expand Edited by Meerkat Nov. 25, 2002, 06:40:33 PM EST
New Oooers...
Nice and... cramped. I like. ;-)
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Not you, too!
Bitch.
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Nice, but a wee problem...
If you ever LISTed the code, it would expand out the '?' to PRINT IIRC...

I'm getting an urge to write an auto*SHUN*ner in Brainf**k - anybody else tempted?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
New Not any more it ain't
ruby -e'puts"*shun*\\n"*50'

Clocks in at 26.

And your Python golf sucks. Here is 29.

python -c"print'*shun*\\n'*50"

But if the goal is just to get *shun* to appear 50 times, I think the following is pretty decent.

ruby -e'p"*shun*"*50'


21 chars.

The following is probably cheating...

ruby -e'p"*shun"*51'

Cheers,
Ben

PS Why not Perl? Use the right tool for the job and all that. Ruby was a better choice this time. :-)

PPS Peter: Learn to loop over ranges already? No need to make Perl look like it sucks more than it does already. :-)
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly."
- [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
New Perl range answer
perl -e "for(1..50){print\\"*shun*\\n\\";}"


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New Now inline it
perl -e'print"*shun*
"for 1..50'

Or using Scott's trick:

perl -e'print"*shun*
"x50'

(Both assume a Unix-like shell.)

Cheers,
Ben

PS Ruby still wins at 25:

ruby -e'puts"*shun*
"*50'

PPS OK, there is a shorter entry, but it didn't include invoking the language etc. The Ruby program proper is 16 chars.
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly."
- [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
New Re: bashun II
\r\nyes '*shun*'|head -50\r\n
\r\n\r\n

21 characters. Best I can tell, invoking an interpreter from the\r\nnext shortest solution involves more characters (that would be Scott's\r\nPython solution).

\r\n\r\n\r\n
--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New woah... I like it...
b4k4^2
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT
[link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!]   [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!]
[link|http://www.eweek.com/article2/0,3959,857673,00.asp|Writing on wall, Microsoft to develop apps for Linux by 2004]
Heimatland Geheime Staatspolizei reminds:
These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them.
"Questions" will be asked at safety checkpoints.
New Reading trouble?
If you read the rest of the thread, the shortest existing solution was [link|http://z.iwethey.org/forums/render/content/show?contentid=64997|mine]. I beat Scott for nice output using Ruby, tied you for just satisfying the rules (albeit with ugly output), and if you make a judgement call just right, I beat you as well. :-P

But that is a nice answer...

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
Expand Edited by ben_tilly Feb. 17, 2003, 10:36:52 AM EST
New bitch, etc
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Re: bashun III

Turns out the quotes aren't necessary at least in bash. Need to find\r\nout more about what the globbing rules are.

\r\n\r\n
\r\nyes *shun*|head -50\r\n
\r\n
--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New Very nasty
It works...unless there is a file in the directory that matches the pattern *shun*.

Still good enough that I consider it a winner. :-)

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New You can lose a character
Pointed out by a co-worker...

yes '*shun*'|sed 50q

Or lose the quotes if no files have shun in the name.

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New The undisputed master?
Ahem, les'see if y'all recognize this syntax:

:X
ECHO SHUN
GOTO X

Yup -- MS-Dos! ;^)

Fifteen characters -- or, OK, twenty-one, if you count the CR and LF at the end of each line as two separate characters.

And it goes right on shunning him (why, BTW?) for EVER! :-)
   Christian R. Conrad
Mechanisation

As our souls are slowly stolen
The wheels of progress keep steamrolling
Mechanisation melts our minds
To drive the furnace that drives us blind. -- [link|http://www.vergenet.net/~conrad/poetry/mechanisation.html|© Conrad Parker, 1993]
New Nope, invalid entry.
50 times only, not infinitely. Read the entry rules before embarrassing yourself next time.

You're missing the * around the *shun* as well.

Thanks for playing, drive through.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Not only that...
...but a schweineficker who admits to knowing MS-DOS batch programming syntax.

For shame, Xian.
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Bigger, badder, better...
public class shun {\n  public static void main(String[] args) {\n    String[] names = { "Peter", "Scott", "Droog", "Xian", "GFolkert", "KMS", "Meerkat" };\n\n    for (int x = 0; x < names.length; x++) {\n      for (int y = 0; y < 50; y++) {\n        System.out.println("*shun " + names[x] + "*");\n      }\n    }\n  }\n}

-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Obfuscated, test cases included.
Fore!

[mike@halfadozen ~/IWT]$ ls\ntotal 16\n-rw-rw-r--    1 mike     mike          255 Nov 26 18:21 Person.java\n-rw-rw-r--    1 mike     mike          601 Nov 26 20:02 PersonShun.java\n-rw-r--r--    1 mike     mike          705 Nov 26 18:46 PersonTest.java\n\n[mike@halfadozen ~/IWT]$ cat Person.java\npublic class Person {\n  private String _name;\n\n  public Person() {\n    _name = "";\n  }\n\n  public Person(String name) {\n    _name = name;\n  }\n\n  public void setName(String name) {\n    _name = name;\n  }\n\n  public String getName() {\n    return _name;\n  }\n}\n\n[mike@halfadozen ~/IWT]$ cat PersonTest.java\nimport Person;\nimport junit.framework.*;\n\npublic class PersonTest extends TestCase {\n  public PersonTest(String name) {\n    super(name);\n  }\n\n  public void testSetName() {\n    Person p = new Person();\n\n    p.setName("Mike");\n    Assert.assertTrue(p.getName().equals("Mike"));\n  }\n\n  public void testBlankConstructor() {\n    Person p = new Person();\n\n    Assert.assertTrue(p.getName().equals(""));\n  }\n\n  public void testNamedConstructor() {\n    Person p = new Person("Mike");\n\n    Assert.assertTrue(p.getName().equals("Mike"));\n  }\n\n  public static Test suite() {\n    return new TestSuite(PersonTest.class);\n  }\n\n  public static void main(String[] args) {\n    junit.textui.TestRunner.run(suite());\n  }\n}\n\n[mike@halfadozen ~/IWT]$ cat PersonShun.java\nimport Person;\n\npublic class PersonShun {\n  private static String[] names = { "Peter", "Scott", "Droog", "Xian", \n                                    "Greg", "KMS", "Meerkat", "Jake" };\n\n  private static void doShun(Person p) {\n    System.out.println("*shun " + p.getName() + "*");\n  }\n\n  public static void main(String[] args) {\n    Person[] people = new Person[names.length];\n\n    for (int i = 0; i < names.length; i++) {\n      people[i] = new Person(names[i]);\n    }\n\n    for (int x = 0; x < names.length; x++) {\n      for (int y = 0; y < 50; y++) {\n        doShun(people[x]);\n      }\n    }\n  }\n}\n\n[mike@halfadozen ~/IWT]$ javac Person.java\n[mike@halfadozen ~/IWT]$ javac PersonTest.java \n[mike@halfadozen ~/IWT]$ javac PersonShun.java \n[mike@halfadozen ~/IWT]$ java PersonTest\n...\nTime: 0.005\n\nOK (3 tests)\n\n[mike@halfadozen ~/IWT]$ java PersonShun\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New /me thinks Mike has entirely too much free time
/me therefore *shun*'s his lameness.
===
Microsoft offers them the one thing most business people will pay any price for - the ability to say "we had no choice - everyone's doing it that way." -- [link|http://z.iwethey.org/forums/render/content/show?contentid=38978|Andrew Grygus]
Expand Edited by drewk Nov. 26, 2002, 02:21:03 PM EST
Expand Edited by drewk Nov. 26, 2002, 02:21:04 PM EST
New Absolutely.
But then again, who needed another reason to *shun* Mike?
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Not much else to do...
...in a country where you don't speak the language, and it's dark before you leave the office even if you leave when everyone else does.

Chat with friends back in the States over IM. Shun y'all. And learn about JUnit. All good fun.

Or: Go back to the room and read a book, I suppose. Or go back to the room and play Moria, or Myst, or kobo-deluxe (damn you Peter.)
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Level 33
Read it and weep.

*shun*


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New Yeah, what's your point?
Level 33. Im-fucking-possible.

*shun*

Bitch.
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New Re: Mike-Shunning Competition
classic rexx:

do 50; say '*shun*'; end


object rexx:

do 50; .output~lineout('*shun*'); end


... though the classic rexx code will work just fine in the object rexx interpreter, of course.
--\n-------------------------------------------------------------------\n* Jack Troughton                            jake at consultron.ca *\n* [link|http://consultron.ca|http://consultron.ca]                   [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\n* Laval Qu\ufffdbec Canada                   [link|news://news.consultron.ca|news://news.consultron.ca] *\n-------------------------------------------------------------------
New Well, if we're running in the interpreter:
Python:

'*shun*'*50

will output *shun* 50 times.

Does Rexx have a command-line option?
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Yeah, it's called rexxtry

Actually, that's the format you'd use in rexxtry:

\r\n\r\n
rexxtry do 50; say '*shun*'; end
\r\n\r\n

Hmmm... using object rexx you could do something like this:

\r\n\r\n
rexxtry say ('*shun*'0d0a~x2c)~copies(50)
\r\n\r\n

which will put out fifty lines. If you don't care about actual lines of output, you could do

\r\n\r\n
rexxtry say '*shun*'~copies(50)
\r\n\r\n

Of course, if you wanted to mix'n'match functional/oo ("Heresy!", he cried), you might want to change the second example to be

\r\n\r\n
rexxtry charout(,('*shun*'0d0a~x2c)~copies(50))
\r\n\r\n

Or, alternatively, and keeping more in tune with the built-in object model, you could do

\r\n\r\n
rexxtry .output~charout(('*shun*'0d0a~x2c)~copies(50))
\r\n\r\n

All depends on how you want to go about it, I guess:)

--\r\n-------------------------------------------------------------------\r\n* Jack Troughton                            jake at consultron.ca *\r\n* [link|http://consultron.ca|http://consultron.ca]                   [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\r\n* Laval Qu\ufffdbec Canada                   [link|news://news.consultron.ca|news://news.consultron.ca] *\r\n-------------------------------------------------------------------
New way back in the stone ages...
I wrote a little utility called REXX. It would take a REXX statement and execute it, or if there were no arguments it would simulate a shell environment. I used it alot. I just checked. I still have it. Here's the opening comments:
\n/* Interactive REXX */                                          \n                                                                \n/* written  ??/??/?? by Carl Forde                            */\n/* modified 89/09/07 by Carl Forde - no errortext for NOVALUE */\n/*                                 - display command instead  */\n/* modified 90/02/01 by Carl Forde - remove signal on ERROR   */\n

By changing the filetype it would run as an XEDIT macro. Very handy for debugging XEDIT applications.
wow. makes me all nostalgic.
Have fun,
Carl Forde
New Bitch.
You get included in the program, now, too.
-YendorMike

[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
New I am honoured.
'Tis far nobler a thing... ;)
--\r\n-------------------------------------------------------------------\r\n* Jack Troughton                            jake at consultron.ca *\r\n* [link|http://consultron.ca|http://consultron.ca]                   [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\r\n* Laval Qu\ufffdbec Canada                   [link|news://news.consultron.ca|news://news.consultron.ca] *\r\n-------------------------------------------------------------------
New Gotta do an Icon version...
Lessee... every 1 to 50 do write("*shun*")

I could probably shorten that.... every (1 to 50, write("*shun*"))

Or perhaps... write(repl("*shun*", 50))

:-)

Wade, who would be interested in the background of this "shunning".

"Ah. One of the difficult questions."

New Re: Mike-Shunning Competition
50 1 r <'shun'


or even

50 4 r 'shun'


APL. Prints "shun" 50 times in a column.


r = reshape operator < = enclose operator

< makes a scalar out of the 4-vector 'shun'

50 1 r means reshape into a 50x1-matrix. Repeat when list exhausted, so all 50x1 elements are "shun". Second version depends on fact that a string is really a vector.
-drl
Expand Edited by deSitter Oct. 3, 2003, 09:12:51 PM EDT
Expand Edited by deSitter Oct. 3, 2003, 09:17:29 PM EDT
New What, no prize??
-drl
New Well...
It didn't include the *'s around *shun*. It didn't run from the command line. And was about the same length as some of the other solutions.

:-P

Ben

PS: It is longer, but I like the elegance of the following illustration that in Ruby even numbers are objects:

ruby -e '50.times {puts"*shun*"}'
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New Re: Well...
That is nice :) SAX APL has a "ply" operator like that:

(operator.integer) operand

applies operator integer-times to operand.

I often think of looking into Ruby, but then think, Python has broad support, so do that instead, but no, I like what I've heard of Ruby, but Python is widely used, but Ruby, but Python, but but but..

*overflow*

state indicator cleared

SAX APL has a very nice concept of functors, operators that spit out modified operators. Anything like that in Ruby?

-drl
New Perhaps an example would help clarify
In Ruby you can write methods that take methods as arguments and wrap them in different methods. But that is probably not what you are thinking - it is just a consequence of supporting closures and dynamic programming techniques.

Haskell has something closer to what you probably are thinking of. At least it is called a Functor there as well...

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New Clearly: this is how MAN entries are edited.__All explained.
     Mike-Shunning Competition - (pwhysall) - (48)
         Bitches. - (Yendor)
         Shunning Mike with the Snake: - (admin) - (7)
             Bitch -NT - (Yendor) - (6)
                 *shun* -NT - (admin)
                 *shun* -NT - (pwhysall)
                 self.idle("stop"); self.shun("Mike"); self.idle("start"); -NT - (drewk) - (3)
                     Bitch -NT - (Yendor) - (2)
                         Stop yer bitchin', bitch. -NT - (CRConrad) - (1)
                             Who asked you? - (Yendor)
         bashun - (kmself) - (15)
             Python still the one to beat at 31 characters. - (admin) - (7)
                 Well I Wouldn't want to shun Mike, but... - (Meerkat) - (3)
                     Oooers... - (admin)
                     Not you, too! - (Yendor)
                     Nice, but a wee problem... - (inthane-chan)
                 Not any more it ain't - (ben_tilly) - (2)
                     Perl range answer - (pwhysall) - (1)
                         Now inline it - (ben_tilly)
             Re: bashun II - (kmself) - (6)
                 woah... I like it... -NT - (folkert)
                 Reading trouble? - (ben_tilly)
                 bitch, etc -NT - (Yendor)
                 Re: bashun III - (kmself) - (1)
                     Very nasty - (ben_tilly)
                 You can lose a character - (ben_tilly)
         The undisputed master? - (CRConrad) - (2)
             Nope, invalid entry. - (admin)
             Not only that... - (Yendor)
         Bigger, badder, better... - (Yendor) - (6)
             Obfuscated, test cases included. - (Yendor) - (5)
                 /me thinks Mike has entirely too much free time - (drewk) - (4)
                     Absolutely. - (admin)
                     Not much else to do... - (Yendor) - (2)
                         Level 33 - (pwhysall) - (1)
                             Yeah, what's your point? - (Yendor)
         Re: Mike-Shunning Competition - (jake123) - (5)
             Well, if we're running in the interpreter: - (admin) - (2)
                 Yeah, it's called rexxtry - (jake123) - (1)
                     way back in the stone ages... - (cforde)
             Bitch. - (Yendor) - (1)
                 I am honoured. - (jake123)
         Gotta do an Icon version... - (static)
         Re: Mike-Shunning Competition - (deSitter) - (4)
             What, no prize?? -NT - (deSitter) - (3)
                 Well... - (ben_tilly) - (2)
                     Re: Well... - (deSitter) - (1)
                         Perhaps an example would help clarify - (ben_tilly)
         Clearly: this is how MAN entries are edited.__All explained. -NT - (Ashton)

Anything that takes 8 minutes to get from 55 to 65 MPH is a good starter vehicle.
189 ms