I have to reply to my own post - there is, in fact, such a mode, it was in
sourceforge, I should have looked before asking.  I see that Marc Simpson
also answered before I could answer my own posting, thanks.  I was actually
trying to point that variable around to my own system - not sure whether I
have the 7 docs on my own system or not.  I have been switching between J6
and J7 pretty freely, I like the editor built in to J6 much better,
although

So my suggestion would be (even under windows) that using J-mode under
emacs, even under Windows, would be the simple way to get an editor that
will do whatever you want (for example, line wrap mode or no line wrap mode
with sideways scrolling).

My question about J under cygwin was actually another way to get to a full
emacs without having to go around things, but it might be handy to do some
of these things in cygwin anyway.

I find myself wishing for J for android, but the whole concept of the way
the android dispatcher works makes it hard for J to live in that
environment.  APL would have less of a challenge - you could save a
workspace when ordered to suspend and have a suspension phrase that allowed
an auto restart out of the suspension stack.  Without the basic concept of
a workspace and suspensions, how do you deal with the theft of the running
workspace in J when, say, you get a phone call?

You might end up with a J that was a fancy calculator but which would
randomly have its memory wiped.

2011/11/20 Nick Simicich <[email protected]>

> Is there a J mode for emacs?  Typically emacs modes can do the same sorts
> of things that the J editor can in terms of recognizing language elements
> and syntactical units - quoted strings, if. matching brackets (although
> only parens need to be matched in J, I guess.
>
> That would allow for a more general editing experience, line wrapping if
> you want it and you could run a console J in the shell window, maybe.
>
> Also, has anyone ported J to run under cygwin (as opposed to directly
> under windows?
>
>
> 2011/11/20 Fraser Jackson <[email protected]>
>
>> I would like to be able to wrap lines in the J script editor.
>>
>> While that may lead to some possible confusiton as the line is the basic
>> element in a J script the line is also a basic unit in many other
>> contexts.
>> The ability to display longer lines easily using wthe line wrap mechanism
>> would be very useful.  In particular I could use it to edit Tex files, and
>> to generate text which transfers much more felicitously to a mailer.
>>
>> To avoid confusion wrapped segments of  lines might be displayed in a
>> different colour, but I do not think that is essential
>>
>> Can anyone help me set up my script editor in this way.
>>
>> Thanks,
>> Fraser
>>
>> ----- Original Message -----
>> From: "Kip Murray" <[email protected]>
>> To: "Programming forum" <[email protected]>
>> Sent: Monday, November 21, 2011 8:34 AM
>> Subject: Re: [Jprogramming] table challenge in simple J
>>
>>
>> > Also, the one line definition of adverb tbl is
>> >
>> >    tbl =: 1 : (':'; '(,x)u/(,y)')
>> >
>> >
>> > On 11/20/2011 7:38 AM, Kip Murray wrote:
>> >> Look just under "Flawed solution to Linda's challenge" below.
>> >>
>> >> On 11/20/2011 4:16 AM, Linda Alvord wrote:
>> >>> What are your definitions of By and Over?
>> >>>       tbl
>> >>> 1 : '(,x)u/(,y)'
>> >>>      Table=:[ by ] over +tbl
>> >>>
>> >>>      a Table b
>> >>> |domain error: Table
>> >>> |   a     Table b
>> >>>
>> >>>      by
>> >>> ''&;@,.@[ ,. ]
>> >>>      over
>> >>> ({. ; }.)@":@,
>> >>>
>> >>> Linda
>> >>>
>> >>> -----Original Message-----
>> >>> From: [email protected]
>> >>> [mailto:[email protected]] On Behalf Of Kip Murray
>> >>> Sent: Saturday, November 19, 2011 9:58 PM
>> >>> To: [email protected]
>> >>> Subject: Re: [Jprogramming] table challenge in simple J
>> >>>
>> >>> I think the correct way to deal with the misbehavior of Table in
>> extreme
>> >>> cases is to use adverb tbl below instead of adverb / , leaving the
>> realm
>> >>> of Simple J.
>> >>>
>> >>> Use
>> >>>
>> >>> tbl =: 1 : 0
>> >>> :
>> >>> (,x)u/(,y)
>> >>> )
>> >>>
>> >>> and
>> >>>
>> >>> Table =: [ By ] Over +tbl
>> >>>
>> >>> then
>> >>>
>> >>>       a Table b
>> >>> +-+-------+
>> >>> | |0 1 2 3|
>> >>> +-+-------+
>> >>> |2|2 3 4 5|
>> >>> |3|3 4 5 6|
>> >>> |5|5 6 7 8|
>> >>> +-+-------+
>> >>>       1 Table 2 3
>> >>> +-+---+
>> >>> | |2 3|
>> >>> +-+---+
>> >>> |1|3 4|
>> >>> +-+---+
>> >>>       1 2 Table 3
>> >>> +-+-+
>> >>> | |3|
>> >>> +-+-+
>> >>> |1|4|
>> >>> |2|5|
>> >>> +-+-+
>> >>>       1 Table 2
>> >>> +-+-+
>> >>> | |2|
>> >>> +-+-+
>> >>> |1|3|
>> >>> +-+-+
>> >>>
>> >>> The point is, if adverb tbl is used in place of / then not only is
>> Table
>> >>> fixed, but also By and Over handle extreme cases correctly.
>> >>>
>> >>> Incidentally, Over's use of Format ": enables Table to get heading
>> >>> spacing right:
>> >>>
>> >>>       100 Table 2 3 4
>> >>> +---+-----------+
>> >>> |   |  2   3   4|
>> >>> +---+-----------+
>> >>> |100|102 103 104|
>> >>> +---+-----------+
>> >>>
>> >>>
>> >>> On 11/18/2011 10:48 AM, Kip Murray wrote:
>> >>>> It is 18 November, so below is my solution Table to Linda's
>> challenge.
>> >>>> It is the same as Raul's. However, it does not handle extreme cases
>> >>>> well, and I leave it as a further challenge to repair Table.
>> >>>>
>> >>>> The difficulty:
>> >>>>
>> >>>> 1 Table 2 3
>> >>>> +-+------+
>> >>>> | |2     |
>> >>>> +-+------+
>> >>>> |1| 3 3 4|
>> >>>> +-+------+
>> >>>>
>> >>>> 1 2 Table 3
>> >>>> +-+----+
>> >>>> | |3   |
>> >>>> +-+----+
>> >>>> |1| 4 5|
>> >>>> |2|    |
>> >>>> +-+----+
>> >>>>
>> >>>> Flawed solution to Linda's puzzle:
>> >>>>
>> >>>> Over
>> >>>> [: ({. ; }.) [: ": ,
>> >>>>
>> >>>> By
>> >>>> (' ' ; [: ,. [) ,. ]
>> >>>>
>> >>>> Table
>> >>>> [ By ] Over +/
>> >>>>
>> >>>> Table f.
>> >>>> [ ((' ' ; [: ,. [) ,. ]) ] ([: ({. ; }.) [: ": ,) +/
>> >>>>
>> >>>> a Table b
>> >>>> +-+-------+
>> >>>> | |0 1 2 3|
>> >>>> +-+-------+
>> >>>> |2|2 3 4 5|
>> >>>> |3|3 4 5 6|
>> >>>> |5|5 6 7 8|
>> >>>> +-+-------+
>> >>>>
>> >>>> Over and Bye can produce any operation table, but Table can only
>> >>>> produce
>> >>>> addition tables.
>> >>>>
>> >>>> a By b Over a */ b
>> >>>> +-+---------+
>> >>>> | |0 1  2  3|
>> >>>> +-+---------+
>> >>>> |2|0 2  4  6|
>> >>>> |3|0 3  6  9|
>> >>>> |5|0 5 10 15|
>> >>>> +-+---------+
>> >>>>
>> >>>>
>> >>>> -------- Original Message --------
>> >>>> Subject: [Jprogramming] table challenge in simple J
>> >>>> Date: Sun, 13 Nov 2011 20:51:50 -0500
>> >>>> From: Linda Alvord<[email protected]>
>> >>>> Reply-To: Programming forum<[email protected]>
>> >>>> To: 'Programming forum'<[email protected]>
>> >>>>
>> >>>> In the dictionary in the section on "Verbs and Adverbs" there are two
>> >>>> definitions designed to produce a table:
>> >>>>
>> >>>>
>> >>>>
>> >>>> over=:({.;}.)@":@,
>> >>>>
>> >>>> by=:' '&;@,.@[,.]
>> >>>>
>> >>>> a=: 2 3 5
>> >>>>
>> >>>> b=: 0 1 2 3
>> >>>>
>> >>>> a by b over a +/ b
>> >>>>
>> >>>> --T-------┐
>> >>>>
>> >>>> │ │0 1 2 3│
>> >>>>
>> >>>> +-+-------+
>> >>>>
>> >>>> │2│2 3 4 5│
>> >>>>
>> >>>> │3│3 4 5 6│
>> >>>>
>> >>>> │5│5 6 7 8│
>> >>>>
>> >>>> L-+--------
>> >>>>
>> >>>>
>> >>>>
>> >>>> Here is the challenge. Use the arguments a and b and define a single
>> >>>> tacit
>> >>>> function in "simple J" that does not use @ and provides the same
>> >>>> result.
>> >>>>
>> >>>>
>> >>>>
>> >>>> a table b
>> >>>>
>> >>>> --T-------┐
>> >>>> │ │0 1 2 3│
>> >>>> +-+-------+
>> >>>> │2│2 3 4 5│
>> >>>> │3│3 4 5 6│
>> >>>> │4│4 5 6 7│
>> >>>> L-+--------
>> >>>>
>> >>>>
>> >>>>
>> >>>> To give a little time for thought, do not post a solution until
>> >>>> November
>> >>>> 18th. I'll post mine then too.
>> >>>>
>> >>>>
>> >>>>
>> >>>> Linda
>> >>>>
>> >>>>
>> ----------------------------------------------------------------------
>> >>>> For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> >>> ----------------------------------------------------------------------
>> >>> For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> >>>
>> >>> ----------------------------------------------------------------------
>> >>> For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> >> ----------------------------------------------------------------------
>> >> For information about J forums see http://www.jsoftware.com/forums.htm
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
>
> --
> Of course I can ride in the carpool lane, officer.  Jesus is my constant
> companion.
>



-- 
Of course I can ride in the carpool lane, officer.  Jesus is my constant
companion.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to