Re: [Jprogramming] Matrix operations questions
NB: I wrote this before looking at the J rosetta code which includes the generation of the Ybus matrix - If your object is to find the equivalent (Thevenin) resistance between any 2 points, I would suggest that it would be better to work with an admittance model. It eliminates the problem with infinite resistances and typically will be sparse. Such methods are used with large power grid analyses. The admittance method chooses one node as reference, typically ground but it could be an other node or vertex. (it doesn't appear in the admittance "Ybus" matrix) . This is easy to set up as the yii terms are simply the sum of admittance's connected to that node and the yij terms are the negative of the sum of admittance's connected between i and j. Inverting this matrix gives what is called the Zbus matrix where the diagonal elements are the Thevenin impedance's (resistive in your case). Off diagonal elements are transfer impedance's. Essentially a two port idea extended to multi ports. A neat thing is that Zbus includes all the information to find the resistance seen between any pair of nodes as once you have it, the resistance between nodes i and j is Rii +Rjj- 2Rij here is a simple sample: node node r1/r 0ref0.254 010.5 2 020.2 5 1ref 0.25 4 1 2 0.25 4 ]ybus=: > 11 _2 _5;_2 10 _4;_5 _4 9 11 _2 _5 _2 10 _4 _5 _4 9 ]zbus=:%.ybus 0.165179 0.0848214 0.129464 0.0848214 0.165179 0.120536 0.129464 0.120536 0.236607 +/ 1 _1 _1 1*,(<0 2;0 2){zbus 0.142857 impedance seen between node 0 and node 2 etc Don On 2017-07-27 9:56 PM, Brian Babiak wrote: I’m working on a project to compute the distance resistance between two vertices in an electronic grid. I will share that later. But I am having domain error issues with matrix inverse and matrix product operations. See the following: f=.2 2$3 4 1 4 g=.2 2$i.2 h=.2 2$_3 4 2 _3 2 3$'f';'g';'h';f;g;h ┌───┬───┬─┐ │f │g │h│ ├───┼───┼─┤ │3 4│0 1│_3 4│ │1 4│0 1│ 2 _3│ └───┴───┴─� 2 3$'$f';'$g';'$h';($f);($g);($h) ┌───┬───┬───┐ │$f │$g │$h │ ├───┼───┼───┤ │2 2│2 2│2 2│ └───┴───┴───� f . g |domain error | f .g f . h |domain error | f .h %. f 0.5 _0.5 _0.125 0.375 %. g |domain error | %.g f . f |domain error | f .f g . g |domain error | g .g h . h |domain error | h .h h * g 0 4 0 _3 The answers to all these operations are simple. Why are there these domain errors? Here is the project this issue is coming up in, although I believe it is more basic than that. vw=: (,@(((_ 0)$~#@:])`]`(1$~,~@:}.@[)}))`(,@(((0 _)$~#@:])`]`(1$~,~@:}.@[)}))@.(<:@:({.@:[)) NB. (moveno boardsz) nw (x1 y1;x2 y2; etc) NB. Gives vertex weights for a move list of a game as vector rows=: <"1 cols=: <"1@|: diags=: (-.((0;_1)&{))@:(0{z [ i=. 1 [ n=. #z [ z=. diags y while. ii{z i=. >:i adds=. >2<\col r=. r,adds r=. r,(|."1 adds) end. ) connsq=: 3 : 0 r=. 0 2$0 [ i=. 0 [ n=. #z [ z=. y while. ii{z i=. >:i adds=. >2<\col r=. r,adds r=. r,(|."1 adds) end. ) connrws=: connsq@:rows conncls=: connsq@:cols edges=: 3 : 0 NB. takes board size as argument a=. (2$bs)$i.*:bs [ bs=. y r=. (connrws a),(conncls a) r=. r,conndiag a ) BOARDSZ=: 5 EDGES=: edges BOARDSZ VPLYR=: 1 NB. whether the vertical player is first or second A=: 3 : 0 mat=. (2$netsz)$0 [ netsz=. *:BOARDSZ [ j=. 0 [ i=. 0 [ arg=. VPLYR,BOARDSZ if. y=0 do. pcweights=. netsz$1 else. pcweights=. arg vw y end. while. i:j end. j=. 0 i=. >:i end. mat ) D=: 3 : 0 diag=. (2$netsz)$ 1,netsz#0 [ netsz=. *:BOARDSZ [ colsum=. +/y [ y=. A y r=. colsum*diag ) L=: D-A NB. the Laplacian NB. %. Laplacian or . (dot) for Laplacian times current gives domain errors Any help would be appreciated! Brian Babiak MD https://drbabiak.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
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Thanks, Bob Re 0), we might be at cross purposes. I'd tried to point out that I hadn't seen a red dot at the top left. I forget if that's a Mac feature. 1 & 2) fine, 3) It's late here, and we're off for a fwe days tomorrow. When I can, I'll have a look at the interaction between J-session font-size under Windows and display of the longest (left to right) boxed item in the JIG output windows. I might not get back to you for a day or more on this. Thanks again, Mike On 29/07/2017 18:11, robert therriault wrote: Thanks Mike, Your feed back is really appreciated, as well as your patience in running through the labs so many times to troubleshoot! I will look at chapter 4(8) and chapter 6(1). As usual I am bending the rules a little in the way that I am using PREPARE in the lab in order to generate multiple jig displays. I will take a look at this in case it may be a source of the problem. In response to your earlier observations: 0) I must learn to take my Mac centric goggles off. I will update the lab to indicate that 'when windows are no longer needed, you can close them to reduce on screen clutter' 1) The resizing that I was referring to, was through the radio buttons on the side for magnification. I'll come up with a way to make this more clear. 2) The off-centre display is a result of providing room for the tooltips to display in the negative space. In SVG the tooltips are there all the time (they are just invisible). All the hover is doing is changing the opacity of the message. There were a number of compromises that I had to make to allow the tooltips to appear without overlapping the results and the off centre was one of those. 3) That sounds as if it is a consequence of the character width. Unfortunately, I don't have a windows machine to test on. My guess is that if you created even longer numbers then they would extend further beyond the box proportionately. The only other area that would be interesting to check is whether the Session Font size for the J display (under the Edit menu in jqt) has an effect on this behaviour. Thank you again for your valuable feedback. Cheers, bob On Jul 29, 2017, at 9:45 AM, 'Mike Day' via Programmingwrote: Further developments following the following: Firstly, I discovered problem (3) in my earlier message occurs, on my PC at least, for size setting 100% and/or below. Setting a size of 200% or more "solves" that problem. Next: I continued the lab, but encountered a J crash, along the lines of "Windows encountered an error - is investigating - CANCEL" this occurred at chapter 4 (8) as far as I could tell. I restarted J, to see if the error recurred. I skipped to chapter (4), but found runquiet (or quietrun - I forget as J's disappeared!) missing, so had to run ch (0) and ch (1) before skipping to ch (4). This time it ran 4(8) and onwards a little bit more, successfully. I now tried to make sure it was ok at 4 (8) without skipping at all, so I reloaded the lab. Yes, it successfully negotiated 4(8) again, but, in this same session, later crashed at chapter 6, section 1. That's as far as I've got. I hope this is of some use to Bob and/or others. Cheers, Mike On 29/07/2017 13:46, 'Mike Day' via Programming wrote: Thanks I'm still in the middle of the lab, so might be overlooking some set-up possibilities, but the following early remarks might be useful to you (Bob): JVERSION Engine: j806/j64avx/windows Beta-4: commercial/2017-06-27T12:46:20 Library: 8.06.03 Qt IDE: 1.5.3/5.6.2 Platform: Win 64 Installer: J806 install InstallPath: c:/d/j806 Contact: www.jsoftware.com The machine is a LENOVO laptop, Z50, with an AMD A10 processor. 0) " When the Jig windows are no longer needed, close them by clicking on the red dot in the upper left corner of the message box." I don't see any red dot, although clicking in the usual place closes the window easily enough. 1) The window is resizable - fine. But if I do enlarge the window, the interior box displaying the material is NOT resized; it typically has vertical and horizontal sliders shown, respectively at the top and the left of their tracks. 2) The displayed is not "centred" in that box; for example, with v ,. 1;2;3j4;409808e21;409807987979797806576578x;6r13247 all 6 boxed rows ARE shown, but they are masked on the right hand side by the vertical border of the box; sliding the horizontal slider to the right does reveal the 6 boxes fully; 3) However, with that example, using either available font, the longest string, "409807987979797806576578" , does not sit properly in its box. The rightmost "8" intersects the vertical bar of the box. All known "features" perhaps, and they've possibly been mentioned in other correspondence. It's very promising, thanks, Mike On 28/07/2017 21:15, robert therriault wrote: Greetings everyone, I have just completed uploading a new addon that I
[Jprogramming] Jig addon
For those using Bob's new Jig addon, please note that as Bill pointed out, the addon directory name inadvertently used upper case, whereas lower case is required for cross platform compatibility. I should have checked this in the addon builder. I will now delete the original addon and commit a new version. This should not affect what you have already installed. However, the package manager will show Jig as not yet installed, so to update it, just install it again. -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Thanks Jimmy, 1) I know that my coding skills aren't at the level of what you see with dissect, but if Henry is interested in the way I have approached the display, he can certainly use any of jig's ideas. Do remember that dissect is a different tool than jig and many of the decisions I made on the jig interface would not be appropriate for dissect. 2) I can't speak to the difficulty of using unicode for J primitives, but one of the things that I like about J is that the notation is so consistent. When you look at mathematics notation it gets pretty wild and wooly very quickly. I prefer %: and knowing that I can extend it to 3&%: the same way that I can with ^ and 3&^ 3&%: 8 2 3&^ 8 6561 Cheers, bob > On Jul 28, 2017, at 3:55 PM, Jimmy Gauvinwrote: > > @ Robert : Great add-on ! > > Can I add a wishlist for Christmas? > > 1) Could this be combined with the Dissect add-on ? > http://code.jsoftware.com/wiki/Vocabulary/Dissect > > 2) @ "Those who know J innards" : how hard would it be to add unicode as > valid characters for identifiers? > > Permitting things like √ =: %: > > (if the character before =: doesn't appear correctly in your browser, it's > the square root symbol > http://www.fileformat.info/info/unicode/char/221a/index.htm) > > On Fri, Jul 28, 2017 at 6:16 PM, Ian Clark wrote: > >> Great concept, Bob. >> >> Just watching your YouTube makes me wonder why we persist in using a tty >> paradigm from the 1960s for conversational use of J – which we like to >> think of as an advanced language. Perhaps we just like playing Mastermind >> with ourselves when we play with J? It shows us how smart we are. :-P >> >> It's no longer true that all this good stuff is too expensive to compute >> for every line of input. Every line of operational code, maybe. But far >> more than the basic "tty" paradigm comes for free with Mathematica – and >> has done for the last 20 years. Where've we been all that time? >> >> Actually you've beaten me to it. But I guess I will still complete my toy >> "tty++", because I think it will help to have the session window >> immediately display the missing information you correctly identify, without >> the user needing to go asking for it. >> >> I find myself using my "crex" utility so often I'd like my session manager >> to routinely crex every phrase I enter. You might consider adding crex to >> Jig, or something like it. Example: >> >> z >> This is a line of text. >> This is another. >> >> zz >> This is a line of text. >> This is another. >> >> zzz >> This is a line of text. >> This is another. >> >> crex z >> 'This is a line of text.',LF,'This is another.',LF >> crex zz >> 3 23$'This is a line of text.This is another. >> ' >> crex zzz >> 3 25$'This is a line of text. This is another. >> ' >> >> On Fri, Jul 28, 2017 at 10:40 PM, robert therriault >> >> wrote: >> >>> Whoops, I left my test file hooked up. I have updated and it should run >>> now, when it has been updated through the package manager. >>> >>> Thanks Tom, I really appreciate the heads up on that one. >>> >>> Cheers, bob >>> On Jul 28, 2017, at 1:55 PM, Tom Arneson wrote: Bob, When I tried jig, I got the following error. load'debug/jig' not found: C:/users/bobtherriault/j64-806-user/projects/enhanced/ >> run.ijs |file name error: script | 0!:0 y[4!:55<'y' -Original Message- From: Programming [mailto:programming-boun...@forums.jsoftware.com] On >>> Behalf Of robert therriault Sent: Friday, July 28, 2017 15:15 To: Programming forum Subject: [Jprogramming] Jig - an augmented display for jqt in j805 and >>> j806 Greetings everyone, I have just completed uploading a new addon that I have named Jig. It >>> takes the standard J text display and upgrades it to an interactive SVG >>> display that allows quick access to type and shape and a host of other >>> information about the results of J sentences. I have posted a short video (1 minute) demo here: >>> https://youtu.be/dK1y_V07214 Once you have updated using Package Manager you should be able to run >> it. There is also a lab in the 'debug' category that will check that your >>> system is running the full version of the QT ide required for web >> displays >>> like Jig. I find it most useful when I have assigned a function key to it as >>> described in the second last chapter of the lab. Just make sure that >>> assigning the function key does not put you in conflict with any start up >>> scripts that you may be running. This is my first addon so I hope that I have not made too big a mess of >>> things and I look forward to your feedback. Cheers, bob
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Hi Henry, I think that the biggest difference between jig and dissect is that jig mirrors the J text display, whereas dissect deconstructs the J sentence to give insight into the construction of the result. In short, dissect does a great deal more than jig. Jig is just an interface to the final result. If jig is a butter knife, then dissect is a Swiss Army knife. In the wilderness I would want dissect, at the table jig can be useful. Cheers, bob > On Jul 29, 2017, at 6:58 AM, Henry Richwrote: > > I am away from J, but what is dissect lacking? By hovering you can get a > lot of information. > > Henry Rich > > On Jul 28, 2017 23:55, "Jimmy Gauvin" wrote: > >> @ Robert : Great add-on ! >> >> Can I add a wishlist for Christmas? >> >> 1) Could this be combined with the Dissect add-on ? >> http://code.jsoftware.com/wiki/Vocabulary/Dissect >> >> 2) @ "Those who know J innards" : how hard would it be to add unicode as >> valid characters for identifiers? >> >> Permitting things like √ =: %: >> >> (if the character before =: doesn't appear correctly in your browser, it's >> the square root symbol >> http://www.fileformat.info/info/unicode/char/221a/index.htm) >> >> On Fri, Jul 28, 2017 at 6:16 PM, Ian Clark wrote: >> >>> Great concept, Bob. >>> >>> Just watching your YouTube makes me wonder why we persist in using a tty >>> paradigm from the 1960s for conversational use of J – which we like to >>> think of as an advanced language. Perhaps we just like playing Mastermind >>> with ourselves when we play with J? It shows us how smart we are. :-P >>> >>> It's no longer true that all this good stuff is too expensive to compute >>> for every line of input. Every line of operational code, maybe. But far >>> more than the basic "tty" paradigm comes for free with Mathematica – and >>> has done for the last 20 years. Where've we been all that time? >>> >>> Actually you've beaten me to it. But I guess I will still complete my toy >>> "tty++", because I think it will help to have the session window >>> immediately display the missing information you correctly identify, >> without >>> the user needing to go asking for it. >>> >>> I find myself using my "crex" utility so often I'd like my session >> manager >>> to routinely crex every phrase I enter. You might consider adding crex to >>> Jig, or something like it. Example: >>> >>> z >>> This is a line of text. >>> This is another. >>> >>> zz >>> This is a line of text. >>> This is another. >>> >>> zzz >>> This is a line of text. >>> This is another. >>> >>> crex z >>> 'This is a line of text.',LF,'This is another.',LF >>> crex zz >>> 3 23$'This is a line of text.This is another. >>> ' >>> crex zzz >>> 3 25$'This is a line of text. This is another. >>> ' >>> >>> On Fri, Jul 28, 2017 at 10:40 PM, robert therriault < >> bobtherria...@mac.com >>> wrote: >>> Whoops, I left my test file hooked up. I have updated and it should run now, when it has been updated through the package manager. Thanks Tom, I really appreciate the heads up on that one. Cheers, bob > On Jul 28, 2017, at 1:55 PM, Tom Arneson wrote: > > Bob, When I tried jig, I got the following error. > > load'debug/jig' > not found: C:/users/bobtherriault/j64-806-user/projects/enhanced/ >>> run.ijs > |file name error: script > | 0!:0 y[4!:55<'y' > > -Original Message- > From: Programming [mailto:programming-boun...@forums.jsoftware.com] >> On Behalf Of robert therriault > Sent: Friday, July 28, 2017 15:15 > To: Programming forum > Subject: [Jprogramming] Jig - an augmented display for jqt in j805 >> and j806 > > Greetings everyone, > > I have just completed uploading a new addon that I have named Jig. It takes the standard J text display and upgrades it to an interactive SVG display that allows quick access to type and shape and a host of other information about the results of J sentences. > > I have posted a short video (1 minute) demo here: https://youtu.be/dK1y_V07214 > > Once you have updated using Package Manager you should be able to run >>> it. > > There is also a lab in the 'debug' category that will check that your system is running the full version of the QT ide required for web >>> displays like Jig. > > I find it most useful when I have assigned a function key to it as described in the second last chapter of the lab. Just make sure that assigning the function key does not put you in conflict with any start >> up scripts that you may be running. > > This is my first addon so I hope that I have not made too big a mess >> of things and I look forward to your feedback. > > Cheers, bob > >
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Thanks Ian, A great deal of the work that I did with non-visible ASCII characters was similar to your explorations with crex. One of the big challenges was the differences in the way that LF displays depending on whether it is boxed or not! I wonder as well the effect that the tty interface can have in terms of the Whorf-Sappir hypothesis, and further into the future with the use of Swift playgrounds. You would have a better sense of this with your recent excursions into iOS. Cheers, bob > On Jul 28, 2017, at 3:16 PM, Ian Clarkwrote: > > Great concept, Bob. > > Just watching your YouTube makes me wonder why we persist in using a tty > paradigm from the 1960s for conversational use of J – which we like to > think of as an advanced language. Perhaps we just like playing Mastermind > with ourselves when we play with J? It shows us how smart we are. :-P > > It's no longer true that all this good stuff is too expensive to compute > for every line of input. Every line of operational code, maybe. But far > more than the basic "tty" paradigm comes for free with Mathematica – and > has done for the last 20 years. Where've we been all that time? > > Actually you've beaten me to it. But I guess I will still complete my toy > "tty++", because I think it will help to have the session window > immediately display the missing information you correctly identify, without > the user needing to go asking for it. > > I find myself using my "crex" utility so often I'd like my session manager > to routinely crex every phrase I enter. You might consider adding crex to > Jig, or something like it. Example: > > z > This is a line of text. > This is another. > > zz > This is a line of text. > This is another. > > zzz > This is a line of text. > This is another. > > crex z > 'This is a line of text.',LF,'This is another.',LF > crex zz > 3 23$'This is a line of text.This is another. ' > crex zzz > 3 25$'This is a line of text. This is another. > ' > > On Fri, Jul 28, 2017 at 10:40 PM, robert therriault > wrote: > >> Whoops, I left my test file hooked up. I have updated and it should run >> now, when it has been updated through the package manager. >> >> Thanks Tom, I really appreciate the heads up on that one. >> >> Cheers, bob >> >>> On Jul 28, 2017, at 1:55 PM, Tom Arneson wrote: >>> >>> Bob, When I tried jig, I got the following error. >>> >>> load'debug/jig' >>> not found: C:/users/bobtherriault/j64-806-user/projects/enhanced/run.ijs >>> |file name error: script >>> | 0!:0 y[4!:55<'y' >>> >>> -Original Message- >>> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On >> Behalf Of robert therriault >>> Sent: Friday, July 28, 2017 15:15 >>> To: Programming forum >>> Subject: [Jprogramming] Jig - an augmented display for jqt in j805 and >> j806 >>> >>> Greetings everyone, >>> >>> I have just completed uploading a new addon that I have named Jig. It >> takes the standard J text display and upgrades it to an interactive SVG >> display that allows quick access to type and shape and a host of other >> information about the results of J sentences. >>> >>> I have posted a short video (1 minute) demo here: >> https://youtu.be/dK1y_V07214 >>> >>> Once you have updated using Package Manager you should be able to run it. >>> >>> There is also a lab in the 'debug' category that will check that your >> system is running the full version of the QT ide required for web displays >> like Jig. >>> >>> I find it most useful when I have assigned a function key to it as >> described in the second last chapter of the lab. Just make sure that >> assigning the function key does not put you in conflict with any start up >> scripts that you may be running. >>> >>> This is my first addon so I hope that I have not made too big a mess of >> things and I look forward to your feedback. >>> >>> Cheers, bob >>> >>> >>> >>> -- >>> 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
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Thanks Mike, Your feed back is really appreciated, as well as your patience in running through the labs so many times to troubleshoot! I will look at chapter 4(8) and chapter 6(1). As usual I am bending the rules a little in the way that I am using PREPARE in the lab in order to generate multiple jig displays. I will take a look at this in case it may be a source of the problem. In response to your earlier observations: 0) I must learn to take my Mac centric goggles off. I will update the lab to indicate that 'when windows are no longer needed, you can close them to reduce on screen clutter' 1) The resizing that I was referring to, was through the radio buttons on the side for magnification. I'll come up with a way to make this more clear. 2) The off-centre display is a result of providing room for the tooltips to display in the negative space. In SVG the tooltips are there all the time (they are just invisible). All the hover is doing is changing the opacity of the message. There were a number of compromises that I had to make to allow the tooltips to appear without overlapping the results and the off centre was one of those. 3) That sounds as if it is a consequence of the character width. Unfortunately, I don't have a windows machine to test on. My guess is that if you created even longer numbers then they would extend further beyond the box proportionately. The only other area that would be interesting to check is whether the Session Font size for the J display (under the Edit menu in jqt) has an effect on this behaviour. Thank you again for your valuable feedback. Cheers, bob > On Jul 29, 2017, at 9:45 AM, 'Mike Day' via Programming >wrote: > > Further developments following the following: > > Firstly, I discovered problem (3) in my earlier message occurs, on my PC > at least, for size setting 100% and/or below. Setting a size of 200% or > more "solves" that problem. > > Next: I continued the lab, but encountered a J crash, along the lines of > "Windows encountered an error - is investigating - CANCEL" > this occurred at chapter 4 (8) as far as I could tell. > > I restarted J, to see if the error recurred. I skipped to chapter (4), but > found runquiet (or quietrun - I forget as J's disappeared!) missing, so > had to run ch (0) and ch (1) before skipping to ch (4). This time it ran > 4(8) and onwards a little bit more, successfully. > > I now tried to make sure it was ok at 4 (8) without skipping at all, so I > reloaded the lab. Yes, it successfully negotiated 4(8) again, but, in this > same session, later crashed at chapter 6, section 1. > > That's as far as I've got. I hope this is of some use to Bob and/or others. > > Cheers, > Mike > > On 29/07/2017 13:46, 'Mike Day' via Programming wrote: >> Thanks >> >> I'm still in the middle of the lab, so might be overlooking some set-up >> possibilities, but the following early remarks might be useful to you (Bob): >> >> JVERSION >> >> Engine: j806/j64avx/windows >> >> Beta-4: commercial/2017-06-27T12:46:20 >> >> Library: 8.06.03 >> >> Qt IDE: 1.5.3/5.6.2 >> >> Platform: Win 64 >> >> Installer: J806 install >> >> InstallPath: c:/d/j806 >> >> Contact: www.jsoftware.com >> >> >> The machine is a LENOVO laptop, Z50, with an AMD A10 processor. >> >> >> 0) " When the Jig windows are no longer needed, close them by >> >> clicking on the red dot in the upper left corner of the >> >> message box." >> >> I don't see any red dot, although clicking in the usual place closes the >> >> window easily enough. >> >> >> 1) The window is resizable - fine. But if I do enlarge the window, >> >> the interior box displaying the material is NOT resized; it typically >> >> has vertical and horizontal sliders shown, respectively at the top and >> >> the left of their tracks. >> >> >> 2) The displayed is not "centred" in that box; for example, with >> >> v ,. 1;2;3j4;409808e21;409807987979797806576578x;6r13247 >> >> >> all 6 boxed rows ARE shown, but they are masked on the right hand >> >> side by the vertical border of the box; sliding the horizontal slider to >> >> the right does reveal the 6 boxes fully; >> >> >> 3) However, with that example, using either available font, the longest >> >> string, "409807987979797806576578" , does not sit properly in its >> >> box. The rightmost "8" intersects the vertical bar of the box. >> >> >> All known "features" perhaps, and they've possibly been mentioned in >> >> other correspondence. >> >> >> It's very promising, thanks, >> >> >> Mike >> >> >> On 28/07/2017 21:15, robert therriault wrote: >>> Greetings everyone, >>> >>> I have just completed uploading a new addon that I have named Jig. It takes >>> the standard J text display and upgrades it to an interactive SVG display >>> that allows quick access to type and shape and a host of other information >>> about the results of J sentences. >>> >>> I
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Further developments following the following: Firstly, I discovered problem (3) in my earlier message occurs, on my PC at least, for size setting 100% and/or below. Setting a size of 200% or more "solves" that problem. Next: I continued the lab, but encountered a J crash, along the lines of "Windows encountered an error - is investigating - CANCEL" this occurred at chapter 4 (8) as far as I could tell. I restarted J, to see if the error recurred. I skipped to chapter (4), but found runquiet (or quietrun - I forget as J's disappeared!) missing, so had to run ch (0) and ch (1) before skipping to ch (4). This time it ran 4(8) and onwards a little bit more, successfully. I now tried to make sure it was ok at 4 (8) without skipping at all, so I reloaded the lab. Yes, it successfully negotiated 4(8) again, but, in this same session, later crashed at chapter 6, section 1. That's as far as I've got. I hope this is of some use to Bob and/or others. Cheers, Mike On 29/07/2017 13:46, 'Mike Day' via Programming wrote: Thanks I'm still in the middle of the lab, so might be overlooking some set-up possibilities, but the following early remarks might be useful to you (Bob): JVERSION Engine: j806/j64avx/windows Beta-4: commercial/2017-06-27T12:46:20 Library: 8.06.03 Qt IDE: 1.5.3/5.6.2 Platform: Win 64 Installer: J806 install InstallPath: c:/d/j806 Contact: www.jsoftware.com The machine is a LENOVO laptop, Z50, with an AMD A10 processor. 0) " When the Jig windows are no longer needed, close them by clicking on the red dot in the upper left corner of the message box." I don't see any red dot, although clicking in the usual place closes the window easily enough. 1) The window is resizable - fine. But if I do enlarge the window, the interior box displaying the material is NOT resized; it typically has vertical and horizontal sliders shown, respectively at the top and the left of their tracks. 2) The displayed is not "centred" in that box; for example, with v ,. 1;2;3j4;409808e21;409807987979797806576578x;6r13247 all 6 boxed rows ARE shown, but they are masked on the right hand side by the vertical border of the box; sliding the horizontal slider to the right does reveal the 6 boxes fully; 3) However, with that example, using either available font, the longest string, "409807987979797806576578" , does not sit properly in its box. The rightmost "8" intersects the vertical bar of the box. All known "features" perhaps, and they've possibly been mentioned in other correspondence. It's very promising, thanks, Mike On 28/07/2017 21:15, robert therriault wrote: Greetings everyone, I have just completed uploading a new addon that I have named Jig. It takes the standard J text display and upgrades it to an interactive SVG display that allows quick access to type and shape and a host of other information about the results of J sentences. I have posted a short video (1 minute) demo here: https://youtu.be/dK1y_V07214 Once you have updated using Package Manager you should be able to run it. There is also a lab in the 'debug' category that will check that your system is running the full version of the QT ide required for web displays like Jig. I find it most useful when I have assigned a function key to it as described in the second last chapter of the lab. Just make sure that assigning the function key does not put you in conflict with any start up scripts that you may be running. This is my first addon so I hope that I have not made too big a mess of things and I look forward to your feedback. Cheers, bob -- For information about J forums see http://www.jsoftware.com/forums.htm --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
jig's v will work on any noun dissect only works on (executable) strings (There may be other issues). -- Raul On Sat, Jul 29, 2017 at 9:58 AM, Henry Richwrote: > I am away from J, but what is dissect lacking? By hovering you can get a > lot of information. > > Henry Rich > > On Jul 28, 2017 23:55, "Jimmy Gauvin" wrote: > >> @ Robert : Great add-on ! >> >> Can I add a wishlist for Christmas? >> >> 1) Could this be combined with the Dissect add-on ? >> http://code.jsoftware.com/wiki/Vocabulary/Dissect >> >> 2) @ "Those who know J innards" : how hard would it be to add unicode as >> valid characters for identifiers? >> >> Permitting things like √ =: %: >> >> (if the character before =: doesn't appear correctly in your browser, it's >> the square root symbol >> http://www.fileformat.info/info/unicode/char/221a/index.htm) >> >> On Fri, Jul 28, 2017 at 6:16 PM, Ian Clark wrote: >> >> > Great concept, Bob. >> > >> > Just watching your YouTube makes me wonder why we persist in using a tty >> > paradigm from the 1960s for conversational use of J – which we like to >> > think of as an advanced language. Perhaps we just like playing Mastermind >> > with ourselves when we play with J? It shows us how smart we are. :-P >> > >> > It's no longer true that all this good stuff is too expensive to compute >> > for every line of input. Every line of operational code, maybe. But far >> > more than the basic "tty" paradigm comes for free with Mathematica – and >> > has done for the last 20 years. Where've we been all that time? >> > >> > Actually you've beaten me to it. But I guess I will still complete my toy >> > "tty++", because I think it will help to have the session window >> > immediately display the missing information you correctly identify, >> without >> > the user needing to go asking for it. >> > >> > I find myself using my "crex" utility so often I'd like my session >> manager >> > to routinely crex every phrase I enter. You might consider adding crex to >> > Jig, or something like it. Example: >> > >> >z >> > This is a line of text. >> > This is another. >> > >> >zz >> > This is a line of text. >> > This is another. >> > >> >zzz >> > This is a line of text. >> > This is another. >> > >> >crex z >> > 'This is a line of text.',LF,'This is another.',LF >> >crex zz >> > 3 23$'This is a line of text.This is another. >> > ' >> >crex zzz >> > 3 25$'This is a line of text. This is another. >> > ' >> > >> > On Fri, Jul 28, 2017 at 10:40 PM, robert therriault < >> bobtherria...@mac.com >> > > >> > wrote: >> > >> > > Whoops, I left my test file hooked up. I have updated and it should run >> > > now, when it has been updated through the package manager. >> > > >> > > Thanks Tom, I really appreciate the heads up on that one. >> > > >> > > Cheers, bob >> > > >> > > > On Jul 28, 2017, at 1:55 PM, Tom Arneson wrote: >> > > > >> > > > Bob, When I tried jig, I got the following error. >> > > > >> > > > load'debug/jig' >> > > > not found: C:/users/bobtherriault/j64-806-user/projects/enhanced/ >> > run.ijs >> > > > |file name error: script >> > > > | 0!:0 y[4!:55<'y' >> > > > >> > > > -Original Message- >> > > > From: Programming [mailto:programming-boun...@forums.jsoftware.com] >> On >> > > Behalf Of robert therriault >> > > > Sent: Friday, July 28, 2017 15:15 >> > > > To: Programming forum >> > > > Subject: [Jprogramming] Jig - an augmented display for jqt in j805 >> and >> > > j806 >> > > > >> > > > Greetings everyone, >> > > > >> > > > I have just completed uploading a new addon that I have named Jig. It >> > > takes the standard J text display and upgrades it to an interactive SVG >> > > display that allows quick access to type and shape and a host of other >> > > information about the results of J sentences. >> > > > >> > > > I have posted a short video (1 minute) demo here: >> > > https://youtu.be/dK1y_V07214 >> > > > >> > > > Once you have updated using Package Manager you should be able to run >> > it. >> > > > >> > > > There is also a lab in the 'debug' category that will check that your >> > > system is running the full version of the QT ide required for web >> > displays >> > > like Jig. >> > > > >> > > > I find it most useful when I have assigned a function key to it as >> > > described in the second last chapter of the lab. Just make sure that >> > > assigning the function key does not put you in conflict with any start >> up >> > > scripts that you may be running. >> > > > >> > > > This is my first addon so I hope that I have not made too big a mess >> of >> > > things and I look forward to your feedback. >> > > > >> > > > Cheers, bob >> > > > >> > > > >> > > > >> > > > >> -- >> > > > For information about J forums see http://www.jsoftware.com/ >> forums.htm >> > > > >> > >
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
I ran into error on Linux, The addon and its folder name is Jig (uppercase J) but inside lab it refers to jig (lowercase J) '~addons/debug/jig/jig.ijs' Mac and Windows file name systems are case insensitive but not on Linux. Пт, 28 июл 2017, robert therriault написал(а): > Greetings everyone, > > I have just completed uploading a new addon that I have named Jig. It takes > the standard J text display and upgrades it to an interactive SVG display > that allows quick access to type and shape and a host of other information > about the results of J sentences. > > I have posted a short video (1 minute) demo here: https://youtu.be/dK1y_V07214 > > Once you have updated using Package Manager you should be able to run it. > > There is also a lab in the 'debug' category that will check that your system > is running the full version of the QT ide required for web displays like Jig. > > I find it most useful when I have assigned a function key to it as described > in the second last chapter of the lab. Just make sure that assigning the > function key does not put you in conflict with any start up scripts that you > may be running. > > This is my first addon so I hope that I have not made too big a mess of > things and I look forward to your feedback. > > Cheers, bob > > > > -- > 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
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
I am away from J, but what is dissect lacking? By hovering you can get a lot of information. Henry Rich On Jul 28, 2017 23:55, "Jimmy Gauvin"wrote: > @ Robert : Great add-on ! > > Can I add a wishlist for Christmas? > > 1) Could this be combined with the Dissect add-on ? > http://code.jsoftware.com/wiki/Vocabulary/Dissect > > 2) @ "Those who know J innards" : how hard would it be to add unicode as > valid characters for identifiers? > > Permitting things like √ =: %: > > (if the character before =: doesn't appear correctly in your browser, it's > the square root symbol > http://www.fileformat.info/info/unicode/char/221a/index.htm) > > On Fri, Jul 28, 2017 at 6:16 PM, Ian Clark wrote: > > > Great concept, Bob. > > > > Just watching your YouTube makes me wonder why we persist in using a tty > > paradigm from the 1960s for conversational use of J – which we like to > > think of as an advanced language. Perhaps we just like playing Mastermind > > with ourselves when we play with J? It shows us how smart we are. :-P > > > > It's no longer true that all this good stuff is too expensive to compute > > for every line of input. Every line of operational code, maybe. But far > > more than the basic "tty" paradigm comes for free with Mathematica – and > > has done for the last 20 years. Where've we been all that time? > > > > Actually you've beaten me to it. But I guess I will still complete my toy > > "tty++", because I think it will help to have the session window > > immediately display the missing information you correctly identify, > without > > the user needing to go asking for it. > > > > I find myself using my "crex" utility so often I'd like my session > manager > > to routinely crex every phrase I enter. You might consider adding crex to > > Jig, or something like it. Example: > > > >z > > This is a line of text. > > This is another. > > > >zz > > This is a line of text. > > This is another. > > > >zzz > > This is a line of text. > > This is another. > > > >crex z > > 'This is a line of text.',LF,'This is another.',LF > >crex zz > > 3 23$'This is a line of text.This is another. > > ' > >crex zzz > > 3 25$'This is a line of text. This is another. > > ' > > > > On Fri, Jul 28, 2017 at 10:40 PM, robert therriault < > bobtherria...@mac.com > > > > > wrote: > > > > > Whoops, I left my test file hooked up. I have updated and it should run > > > now, when it has been updated through the package manager. > > > > > > Thanks Tom, I really appreciate the heads up on that one. > > > > > > Cheers, bob > > > > > > > On Jul 28, 2017, at 1:55 PM, Tom Arneson wrote: > > > > > > > > Bob, When I tried jig, I got the following error. > > > > > > > > load'debug/jig' > > > > not found: C:/users/bobtherriault/j64-806-user/projects/enhanced/ > > run.ijs > > > > |file name error: script > > > > | 0!:0 y[4!:55<'y' > > > > > > > > -Original Message- > > > > From: Programming [mailto:programming-boun...@forums.jsoftware.com] > On > > > Behalf Of robert therriault > > > > Sent: Friday, July 28, 2017 15:15 > > > > To: Programming forum > > > > Subject: [Jprogramming] Jig - an augmented display for jqt in j805 > and > > > j806 > > > > > > > > Greetings everyone, > > > > > > > > I have just completed uploading a new addon that I have named Jig. It > > > takes the standard J text display and upgrades it to an interactive SVG > > > display that allows quick access to type and shape and a host of other > > > information about the results of J sentences. > > > > > > > > I have posted a short video (1 minute) demo here: > > > https://youtu.be/dK1y_V07214 > > > > > > > > Once you have updated using Package Manager you should be able to run > > it. > > > > > > > > There is also a lab in the 'debug' category that will check that your > > > system is running the full version of the QT ide required for web > > displays > > > like Jig. > > > > > > > > I find it most useful when I have assigned a function key to it as > > > described in the second last chapter of the lab. Just make sure that > > > assigning the function key does not put you in conflict with any start > up > > > scripts that you may be running. > > > > > > > > This is my first addon so I hope that I have not made too big a mess > of > > > things and I look forward to your feedback. > > > > > > > > Cheers, bob > > > > > > > > > > > > > > > > > -- > > > > 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 > > > > >
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
Thanks I'm still in the middle of the lab, so might be overlooking some set-up possibilities, but the following early remarks might be useful to you (Bob): JVERSION Engine: j806/j64avx/windows Beta-4: commercial/2017-06-27T12:46:20 Library: 8.06.03 Qt IDE: 1.5.3/5.6.2 Platform: Win 64 Installer: J806 install InstallPath: c:/d/j806 Contact: www.jsoftware.com The machine is a LENOVO laptop, Z50, with an AMD A10 processor. 0) " When the Jig windows are no longer needed, close them by clicking on the red dot in the upper left corner of the message box." I don't see any red dot, although clicking in the usual place closes the window easily enough. 1) The window is resizable - fine. But if I do enlarge the window, the interior box displaying the material is NOT resized; it typically has vertical and horizontal sliders shown, respectively at the top and the left of their tracks. 2) The displayed is not "centred" in that box; for example, with v ,. 1;2;3j4;409808e21;409807987979797806576578x;6r13247 all 6 boxed rows ARE shown, but they are masked on the right hand side by the vertical border of the box; sliding the horizontal slider to the right does reveal the 6 boxes fully; 3) However, with that example, using either available font, the longest string, "409807987979797806576578" , does not sit properly in its box. The rightmost "8" intersects the vertical bar of the box. All known "features" perhaps, and they've possibly been mentioned in other correspondence. It's very promising, thanks, Mike On 28/07/2017 21:15, robert therriault wrote: Greetings everyone, I have just completed uploading a new addon that I have named Jig. It takes the standard J text display and upgrades it to an interactive SVG display that allows quick access to type and shape and a host of other information about the results of J sentences. I have posted a short video (1 minute) demo here: https://youtu.be/dK1y_V07214 Once you have updated using Package Manager you should be able to run it. There is also a lab in the 'debug' category that will check that your system is running the full version of the QT ide required for web displays like Jig. I find it most useful when I have assigned a function key to it as described in the second last chapter of the lab. Just make sure that assigning the function key does not put you in conflict with any start up scripts that you may be running. This is my first addon so I hope that I have not made too big a mess of things and I look forward to your feedback. Cheers, bob -- For information about J forums see http://www.jsoftware.com/forums.htm --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806
No, the brief answer is that Jsoftware does not believe that unicode identifiers are a good addition to the language. While it's certainly possible for such identifiers to become confusing if exotic characters are used, they are supported in Unbox (https://github.com/iocane/unbox, a fork of J which is no longer maintained) and I have used them effectively for typing up LaTeX documents using standard symbols for mathematical constants and functions. Unicode identifiers, if added, would join the long list of features that can be misused to create confusing code. But there are many sensible uses for them, and it's easy enough for organizations which don't want to use unicode to disallow it in their source files. Marshall On Fri, Jul 28, 2017 at 07:21:02PM -0400, Raul Miller wrote: > On Fri, Jul 28, 2017 at 6:55 PM, Jimmy Gauvinwrote: > > 2) @ "Those who know J innards" : how hard would it be to add unicode as > > valid characters for identifiers? > > You can find discussions on the subject using forum search (from > jsoftware.com forums), but the brief answer is that there's no good > way to do this. > > Just reading the full unicode specs is beyond the abilities of most > people, but ... for example: there's good reasons why most people do > not know how to type most unicode characters. > > Thanks, > > -- > Raul > -- > For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm