From: Simon Strandgaard Date: 2006-08-10T04:04:45+09:00 Subject: Re: Codegolf - Writing a Brainf*ck interpreter On 8/9/06, Simon Strandgaard wrote: > On 8/9/06, Daniel Martin wrote: > [snip] > > Still, there's supposedly another way to squeeze an additional 50 > > characters out, which I think is going to require some sort of > > fundamental shift in the approach to the problem. > > I have just given it a shot.. 146 bytes I saw at the codegolf page that one had a record of 142 bytes.. well here is my 141 bytes long version :-) eval 'd=[i=0]*8**5'+ARGV[0].gsub(/./){" "+%w[i+=1 X+=1 i-=1 X-=1 putc(X) X=STDIN.getc end while(X>0)]['>+<-.,]['.index($&)]}.gsub(/X/,'d[i]') -- Simon Strandgaard