Does the j602 stype immex also work for lobrow under j805? jqt immexj was first introduced for workaround event race conditions, not intended for cleaning up locale.
Вт, 30 май 2017, Ian Clark написал(а): > @Tom, the "simple" fix is not one I like. > > The cover verb: immx is a general-purpose utility to schedule the execution > of a J-phrase (from within an explicit verb definition) which can only be > done after the verb has exitted (which restores the current locale to what > it was on entry). It is used mainly to change locales, so I prefer an > explicit record of locale changes to appear in the session, to stop myself > going mad. Which means for me that immx (immexj) needs to echo (=smoutput) > 'cocurrent ''z''' as well as actually doing it. > > The chief technical problem LoBrow must solve is being able to move the > current session state freely and frequently between locales without losing > sight of its own system utilities (notably immx itself). This is to support > the feature of being able to put the cursor straight on any j-word inside > displayed code and press a button to go straight to the definition of the > said word. And back again with the "<-" button. > > My solution (tried-and-tested for J602 and only cursorily upgraded since > then) was more "cobbled" than "designed". If anyone knows of a better > solution than the one that infests LoBrow code like a fungus, I'd like to > know. > > There's a case for better system support for "immx"-type functionality, > compatible across all platforms. Though what form it should take I'm not at > all sure. Have a poppable stack of "povs" to augment the present collection > of the "co-" verbs which cover (18!:*)? JQt's current way (immexj) is > wd-based (dependent on JWD being there). I haven't looked (recently) at how > JHS or jconsole does it. > > Most J-ers will not be conscious of a need for this. LoBrow would mainly > use it for setting helpful, *reliable* indicators in its UI, not primarily > for simply hopping between locales. Which is a specialised use -- in a > browser aimed at J beginners, not jocks who know where they are in the > locale structure at any moment of the day, plus the landscape they ought to > be seeing. > > On Mon, May 29, 2017 at 9:29 PM, Tom Arneson <[email protected]> wrote: > > > Ian, I used your simple fix and it seems to work for me. Thanks. > > > > -----Original Message----- > > From: Programming [mailto:[email protected]] On > > Behalf Of Ian Clark > > Sent: Monday, May 29, 2017 13:55 > > To: [email protected] > > Subject: Re: [Jprogramming] Save/load content of locale > > > > @Tom, immx (immex) has a history and is platform-dependent. > > > > I've checked my default startup, and I see I'm defining it like this > > (which is somewhat "heritage")… > > > > immxJ6=: 3 : 0 > > > > NB. for downward compatibility > > > > IMMX_z_=: utf8 y > > > > 9!:27 '0!:101 IMMX_z_' > > > > 9!:29 [ 1 > > > > ) > > > > > > immxQT=: 3 : 0 > > > > smoutput ' ',dlb y NB. because immexj doesn't echo (y) > > > > empty immexj_z_ y > > > > ) > > > > > > 3 : 0'' NB. EXECUTE ON LOADING... > > > > if. IFQT do. > > > > immx=: immxQT > > > > else. > > > > immx=: immxJ6 > > > > end. > > > > i.0 0 > > > > ) > > > > > > But the fix could be as simple as: > > > > > > immx_z_ =: immexj > > > > > > where immexj is defined in the script: '~addons/ide/qt/qt.ijs' > > > > I've just tried it and it seems to work with LoBrow, but I haven't > > properly tested it. > > > > > > Needless to say, LoBrow doesn't work with jconsole, because it needs "wd". > > > > > > Let me know if you find any other missing system utilities. > > > > On Mon, May 29, 2017 at 3:27 PM, Tom Arneson <[email protected]> wrote: > > > > > Ian > > > > > > I just tried LoBrow, but it doesn't find immx_z_ > > > > > > load 'c:/users/tom arneson/skydrive/j64-805-user/lowbrow/lobrow.ijs' > > > |value error: immx_z_ > > > | immx msg=.'cocurrent ',(q1 LOC),LF > > > > > > -----Original Message----- > > > From: Programming [mailto:[email protected]] On > > > Behalf Of Ian Clark > > > Sent: Monday, May 29, 2017 03:12 > > > To: [email protected] > > > Subject: Re: [Jprogramming] Save/load content of locale > > > > > > You might also find LoBrow handy. It's not released as an addon but > > > you can download the script (lobrow.ijs) here: > > > > > > http://code.jsoftware.com/wiki/User:Ian_Clark/LoBrow > > > > > > I use LoBrow a lot. But it's a personal tool and lacks documentation. > > > However it's easy to dump a given locale as a J script… > > > > > > ++ Select the locale (top left panel), e.g. "z" or "base" > > > ++ click the bottom-right button: "Script > temp /> ME". > > > ---The resulting script is: ~temp/10.ijs …sorry, "10" is hard-coded: > > > to change it you'll need to edit lobrow.ijs itself. > > > > > > LoBrow is powerful enough to develop code (LoBow itself is maintained > > > that way). But heed Chris's warning -- and don't. It's really a tool > > > for quickly exploring and hacking other people's code. > > > > > > > > > > > > On Mon, May 29, 2017 at 7:09 AM, John Baker <[email protected]> wrote: > > > > > > > You can also check out the JOD addon. It can save and restore entire > > > > locales. Install the joddocument addon and read JOD.PDF for details. > > > > > > > > Cheers > > > > > > > > Sent from my iPhone > > > > > > > > > On May 28, 2017, at 8:36 PM, Herbert Weissenbaeck // Privat < > > > > [email protected]> wrote: > > > > > > > > > > Thank you, Henry. > > > > > All clear now. > > > > > > > > > >> On 29 May 2017, at 04:26, Henry Rich <[email protected]> wrote: > > > > >> > > > > >> When you execute nl to get a list of names, nl removes x and y > > > > >> from the > > > > list, because those names are defined in the nl script itself. If > > > > you need them you will have to add them by hand. > > > > >> > > > > >> Unsolicited opinion: it is Very Bad Form to use the names > > > > >> x,y,u,v,m,n > > > > as public names. > > > > >> > > > > >> Henry Rich > > > > >> > > > > >>> On 5/28/2017 10:19 PM, Herbert Weissenbaeck // Privat wrote: > > > > >>> Thank you. Is there any specific reason, why symbols called 'x' > > > > >>> or > > > 'y' > > > > are not saved by wssave? > > > > >>> > > > > >>> > > > > >>>> On 28 May 2017, at 15:20, Brian Schott <[email protected]> > > > > wrote: > > > > >>>> > > > > >>>> Also, > > > > >>>> > > > > >>>> http://code.jsoftware.com/wiki/Scripts/File_J_Variables > > > > >>>> > > > > >>>>> On Sun, May 28, 2017 at 9:06 AM, chris burke > > > > >>>>> <[email protected]> > > > > wrote: > > > > >>>>> > > > > >>>>> The system does not come with a built-in function to save a > > > > >>>>> locale > > > > to file. > > > > >>>>> > > > > >>>>> There is a script to do this at code.jsoftware.com/wiki/ > > > > Scripts/WS_Files, > > > > >>>>> and there are utilities to read/write data to file in various > > > > formats. > > > > >>>>> > > > > >>>>> However, scripts are the preferred way, rather than workspaces. > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>>> > > > > >>>> ------------------------------------------------------------ > > > > ---------- > > > > >>>> For information about J forums see http://www.jsoftware.com/ > > > > forums.htm > > > > >>> ---------------------------------------------------------------- > > > > >>> -- > > > > >>> ---- For information about J forums see > > > > >>> http://www.jsoftware.com/forums.htm > > > > >> > > > > >> > > > > >> --- > > > > >> This email has been checked for viruses by AVG. > > > > >> http://www.avg.com > > > > >> > > > > >> ----------------------------------------------------------------- > > > > >> -- > > > > >> --- 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 > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
