ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: The Turing Machine (#162)
by Chris Shea other posts by this author
May 11 2008 12:20AM messages near this date
Re: The Turing Machine (#162) | Re: The Turing Machine (#162)
On May 10, 10:20 pm, Matthew Moss <matthew.m...@[...].com>  wrote:
>  Just so you guys know, I have no intentions of starting Turning
>  Machine Quiz. I have enough work to do as it is writing summaries for
>  Ruby Quiz, and I *really* don't want to read a bunch of turing machine
>  code.
> 
>  :)   Just kidding...
> 
>  (No I'm not. ;)

Too bad.  I've started on a DSL for creating Turing machine code.  I
just generated a 1,568 line program to reverse a lowercase word.

  $ ./tm rev.tm ruby
  ybur
  $ ./tm rev.tm turing
  gnirut
  $ ./tm rev.tm racecar
  racecar
  $ time ./tm rev.tm abcdefghijklmnopqrstuvwxyz
  zyxwvutsrqponmlkjihgfedcba
  0.84s user 0.01s system 99% cpu 0.857 total

http://pastie.textmate.org/195072

Chris
Thread:
Matthew Moss
Adam Shelly
James Koppel
Alpha Chen
Matthew Moss
Alpha Chen
Alpha Chen
Matthew Moss
Robert Dober
Alpha Chen
Matthew Moss
Chiyuan Zhang
Juanger
Mike Stok
jgabrielygalan
Marcelo
Chiyuan Zhang
James Gray
Juanger
Matthew Moss
ThoML
Chris Shea
Chris Carter
Andrew Thompson
Sandro Paganotti
Chris Shea
ThoML
Chris Shea
Chris Shea
Glen F. Pankow
Adam Shelly
Matthew Moss
Chris Carter
Adam Shelly

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved