Re: [Jprogramming] Challenge 6 Many Many Cherry Trees

2012-02-27 Thread km
A flaw in this one is that if you work from top to bottom, writing in order the new letter in each row of the result, you have found the argument string. A preliminary shuffle of the argument string is needed. Kip Sent from my iPad On Feb 27, 2012, at 10:21 PM, "Linda Alvord" wrote: > I fo

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 to program > this > function (let's

Re: [Jprogramming] Challenge 6 Many Many Cherry Trees

2012-02-27 Thread Linda Alvord
Nice looking trees. Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Viktor Cerovski Sent: Saturday, February 25, 2012 11:41 AM To: programming@jsoftware.com Subject: Re: [Jprogramming] Challenge 6 Many Many Cherry Tr

Re: [Jprogramming] Challenge 6 Many Many Cherry Trees

2012-02-27 Thread Linda Alvord
I found it surprising how many different strategies were used. This may be the simplest approach. Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Ric Sherlock Sent: Saturday, February 25, 2012 2:08 AM To: Programming

Re: [Jprogramming] Challenge 6 Many Many Cherry Trees

2012-02-27 Thread Henry Rich
@ has its uses. tree =. (] ; ;/@,.)&' ' ;@({~ |.)"1 >:@?~@>:@i.@# tree 'abcde' a b a b a c b c a d d b a e c Henry Rich On 2/27/2012 9:31 PM, Kip Murray wrote: > Here is how I would now do it, borrowing sh and the idea of using |. > from you, Linda. > > sh =: ] {~ # ?

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread Roger Hui
Yes, and your mission, should you decide to accept it, is to program this function (let's say <;.1 y where ' '={.y) using the dyad ;: . 2012/2/27 Linda Alvord > Maybe this will get me going on a sequential machine. ><;.1 'a good way to start the day' > -TT-T--┐ > │

Re: [Jprogramming] tacit adverb

2012-02-27 Thread Linda Alvord
This caused J to crash. TroubleMaker=. `(<_1;~":0) ATOMIC=. (5!:4)< 'TroubleMaker' Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Jose Mario Quintana Sent: Monday, February 27, 2012 2:43 PM To: Programming

Re: [Jprogramming] Challenge 6 Many Many Cherry Trees

2012-02-27 Thread Kip Murray
Here is how I would now do it, borrowing sh and the idea of using |. from you, Linda. sh =: ] {~ # ? # gwk =: ([: |. [: - [: i. #) |."0 1 [: ([ , ' ' , ])/"1 [: sh\ sh gwk 'abcde' b d b e d b e a b d b e d c a Kip On 2/27/2012 4:35 AM, Linda Alvord wrote: >

Re: [Jprogramming] Sequential Machine

2012-02-27 Thread Linda Alvord
Maybe this will get me going on a sequential machine. <;.1 'a good way to start the day' -TT-T--┐ │a good w│ay to st│art the d│ay│ L++-+--- < ;.1 'a good time was had by all' --TT--T---┐ │a good time w│as h│ad by │all│ L-

Re: [Jprogramming] Raspberry Pi

2012-02-27 Thread Michael Dykman
I think I am in the home stretch for the alpha release but I have been thinking that for 4 weeks now. On Mon, Feb 27, 2012 at 3:50 PM, William Tanksley, Jr wrote: > Wonderful. I'm looking forward to running it, then. > > -Wm > --

Re: [Jprogramming] Raspberry Pi

2012-02-27 Thread William Tanksley, Jr
Wonderful. I'm looking forward to running it, then. -Wm -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] tacit adverb

2012-02-27 Thread Raul Miller
Oh, sorry, I did not realize that that was what you were talking about. I think that that's a bug in 5!:5. A boxed pair starting with (,'0') in the first box is how an atomic representation of a noun works. But `(noun) does not provide the atomic representation of a noun. So when inverting the

Re: [Jprogramming] tacit adverb

2012-02-27 Thread Jose Mario Quintana
Either the first hint does not work or I misunderstood: ( TroubleMaker=. `(<_1;~":0)) `_1 ┌─┬┐ │`│┌──┐│ │ ││_1││ │ │└──┘│ └─┴┘ (5!:5)<'TroubleMaker' NB. This is the problem.. `_1 ( ATOMIC=. (5!:1)< 'TroubleMaker' ) NB. It seems fine... ┌┐ │┌─┬┐│ ││4│┌─┬

Re: [Jprogramming] Raspberry Pi

2012-02-27 Thread Michael Dykman
The answer to that is a qualified yes. The app currently sports 2 modes: a text-only console complete with editors, input log, etc. and a JHS mode which I am currently trying to coerce some graphics out of. I foresee 2 approaches to leveraging this package as as platform: developing GL or tam

Re: [Jprogramming] tacit adverb

2012-02-27 Thread Raul Miller
2012/2/26 Jose Mario Quintana : > That conjunction is useful but as an alternative to (`) instead of a > replacement otherwise the definition of the also useful (`'') would be > longer, for example, ( (`*)"_)(,@:{.@:))(` _))(`:6)) ) where (`) is its > replacement (although an improved shorte

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] Raspberry Pi

2012-02-27 Thread William Tanksley, Jr
Sorry -- you're right, I made no sense. I meant, does your app allow one to write J programs that run under Android? -Wm On Mon, Feb 27, 2012 at 6:12 AM, Michael Dykman wrote: > On Sun, Feb 26, 2012 at 9:50 PM, William Tanksley, Jr > wrote: > > Michael Dykman wrote: > > > >> If I may: I have

Re: [Jprogramming] Raspberry Pi

2012-02-27 Thread Michael Dykman
On Sun, Feb 26, 2012 at 9:50 PM, William Tanksley, Jr wrote: > Michael Dykman wrote: > >> If I may: I have already compiled J for an ARM processor under a linux >> kernel as part of my android project.  Raspberry Pi would provide a >> more complete system than android provides so it could only be

Re: [Jprogramming] Raspberry Pi

2012-02-27 Thread Don Guinn
There are so many levels to computing now. And it is getting harder to get down to the nuts and bolts levels. Microsoft and Apple, along with virtually every other supplier of hardware and software discourage people from getting down to the basic hardware levels. Looks like the Rasberry will encour

Re: [Jprogramming] Programming Digest, Vol 77, Issue 99

2012-02-27 Thread Eric Iverson
On Macs you should use curl, not wget. See JAL code for handling this OS difference. On Sun, Feb 26, 2012 at 11:02 PM, John Baker wrote: > Hmm, > > This looks like the j shell instance is not finding wget. I have not > tried this on macs so I don't know if the j spawned shell task gets > differ

Re: [Jprogramming] Programming Digest, Vol 77, Issue 99

2012-02-27 Thread R.E. Boss
If I use shell '"C:\Program Files (x86)\GnuWin32\bin\wget.exe" -help' GNU Wget 1.11.4 (...) I get the appropriate response, also the picture is downloaded R.E. Boss > -Oorspronkelijk bericht- > Van: programming-boun...@jsoftware.com [mailto:programming- > boun...@jsoftware.com]

Re: [Jprogramming] Programming Digest, Vol 77, Issue 99

2012-02-27 Thread R.E. Boss
Under Win7 & J602 I get require 'task' shell 'wget -help' wget wordt niet herkend als een interne of externe opdracht, programma of batchbestand. shell 'wget http://conceptcontrol.smugmug.com/photos/i-mNK4RHL/0/L/i-mNK4RHL-L.png' wget wordt niet herkend als een interne of externe opdracht,

Re: [Jprogramming] Challenge 6 Many Many Cherry Trees

2012-02-27 Thread Linda Alvord
Here is my latest version which has simple tacit definitions. I was impressed with all the different strategies that were submitted and it should provide you with many options to consider and hopefully allow you to understand J better. I know I learned a lot and I still have many more versions t