[Jprogramming] Report on the J wiki meeting of May 5, 2022

2022-05-10 Thread 'robert therriault' via Programming
==Report on the J wiki meeting of May 5, 2022== Present: Art Anger, Raul Miller, Bob Therriault 1)First topic for discussion was the J playground and the group had made some suggestions about making a landing page for them https://code.jsoftware.com/wiki/Playground . Also we wondered if some of

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread Devon McCormick
Thanks, Bill and Henry. Using a non-JQt image reader seems to have done the trick. I will add this to my multi-threading notes. On Tue, May 10, 2022 at 9:42 PM Henry Rich wrote: > read_image is not defined for me, nor is readimg_jqtide_. > > Henry Rich > > > > On 5/10/2022 8:13 PM, Devon McCorm

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

2022-05-10 Thread Raul Miller
On Tue, May 10, 2022 at 7:30 PM P Padilcdx wrote: > Hopefully this works: > https://code.jsoftware.com/wiki/Vocabulary/bardot#dyadicfit Thanks, that helps me see what you were thinking about. I've updated the page with an additional example and added another sentence to illustrate the underlying

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread Henry Rich
read_image is not defined for me, nor is readimg_jqtide_. Henry Rich On 5/10/2022 8:13 PM, Devon McCormick wrote: It's the "read_image_" line that seems to be where it hangs up for me, on the fourth line from the end with the comment "¡Fails here!". The invocation (for 5 threads) is: mtFileWo

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread bill lam
Jqt isn't thread safe. You should call to jqt from the main thread only. I am also unsure if calling smoutput or other interactions with jqt session from JE user thread is safe or not. echo or smoutput in jconsole session is ok. You can try using jpeg or png addon to read image. Please let me kno

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread Devon McCormick
It's the "read_image_" line that seems to be where it hangs up for me, on the fourth line from the end with the comment "¡Fails here!". The invocation (for 5 threads) is: mtFileWork t. '' MUTEX [ mtFileWork t. '' MUTEX [ mtFileWork t. '' MUTEX [ mtFileWork t. '' MUTEX [ mtFileWork t. '' MUTEX On T

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

2022-05-10 Thread Elijah Stone
In accordance with leading-axis theory, an array of shape 4 4 is best seen as an array of 4 major cells, each of which happens to itself be another array of 4 atoms. Structural operations like shifts work primarily on the leading axis, on major cells. Another, perhaps clearer way of seeing the

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

2022-05-10 Thread P Padilcdx
Hopefully this works: https://code.jsoftware.com/wiki/Vocabulary/bardot#dyadicfit I figured it out but for someone "more newbie” than me it might be frustrating. Note that the _1 indicating is a right shift seems, at least to me, counter to the x axis orientation on a right-handed coordinate syst

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

2022-05-10 Thread Raul Miller
Which page was it that you found confusing? (I think that the ordering is consistent with the left-to-right top-to-bottom ordering of english text, but I don'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 pa

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread Henry Rich
What do I run to make it fail? Henry Rich On 5/10/2022 6:01 PM, Devon McCormick wrote: Henry, Here is the MVF - minimum viable failure. It looks like the culprit is "read_image" which is just a cover for "readimg_jqtide_". I'm running under jconsole. Set up in a directory with some .JPG file

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread Devon McCormick
Henry, Here is the MVF - minimum viable failure. It looks like the culprit is "read_image" which is just a cover for "readimg_jqtide_". I'm running under jconsole. Set up in a directory with some .JPG files: FLS=: 0{"1 dir '*.jpg' createThreads 5 MUTEX=: 10 T. 1NB. Recursive mutex;

Re: [Jprogramming] Mutex with multi-threading primitive

2022-05-10 Thread Henry Rich
If you can get me a version that fails on Windows I'll look at it. Henry Rich On 5/10/2022 4:20 PM, Devon McCormick wrote: Hi, Has anyone had success using the multi-threading mutex primitives? I've had limited success - I'll be presenting some basic routines at NYCJUG this evening (18:00 EDT

[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] Mutex with multi-threading primitive

2022-05-10 Thread Devon McCormick
Hi, Has anyone had success using the multi-threading mutex primitives? I've had limited success - I'll be presenting some basic routines at NYCJUG this evening (18:00 EDT - https://www.meetup.com/J-Dynamic-Functional-Programming/) - but have been unable to run multiple threads on a real-life proc

Re: [Jprogramming] Standalone Window Driver Script

2022-05-10 Thread Ian Clark
@ Razetime > I'll need to a) find a way to hide Qt's debug output and b) get J's output on the terminal in place of that. I picked addon 'math/tabula' for you because it solves those very problems. To cut a long story short, use Do (".) to send sentences to JE (the J engine) and to get its repl

Re: [Jprogramming] J on IOS

2022-05-10 Thread Ian Clark
From the programmer's pov there isn't meant to be any real difference between iOS and iPadOS. And Apple are trying to discourage developers from offering iPad-only apps. But the two platforms look substantially different to the end user -- as indeed do different models of each. I'm only just discov

Re: [Jprogramming] J on IOS

2022-05-10 Thread Jan-Pieter Jacobs
Hi Ian, Thanks for your replies. 'NO_BEEPS' ui 1 indeed does the trick, that's great. Here red faces department as well, I'm so fresh to Apple devices I don't know the difference between iOS and iPadOS. I was talking about silent mode referring to the mode you put your iPad in when you press the