Hi Joe,

Sorry I haven't gotten back to you for already such a long time.
Thank you for including my demo. I submitted a pull-request for including
the most recent version (one tiny bug-fix and some revisions in comments).
It's my first pull-request, I hope I didn't maul other things...

I saw the progress spinner, it certainly is an improvement over the
previous behavior, especially since now it shows at least progress of
different lines in the editor. However, progress lines of successive lines
in echo'd in a function are only shown at the end (e.g. see
https://jsoftware.github.io/j-playground/bin/html2/#code=NB.%20SHOWPROGRESS%3D1%0A%0Aecho%20'fine'%0A0%200%246!%3A3%5D%201%0Aecho%20'good'%0A0%200%246!%3A3%5D%201%0Aecho%20'Also%20fine'%0A%0Afoo%20%3D%3A%20%7B%7B%0Aecho%20'shown%20at%20the%20end%201'%0A0%200%246!%3A3%5D%201%0Aecho%20'shown%20at%20the%20end%202'%0A0%200%246!%3A3%5D%201%0Aecho%20'shown%20at%20the%20end%203'%0A%7D%7D%0A%0Afoo''%0A
).
Especially in this last case it would be handy for long-running functions
to be able to give updates (like for instance in the NN demo's sgd).

I think the progress spinner could become more something like the kernel
indicator of the Jupyter notebooks, i.e. an indication on the toolbar.
Perhaps it would be handy to make the icon function as "break" as well.
The icon would have 4 states: idle, running, clicked once (waiting for
soft-break to take effect), clicked twice (waiting for hard-break to take
effect), and could be accompanied by a textual hint/tool tip when not idle.

Aside of this, I noticed a few other things (unsorted):
- The SystemFolders_j_ variable seems to have a wrong value for the addons
field, and the system folder could be added, allowing users to use e.g. jpm
as well.
  I tried SystemFolders_j_=: |: ('temp';'') ,. ('addons';'addons') ,.
('system';'jlibrary/system') (in emj.ijs). While this seems to work, trying
to load a non-existent module, it gives an odd message I can't pinpoint,
e.g.:
     load '~addons/graphics/plot'
  not found: //addons/addons/graphics/plot.ijs
Here, I don't see where the extra //addons/ is coming from.
- The highlighting of matching parentheses, brackets and braces does not
work with J's syntax; it would be better disabled, since it considers []
and {} should be paired.
- Ctrl - clicking anywhere in the currently focused pane results in a
second cursor; typing afterwards results in text added at both (actually
all) cursors. This is quite handy, I would love to have it in JQT as well,
and saw this before in other advanced editors! So I was wondering whether
this was a feature or a bug :).
- It would be very handy to have an option to upload / download the
contents of the editor window, in some cases. For instance, on my company
laptop, as security policy, apparently the browser storage is cleared at
every shutdown of Chrome, so I can't use the recent File(s) tools.
- In comparison with JQT, I'm missing Run Selection and Load (i.e. run all,
but don't display). Especially load would be nice for longer scripts.

Thanks for you amazing work on the Playground, it's really starting to look
more like a full IDE, rather than a mere try-out version...

Best regards,
Jan-Pieter


Op za 18 jun. 2022 om 01:31 schreef Joe Bogner <[email protected]>:

> On Sat, Jun 4, 2022 at 4:42 PM Jan-Pieter Jacobs <
> [email protected]>
> wrote:
>
> > I had some fun putting J Playground through its paces and wrote the
> > following neural network demo:
> >
> >
> >
> https://jsoftware.github.io/j-playground/bin/html2#url=https://gist.githubusercontent.com/jpjacobs/6ff68c07bf764ad886e097ffbd19f5f0/raw/52b0563a7daa76df7fa57a3743da45ca0755f1a7/nn.ijs
> >
> >
> Thanks again for contributing. I've added it to the Examples page
>
>
> > - It's a pity the text output is blocked until all calculations are done,
> > as this renders it impossible to give status updates. Is there a trick
> like
> > in JQt (wd 'msgs') to overcome this?
> >
> >
> I've added experimental support to delay the execution by 10ms for each
> line and show a progress spinner if SHOWPROGRESS is in the text
> https://github.com/jsoftware/j-playground/issues/87. Give it a shot and
> let
> me know what you think
>
> https://jsoftware.github.io/j-playground/bin/html2/ and choose
> Examples->Neural Network
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to