Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread chris burke
> I am wondering what is the edit-run paradigm in JQt 8.02. In J 602, I select and run. However, in JQt 802, it seems I have to create a script file and then run it from the ijs as part of the project. Thanks for pointing it out. Run selection is now only in Edit, and I'll add it to Term. On Fr

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Raul Miller
Maybe. Note that http://rosettacode.org/wiki/Universal_Turing_machine#J assigns 'noun' using =. and if that is using an explicit J verb (such as 'load' or 'require') that means that that definition is temporary. In other words it's quite possible that the definition reverts to the standard defini

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Yuvaraj Athur Raghuvir
I am wondering what is the edit-run paradigm in JQt 8.02. In J 602, I select and run. However, in JQt 802, it seems I have to create a script file and then run it from the ijs as part of the project. Also, when I tried to copy paste the above code and run it in J802, it hangs as it gets into the e

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Aai
Here's an example that works with J802/JQt (mind line wrapping) ".@(('utm=. '),,)@(];._2)@(noun=. ".@('(0 : 0)'"_))_ NB. Fixed tacit universal Turing machine code... (((":@:(]&:>)@:(6&({::)) ,: (":@] 9&({::))) ,. ':'"_) ,. 2&({::) >@:(((48 + ]) { a."_)@[ ; (] $ ' '"_) , '^'"_) 3&({::))@:

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Thomas Costigliola
Yuvaraj, make sure the definition of noun is being overwritten with the one given in the Turing machine definition. Type noun in your session, you should get this: noun ".@('(0 : 0)'"_) On Fri, Jul 18, 2014 at 1:26 PM, Thomas Costigliola wrote: > 'noun' and 'utm' are defined in the scrip

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Thomas Costigliola
'noun' and 'utm' are defined in the script given. On Fri, Jul 18, 2014 at 12:34 PM, Raul Miller wrote: > What is your definition of "noun"? > > Here's what I get in a fresh j802 session: > >noun _ > |syntax error > > Thanks, > > -- > Raul > > > On Fri, Jul 18, 2014 at 1:19 AM, Yuvaraj Athu

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Raul Miller
What is your definition of "noun"? Here's what I get in a fresh j802 session: noun _ |syntax error Thanks, -- Raul On Fri, Jul 18, 2014 at 1:19 AM, Yuvaraj Athur Raghuvir wrote: > Hello, > > I was checking the tacit Turing Machine written by Jose Mario Quintana at > http://rosettacode.or

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Aai
Works fine for me. J802 /JQt On 18-07-14 07:19, Yuvaraj Athur Raghuvir wrote: Hello, I was checking the tacit Turing Machine written by Jose Mario Quintana at http://rosettacode.org/wiki/Universal_Turing_machine#J (also referred in Oct 2013 edition of Journal of J) When I use J 802 with JQt, t

Re: [Jprogramming] Error executing Rossetta Code for Turing Machine in J802

2014-07-18 Thread Don Guinn
First you use a colon, not a semicolon to make an explicit definition. Second (noun _) is an invalid combination. I tried it in J6 and it failed. On Thu, Jul 17, 2014 at 11:19 PM, Yuvaraj Athur Raghuvir < yuvaraj@gmail.com> wrote: > Hello, > > I was checking the tacit Turing Machine written