Re: [Jprogramming] Poll questions: new refcard

2022-08-04 Thread P Padilcdx
1. c. footnotes below each table, second choice: a. footnotes at bottom, 1 column 2. b. about right 3. a. too small (but I will likely just use a viewer window so I can zoom) 4. c. like it 5. d. yes, and I would like to see names added for the adverbs. (As someone still learning I find them very

Re: [Jprogramming] |.!.f y Shift Right 1

2022-05-10 Thread P Padilcdx
on't know what you were > looking at.) > > -- > Raul > > > On Tue, May 10, 2022 at 4:44 PM P Padilcdx wrote: >> >> Something confused me on the subject page. The shift right is only for a >> vector and behaves differently for a matrix. >> >&g

[Jprogramming] |.!.f y Shift Right 1

2022-05-10 Thread P Padilcdx
Something confused me on the subject page. The shift right is only for a vector and behaves differently for a matrix. |.!.f says it will shift right 1, but when I tried it on a matrix, it shifts down. ]a=:4 4 $ 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 |.!._1 a _1 _1 _1 _1 1 0 0 0

[Jprogramming] sparse array with boxed elements?

2022-04-25 Thread P Padilcdx
Can I put a boxed element into a sparse array? Example: (https://www.jsoftware.com/help/dictionary/d211.htm> representation discussion is says: “A sparse array y may be boolean, integer, floating point, complex, literal, or boxed”<— But on the notes at the end of the page it says “Sparse lite

Re: [Jprogramming] line number for error

2022-04-14 Thread P Padilcdx
(and if you are > working from the command line, without jqt's debugger, you would need > to use something like 13!:1'' to see the current stack trace) > > That said, on OSX, it would be command-K instead of control-K. > > I hope this helps, > > > -- > R

[Jprogramming] line number for error

2022-04-14 Thread P Padilcdx
Has there been any consideration on providing the actual line number causing an error on a script? Would be hugely helpful for newbies like me. Just a thought… Thanks Pete -- For information about J forums see http://www.jsoftware

Re: [Jprogramming] Nuvoc page for ":

2022-04-10 Thread P Padilcdx
Duh…went to the About wiki page… apologies for the noise. Once I get a wiki account I will edit and fix this one. > On Apr 10, 2022, at 11:22 AM, P Padilcdx wrote: > > I don't have access to edit the wiki. How do I go about it? Thanks. > >> On Apr 10, 2022, at 10:2

Re: [Jprogramming] Nuvoc page for ":

2022-04-10 Thread P Padilcdx
I don't have access to edit the wiki. How do I go about it? Thanks. > On Apr 10, 2022, at 10:28 AM, Henry Rich wrote: > > Good find. Will you fix it please? 8!:0 is in the Foreigns page > > Henry Rich > > On 4/10/2022 1:22 PM, P Padilcdx wrote: &g

[Jprogramming] Nuvoc page for ":

2022-04-10 Thread P Padilcdx
In the page for “: (https://code.jsoftware.com/wiki/Vocabulary/quoteco) the link to 8!:0 leads to nowhere: -- More Information 1. For more complex formatting using a format string to specify particular behavior, e.g. for negative numbers, or character insertion, like commas in a long number, se

Re: [Jprogramming] {{ }} definitions

2022-03-29 Thread P Padilcdx
on; direct definition functions >>> NB. are displayed as conventional explicit definitions >>> >>>foo >>> 4 : ' x + y'"0 1 >>> >>> So the rank appears where you would have put it in the old form. >>>

[Jprogramming] {{ }} definitions

2022-03-29 Thread P Padilcdx
Is there a way to declare the rank when using {{ }} definitions? Or is it only possible when defining via “:”? Apologies if covered in the wiki and I missed it. -- For information about J forums see http://www.jsoftware.com/foru

Re: [Jprogramming] TextMate bundle

2022-01-28 Thread P Padilcdx
started out developing it for Sublime, I now develop it for > VSCode (https://github.com/tikkanz/j-vscode) and generate the Sublime > version from that. > > Cheers, > Ric > > > > On Sat, Jan 29, 2022 at 4:24 PM P Padilcdx wrote: > >> Forgot to say that I a

Re: [Jprogramming] TextMate bundle

2022-01-28 Thread P Padilcdx
Forgot to say that I added a Run command (Cmd-R on macOS) which uses jconsole (assumes it is in the Path). > On Jan 28, 2022, at 7:12 PM, P Padilcdx wrote: > > I wanted to learn to create a TextMate bundle so decide to not use the one > pointed at by the wiki and created my own fo

[Jprogramming] TextMate bundle

2022-01-28 Thread P Padilcdx
I wanted to learn to create a TextMate bundle so decide to not use the one pointed at by the wiki and created my own for J. I think mine provides additional syntax highlighting although I’m also sure it will probably mess up on some things. If you wish to try it (and hopefully provide feedback o

Re: [Jprogramming] Advent of Code Day 12

2022-01-16 Thread P Padilcdx
_5 > _9 > (- 4) + (- 5) > _9 > 4 +&- 5 > _9 > > So dyadic x u&v y applies v monadicly to both x and y, > u then applies dyadicly to (v x) and (v y) > > x u&v y ←→ (v x) u (v y) > > eg pythagoras > %: 3 +&*: 4 > 5 > > Am 17.01

Re: [Jprogramming] Advent of Code Day 12

2022-01-16 Thread P Padilcdx
t; LHS is just the result of applying ;: to the value 'start-A'. > > Am 17.01.22 um 05:45 schrieb P Padilcdx: >> That helps. What rule applies for making the LHS? Is it a hook? >> Thank You!! >>> On Jan 16, 2022, at 8:09 PM, Hauke Rehr wrote: >>> >

Re: [Jprogramming] Advent of Code Day 12

2022-01-16 Thread P Padilcdx
22 um 04:56 schrieb Hauke Rehr: >> First, you apply ;._2 >> Then it’s just a row-wise -.&;: >> eg >>'start-A' (-.&;:) '-' >> ┌─┬─┐ >> │start│A│ >> └─┴─┘ >> Am 17.01.22 um 04:01 schrieb P Padilcdx: >>> Slowly following t

Re: [Jprogramming] Advent of Code Day 12

2022-01-16 Thread P Padilcdx
Slowly following the discussion. I confess I’m stuck at how the composition of -.&;:&’-‘ work in the unpack verb. Try to read the description of & in NuVoc and LJ, but i confess to still be clueless as to how J parses it. I experimented a bit but still perplexed. Can someone point me in the ri

[Jprogramming] explorer profile

2021-12-28 Thread P Padilcdx
I followed the recommendation in the wiki to load the explorer profile. An error occurs on launching the Qt IDE as macos refused to load libjpcre2.dylib. I had to go find it and clear the quarantine for the library. Might want to add some instructions or update the shell script that clears ma

Re: [Jprogramming] Advent of Code Day 5

2021-12-25 Thread P PadilCDX
I started to work the event, using it to learn J.  Of course none of my code is as elegant as that already shared in the forum by you and others... On 12/25/21 7:08 PM, Raul Miller wrote: (I've decided to drop links to previous day content -- it's not interesting enough) Puzzle page: https://a

Re: [Jprogramming] JHS update

2021-11-30 Thread P Padilcdx
Is there a wiki page that documents the steps required to update J? I was looking for it and couldn’t find it. I see the steps recommended in previous posts but seems that would be a good addition to the wiki (unless I completely missed it and if so apologies). > On Nov 30, 2021, at 7:29 AM, E

[Jprogramming] Search the programming archives

2021-11-23 Thread P PadilCDX
Is there a way to search the programming list archives?  I keep finding links here and there in the wiki of really interesting posts with J code. Thanks, and apologies if I missed anything obvious. -- For information about J fo

Re: [Jprogramming] J Reference card

2021-11-08 Thread P Padilcdx
e discussion page attached to each NuVoc page. I'll watch out for > discussion pages that get opened. > > > On Mon, 8 Nov 2021 at 23:11, P Padilcdx wrote: > >> Any plans to update the color reference card >> “J602_RefCard_color_letter_current” to J902 or J90

[Jprogramming] J Reference card

2021-11-08 Thread P Padilcdx
Any plans to update the color reference card “J602_RefCard_color_letter_current” to J902 or J903? I find the card pretty useful for learning (actually I open it next to my editor for quick reference on syntax) as the examples are sufficiently simple for me to understand. Some of the examples

Re: [Jprogramming] ":123 = ":123

2021-10-16 Thread P Padilcdx
Yea, got it. Thanks! > On Oct 16, 2021, at 3:51 PM, Thomas Arneson wrote: > > (":123)=":123 > 1 1 1 > > Without the () it was comparing 123 to '123', and then applying Default > Format to the result. > >> On 10/16/2021 3:04 PM P Pa

Re: [Jprogramming] ":123 = ":123

2021-10-16 Thread P Padilcdx
Dissect. > > It's on my bucket list to write the above proof (?) as a single verb, call > it "brackit". > The trouble with 5!:6 is that it works on a proverb, not a verb. So maybe > brackit needs to be an adverb. > > BTW - here's what some may think about t

Re: [Jprogramming] ":123 = ":123

2021-10-16 Thread P Padilcdx
and/or assignment > statements, evaluation is strictly right to left. > > I hope this makes sense, > > -- > Raul > > On Sat, Oct 16, 2021 at 4:04 PM P Padilcdx wrote: >> >> Hopefully a quick newbie question. When I execute ":123 = “:123

[Jprogramming] ":123 = ":123

2021-10-16 Thread P Padilcdx
Hopefully a quick newbie question. When I execute ":123 = “:123 I get 0 0 0. Needless to say, I expected 1 1 1. Any clarification/explanation much appreciated. Regards Pete -- For information about J forums see http://www.jsoft

Re: [Jprogramming] <"0 vs. 0(<") confusion

2021-10-10 Thread P Padilcdx
es no difference. > > Adrien Mathieu > > Le dim. 10 oct. 2021 à 22:34, P Padilcdx a écrit : > >> Thank you for the quick reply. Got the adverb part, thank you. But I’m >> still missing something fundamental. If u=< and C=“, V=uC in [x] v V y, >> what is v in [x] u

Re: [Jprogramming] <"0 vs. 0(<") confusion

2021-10-10 Thread P Padilcdx
Thank you both! > On Oct 10, 2021, at 1:37 PM, Henry Rich wrote: > > Adrien has got this and I will let him answer your question. > > BUT: if you are new to J, know that no one would write 0(<") in a normal > sentence. The natural form is <"0 . > > Hen

Re: [Jprogramming] <"0 vs. 0(<") confusion

2021-10-10 Thread P Padilcdx
uestion, (<") is an adverb, and 0(<")y is <"0 y > (according to the above definition). > > -- > > Adrien Mathieu > > On 10/10/2021 21:43, P Padilcdx wrote: >> J noob so pardon the noob question. As the subject indicates, I’m confused >> as to

[Jprogramming] <"0 vs. 0(<") confusion

2021-10-10 Thread P Padilcdx
J noob so pardon the noob question. As the subject indicates, I’m confused as to how or why <“0 y turns into 0(<“)y when interpreted as a hook. Looked at the Primer and LJ and they don’t really explain the jump between the “0 to the left” and the “0 to the right” transposition when a hook. Any