Re: [Jprogramming] Sequential Machine

2012-03-09 Thread Raul Miller
> Linda > > -Original Message- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Roger Hui > Sent: Friday, March 09, 2012 1:35 AM > To: Programming forum > Subject: Re: [Jprogramming] Sequential Machine > > x wa

Re: [Jprogramming] Sequential Machine

2012-03-09 Thread Linda Alvord
alue error: x Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Roger Hui Sent: Friday, March 09, 2012 1:35 AM To: Programming forum Subject: Re: [Jprogramming] Sequential Machine x was defined in my msg; it was:

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
Here's a little puzzle. What is the third example doing? state=: 3 2 2$ 1 1 2 1 1 1 2 2 (0;state;mailto:programming-boun...@jsoftware.com] On Behalf Of Linda Alvord Sent: Thursday, March 08, 2012 9:30 PM To: 'Programming forum' Subject: Re: [Jprogramming] Sequential Machine

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Roger Hui
> 2.57016e_5 > > -Original Message- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Roger Hui > Sent: Thursday, March 08, 2012 10:05 PM > To: Programming forum > Subject: Re: [Jprogramming] Sequential Machine > >

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
3 2 2$ 1 1 2 1 2 0 2 2 1 0 2 2 S=:0;state;mailto:programming-boun...@jsoftware.com] On Behalf Of Roger Hui Sent: Thursday, March 08, 2012 10:05 PM To: Programming forum Subject: Re: [Jprogramming] Sequential Machine Yes it is. The example looks strange because the first character of a is &q

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Roger Hui
Yes it is. The example looks strange because the first character of a is "a", not normally used as a separator. If the first character is a blank (say), then it looks more normal. e.g. state=: 3 2 2$ 1 1 2 1 2 0 2 2 1 0 2 2 a=: ' a good way to start the day' (0;state; > Roger, I'm n

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
a Alvord Sent: Thursday, March 08, 2012 9:30 PM To: 'Programming forum' Subject: Re: [Jprogramming] Sequential Machine Roger, I'm not sure that this is what you had in mind. a=:'a good way to start the day' <;.1 a -T--

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
o:programming-boun...@jsoftware.com] On Behalf Of Roger Hui Sent: Monday, February 27, 2012 10:04 PM To: Programming forum Subject: Re: [Jprogramming] Sequential Machine Yes, and your mission, should you decide to accept it, is to program this function (let's say <;.1 y where ' '={.y) us

Re: [Jprogramming] Sequential Machine

2012-02-29 Thread Raul Miller
You should think of the application of ;: as an atomic operation. You can, however, run it multiple times. -- Raul On Tue, Feb 28, 2012 at 4:42 AM, Steven Taylor wrote: > just checking, is there a way to generate additional inputs (or internal > state) when the machine enters certain states? >

Re: [Jprogramming] Sequential Machine

2012-02-28 Thread Steven Taylor
just checking, is there a way to generate additional inputs (or internal state) when the machine enters certain states? When I last looked at the sequential machine, I figured that it only responded to static input + planned to come back to it. -Steven

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread David Ward Lambert
> Date: Mon, 27 Feb 2012 19:04:03 -0800 > From: Roger Hui > Subject: Re: [Jprogramming] Sequential Machine > To: Programming forum > Message-ID: > > Content-Type: text/plain; charset=KOI8-R > > Yes, and your mission, should you decide to accept it, is t

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread Roger Hui
> L--+-++---+--++- > > > -Original Message- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Roger Hui > Sent: Monday, February 27, 2012 1:22 PM > To: Programming forum > Subject: Re: [Jprogramm

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread Linda Alvord
rt │the │day │ L--+-++---+--++- -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Roger Hui Sent: Monday, February 27, 2012 1:22 PM To: Programming forum Subject: Re: [Jprogramming] Sequential Machine

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread Roger Hui
The one thing that drove home for me the efficacy of the dyad ;:, is that an implementation <;.1 y as a sequential machine was within a factor of 2 (something like that) of the primitive <;.1 y. I hand-coded the latter in C and devoted much effort to it. On Mon, Feb 27, 2012 at 9:49 AM, Raul Mi

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread Raul Miller
I went through the wiki, with a text search on sequential machine, looking for pages that might be of use here. The first page I examined (working up from the bottom on my list of plausible candidates) was http://www.jsoftware.com/jwiki/Guides/Language%20FAQ/J%20BNF?highlight=%28sequential%29%7C%

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread Ian Clark
cisely twice. On both occasions as the fill char in a >> histogram. >> >> I guess an APL counterpart of (;:) would have suffered the same fate. >> Not many people know how to program a Turing Machine nowadays. (But it >> has a great future in biocomputing.) >> >&

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread Eldon Eller
;> >> I guess an APL counterpart of (;:) would have suffered the same fate. >> Not many people know how to program a Turing Machine nowadays. (But it >> has a great future in biocomputing.) >> >> On Sat, Feb 25, 2012 at 4:57 PM, David Ward Lambert >> wro

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread Dan Bron
> On Sat, Feb 25, 2012 at 4:57 PM, David Ward Lambert > wrote: >> >>> From: Don Guinn >>> Subject: [Jprogramming] Sequential Machine >>> To: Programming forum >>> Message-ID: >>> >> >> I finally decided to "maste

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread Ian Clark
y people know how to program a Turing Machine nowadays. (But it has a great future in biocomputing.) On Sat, Feb 25, 2012 at 4:57 PM, David Ward Lambert wrote: > >> From: Don Guinn >> Subject: [Jprogramming] Sequential Machine >> To: Programming forum >> Message-ID: >&

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread David Ward Lambert
> From: Don Guinn > Subject: [Jprogramming] Sequential Machine > To: Programming forum > Message-ID: > I finally decided to "master" sequential machine. The report of my experience is posted in the new vocabulary page http://www.jsoftware.com/jwiki/Vocabu

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread Don Guinn
Thank you! I have been bit by that error so many times. And it usually takes me forever to find it. On Sat, Feb 25, 2012 at 7:33 AM, Henry Rich wrote: > Thanks. Your problem is the old 'x ; boxed y' error. > >(0;sj; +---+--+-+--+---+-+-+-+-+-+---+-+---+-+ > |sum|=.|(|i.|3 4|)|+|/|.|*|0j4|+|

Re: [Jprogramming] Sequential Machine

2012-02-25 Thread Henry Rich
Thanks. Your problem is the old 'x ; boxed y' error. (0;sj; d332 for ;: in J Vocabulary. I didn't want to put all that in the mail, but > here it is. > > mj=: 256$0 NB. X other > mj=: 1 (9,a.i.' ')}mj NB. S space and tab > mj=: 2 ((a.i.'Aa')+/i.26)}mj NB. A A-Z

Re: [Jprogramming] Sequential Machine

2012-02-24 Thread Don Guinn
d332 for ;: in J Vocabulary. I didn't want to put all that in the mail, but here it is. mj=: 256$0 NB. X other mj=: 1 (9,a.i.' ')}mj NB. S space and tab mj=: 2 ((a.i.'Aa')+/i.26)}mj NB. A A-Z a-z excluding N B mj=: 3 (a.i.'N')}mjNB. N the letter N mj=: 4

Re: [Jprogramming] Sequential Machine

2012-02-24 Thread Henry Rich
Where is this help, where sj and mj are defined? Henry Rich On 2/24/2012 7:25 PM, Don Guinn wrote: > I've lost track of the number of times I have tried to make dyadic ;: work. > I read it, understand it (I think), but I can't get it to work. The general > description has m, the input mapping as

[Jprogramming] Sequential Machine

2012-02-24 Thread Don Guinn
I've lost track of the number of times I have tried to make dyadic ;: work. I read it, understand it (I think), but I can't get it to work. The general description has m, the input mapping as a list of boxes, each box containing the items to be mapped to the same number. So, in an attempt to figure

Re: [Jprogramming] sequential machine

2012-01-09 Thread Linda Alvord
@jsoftware.com] On Behalf Of Raul Miller Sent: Monday, January 09, 2012 12:40 PM To: Programming forum Subject: Re: [Jprogramming] sequential machine Something strange is going on, here: (0 ; (,: ,: 0 6) ) ;: 1 |index error | (0;(,:,:0 6));:1 (0 ; (,: ,: 0 6) ) ;: 1 (0

Re: [Jprogramming] sequential machine

2012-01-09 Thread Raul Miller
Something strange is going on, here: (0 ; (,: ,: 0 6) ) ;: 1 |index error | (0;(,:,:0 6));:1 (0 ; (,: ,: 0 6) ) ;: 1 (0 ; (,: ,: 0 6) ) ;: 1 (0 ; (,: ,: 0 6) ) ;: 1 (0 ; (,: ,: 0 6) ) ;: 1 (0 ; (,: ,: 0 6) ) ;: 1 |index error | (0;(,:,:0 6));:1 (0 ; (,:

[Jprogramming] sequential machine

2012-01-09 Thread David Ward Lambert
Simple machine to stop. Action 6 means "halt". Please explain why index error does not occur with y=. 1 . Also, preprocessing precludes reasonable request. (0 ; (,: ,: 0 6) ) ;: 0 NB. by default, an integer is its class NB. y=. 1 succeeds! (0 ; (,: ,: 0 6) ) ;: 1 NB. there are a