Post #194,851
2/15/05 6:37:11 PM
|
Shunning Mike For Fun And Profit, The Retro Redux
Shun Mike in as many or as few lines of code as you like, running on your emulated hardware of choice.
Here's Mike being shunned in the double-height mode in Mode 7 (Teletext mode) on the BBC Micro Model B:
[image|http://guildenstern.dyndns.org/tmp/beebshun.png||||]
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #194,853
2/15/05 7:02:49 PM
|
OT: Zooks!
When I think of all the brainpower applied to that problem...
Cheers, Scott.
|
Post #194,855
2/15/05 7:27:59 PM
|
shunmike.py
>>> ["shun mike" for x in xrange(5)]\n['shun mike', 'shun mike', 'shun mike', 'shun mike', 'shun mike']\n
The Sig: "Despite the seemingly endless necessity for doing so, it's actually not possible to reverse-engineer intended invariants from staring at thousands of lines of code (not in C, and not in Python code either)." Tim Peters on python-dev
|
Post #194,856
2/15/05 7:31:35 PM
|
That's nifty...
...but where's the emulated 8-bit processor?
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #194,900
2/16/05 1:04:46 AM
|
Sorry, missed that bit.
|
Post #194,934
2/16/05 9:37:33 AM
|
At any rate:
print 'shun mike\\n'*5 is shorter, and produces the correct output to boot. ;-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #194,858
2/15/05 7:42:16 PM
|
PurePascal on an Atari ST (STEeM)
The highly-complex source code:
[image|http://guildenstern.dyndns.org/tmp/shunmike_prog.png||||]
The difficult-to-decipher output:
[image|http://guildenstern.dyndns.org/tmp/shunmike_outp.png||||]
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #194,860
2/15/05 7:55:54 PM
|
Bah.
Who needs an emulator for that?
Of course, getting a screen shot is a bit more difficult on my TT030...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #194,869
2/15/05 9:32:05 PM
|
Ha, least line of code and low end processor?
pencil, paper shun mice, shin mike, shine mick, shun mike regards, daemon
"I am not scared of al Qaeda, I am scared of fucking al Cracker sayeth Chris Rock
|
Post #194,871
2/15/05 9:34:50 PM
|
Error in line 2. Premature termination.
|
Post #194,975
2/16/05 12:12:34 PM
|
That's not pen and paper, that's screen and keyboard
I challenge you to shun Mike on pen and paper for real!
--
- I was involuntarily self-promoted into management.
[link|http://kerneltrap.org/node/4484|Richard Stallman]
|
Post #194,982
2/16/05 12:28:51 PM
|
How about Gimp?
[image|http://twiki.iwethey.org/twiki/pub/Main/DrewKime/shun.png||||]
===
Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats]. [link|http://DocHope.com|http://DocHope.com]
|
Post #194,995
2/16/05 1:28:26 PM
|
Sheesh
Enter into the spirit of the thing, people.
Imric, where's your entry, written in RPG, running on Hercules?
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #195,013
2/16/05 2:39:45 PM
|
Nah... I gotta better one. Better than Drew's, too.
[image|http://www.gregfolkert.net/pics/iwethey/avatar/mikeshun.png||||]
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Miltary Intelligence"] No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
|
Post #195,014
2/16/05 2:41:13 PM
|
Heh. Sysadmin emulator.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #194,874
2/15/05 9:54:28 PM
2/15/05 9:54:57 PM
|
68K Mac
Chipmunk Basic on Mac OS running on the Basilisk II 68K Mac emulator.
[image|http://home.surewest.net/altmann/shunmike1.png||||]
-- Chris Altmann
Edited by altmann
Feb. 15, 2005, 09:54:57 PM EST
|
Post #194,879
2/15/05 10:14:04 PM
2/15/05 10:14:17 PM
|
That screenshot vibrates on my LCD monitor. :-)
And besides, I didn't think the 68k qualifies as an 8-bit processor...?
Wade.
Is it enough to love Is it enough to breathe Somebody rip my heart out And leave me here to bleed
| | Is it enough to die Somebody save my life I'd rather be Anything but Ordinary Please
| -- "Anything but Ordinary" by Avril Lavigne. |
Edited by static
Feb. 15, 2005, 10:14:17 PM EST
|
Post #194,883
2/15/05 10:26:19 PM
|
Didn't see 8-bit in the original requirements document.
-- Chris Altmann
|
Post #194,882
2/15/05 10:24:25 PM
|
And C# on the Pocket PC
C# running on the Pocket PC emulator from Visual Studio.Net 2003 \nusing System;\nusing System.Drawing;\nusing System.Collections;\nusing System.Windows.Forms;\nusing System.Data;\n\nnamespace ShunMike\n{\n\t/// <summary>\n\t/// Summary description for Form1.\n\t/// </summary>\n\tpublic class ShunMikeForm : System.Windows.Forms.Form\n\t{\n\t\tprivate System.Windows.Forms.ListBox ShunHistory;\n\t\tprivate System.Windows.Forms.MainMenu ShunMikeMenu;\n\t\tprivate System.Windows.Forms.Button ShunButton;\n\n\t\tpublic ShunMikeForm()\n\t\t{\n\t\t\t//\n\t\t\t// Required for Windows Form Designer support\n\t\t\t//\n\t\t\tInitializeComponent();\n\n\t\t\t//\n\t\t\t// TODO: Add any constructor code after InitializeComponent call\n\t\t\t//\n\t\t}\n\t\t/// <summary>\n\t\t/// Clean up any resources being used.\n\t\t/// </summary>\n\t\tprotected override void Dispose( bool disposing )\n\t\t{\n\t\t\tbase.Dispose( disposing );\n\t\t}\n\t\t#region Windows Form Designer generated code\n\t\t/// <summary>\n\t\t/// Required method for Designer support - do not modify\n\t\t/// the contents of this method with the code editor.\n\t\t/// </summary>\n\t\tprivate void InitializeComponent()\n\t\t{\n\t\t\tthis.ShunMikeMenu = new System.Windows.Forms.MainMenu();\n\t\t\tthis.ShunHistory = new System.Windows.Forms.ListBox();\n\t\t\tthis.ShunButton = new System.Windows.Forms.Button();\n\t\t\t// \n\t\t\t// ShunHistory\n\t\t\t// \n\t\t\tthis.ShunHistory.Location = new System.Drawing.Point(8, 40);\n\t\t\tthis.ShunHistory.Size = new System.Drawing.Size(224, 212);\n\t\t\t// \n\t\t\t// ShunButton\n\t\t\t// \n\t\t\tthis.ShunButton.Location = new System.Drawing.Point(8, 8);\n\t\t\tthis.ShunButton.Text = "Shun Mike";\n\t\t\tthis.ShunButton.Click += new System.EventHandler(this.ShunButton_Click);\n\t\t\t// \n\t\t\t// ShunMikeForm\n\t\t\t// \n\t\t\tthis.Controls.Add(this.ShunButton);\n\t\t\tthis.Controls.Add(this.ShunHistory);\n\t\t\tthis.Menu = this.ShunMikeMenu;\n\t\t\tthis.Text = "ShunMike";\n\n\t\t}\n\t\t#endregion\n\n\t\t/// <summary>\n\t\t/// The main entry point for the application.\n\t\t/// </summary>\n\n\t\tstatic void Main() \n\t\t{\n\t\t\tApplication.Run(new ShunMikeForm());\n\t\t}\n\n\t\tprivate void ShunButton_Click(object sender, System.EventArgs e)\n\t\t{\n\t\t\tShunHistory.Items.Add("Shun Mike");\n\t\t}\n\t}\n}\n ... results in ... [image|http://home.surewest.net/altmann/shunmike2.png||||]
-- Chris Altmann
|
Post #194,885
2/15/05 10:46:25 PM
|
Ha! :-)
|
Post #194,894
2/16/05 12:10:33 AM
|
Woot and Yay!
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Miltary Intelligence"] No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
|
Post #194,926
2/16/05 7:26:46 AM
|
Superb. That just won a beer, should we ever meet.
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|