@ 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 reply back, analyse it and act on it.
As ever with this sort of simple trick, the devil is in the detail when you
come to use it in practice. But unless you're writing a commercial app, the
solution may be easier and neater than you anticipate.

To be sure, Do (".) won't solve the problem of handling J error conditions,
and hiding all that mess from the end user. For that you need to read
https://code.jsoftware.com/wiki/Vocabulary/Foreigns - especially (13!:).

To view 'math/tabula' in JQt
    open'math/tabula'
At 2394 lines it's a big script and looks daunting, but it's just a saddle
for calling 'math/cal' via a single wd form, the end-user seeing nothing
but the said form. It's so big because it's a mature product ported from
APL+Win circa 2006, and written to be code-re-usable, maintainable by
someone else beside the author, and patched and repatched. It has multiple
war-wounds.

But you're welcome to raid it for code and techniques. If you need help
hacking it, I'm happy to oblige.

On Tue, 10 May 2022 at 02:32, Razetime <rraghu.11...@gmail.com> wrote:

> Thank you all for your helpful comments.
>
> This link is for conversion from j602 to J8 standalone from 2015, but it
> > may have some useful information.
> > https://code.jsoftware.com/wiki/Guides/J8_Standalone
>
> robert therriault: Thanks. I will check this out and see if I can get a
> standalone executable.
>
> There was at one time, jconsole could run qt wd to display images and
> > plots. I will update wiki.
> >
> bill lam: Oh, understood. I might actually try an older version of J to
> make this simpler. Till which version was this functionality allowed?
>
> You can still view images and even video from jconsole by launching a
> > browser with calculated content.
>
> robert therriault: I don't know if this is powerful enough to write a text
> editor GUI in, but I will keep it in mind.
>
> The magic word is: wd'ide hide'
> >
> Ian Clark: This works to hide the Qt Terminal, but I need to take input and
> throw output on the console. In the JQt all of this happens on the GUI
> terminal, so I think 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.
>
> Thanks,
> Raghu
>
> On Mon, May 9, 2022 at 11:29 PM Ian Clark <earthspo...@gmail.com> wrote:
>
> > Bob wrote
> > >  I don't know if there is a way to run jQt in a headless format that
> will
> > allow you to display windows.
> >
> > The magic word is: wd'ide hide'
> >
> > Example: to convert your JQt installation into a dedicated app running
> the
> > addon: 'math/tabula' (say)
> > create (or replace) the script: jpath'~config/startup.ijs' (~
> > /j903-user/config/startup.ijs) with these lines:
> >
> > wd'ide hide'
> > load'math/tabula'
> >
> > To restore the full functionality of JQt, delete (or replace):
> > '~config/startup.ijs'.
> >
> >
> > On Mon, 9 May 2022 at 18:03, 'robert therriault' via Programming <
> > programm...@jsoftware.com> wrote:
> >
> > > Will do, thanks Bill
> > >
> > > Cheers, bob
> > >
> > > > On May 9, 2022, at 09:46, bill lam <bbill....@gmail.com> wrote:
> > > >
> > > > The multimedia widget of Qt 6.3 got some major change and not fully
> > > > backward compatible.
> > > >
> > > > Please provide a simple script to demonstrate the issue.
> > > >
> > > > On Tue, 10 May 2022 at 12:34 AM 'robert therriault' via Programming <
> > > > programm...@jsoftware.com> wrote:
> > > >
> > > >> I have not dug in to deep to find out the cause, but at the moment
> the
> > > new
> > > >> version of jQt with 904 blocks playback of video content on the
> video
> > > labs.
> > > >> They play fine on JHS under 904 so I suspect it has something to do
> > with
> > > >> the new version of Qt or perhaps there is a setting that needs to be
> > > >> changed.
> > > >>
> > > >> Cheers, bob
> > > >>
> > > >>> On May 9, 2022, at 09:24, bill lam <bbill....@gmail.com> wrote:
> > > >>>
> > > >>> Agreed. Browser is a good platform. The j playground wasm port is
> > > >>> interesting.
> > > >>>
> > > >>> Qt itself also has a browser target, the Qt for WebAssembly,
> > > >> theoretically
> > > >>> it can run Qt applications on browsers with minimum changes.
> > > >>>
> > > >>> On Tue, 10 May 2022 at 12:06 AM 'robert therriault' via
> Programming <
> > > >>> programm...@jsoftware.com> wrote:
> > > >>>
> > > >>>> You can still view images and even video from jconsole by
> launching
> > a
> > > >>>> browser with calculated content.
> > > >>>>
> > > >>>> Not the same I know, but possible.
> > > >>>>
> > > >>>> Cheers, bob
> > > >>>>
> > > >>>>> On May 9, 2022, at 08:47, bill lam <bbill....@gmail.com> wrote:
> > > >>>>>
> > > >>>>> It was increasingly difficult to maintain Qt jconsole
> interaction.
> > > >>>>> Resources are better spent on more popular targets.
> > > >>>>>
> > > >>>>>
> > > >>>>> On Mon, 9 May 2022 at 10:28 PM Raul Miller <
> rauldmil...@gmail.com>
> > > >>>> wrote:
> > > >>>>>
> > > >>>>>> On Sun, May 8, 2022 at 1:43 PM bill lam <bbill....@gmail.com>
> > > wrote:
> > > >>>>>>> Sorry. Typo. I meant decommitted.
> > > >>>>>>
> > > >>>>>> That's disappointing.
> > > >>>>>>
> > > >>>>>> (And, sadly, representative of a trend which I have seen in many
> > > >>>>>> places and contexts, where useful functionality is collapsing or
> > > being
> > > >>>>>> made to collapse.)
> > > >>>>>>
> > > >>>>>> --
> > > >>>>>> 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
> > > >>>>
> > > >>>>
> > ----------------------------------------------------------------------
> > > >>>> 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

Reply via email to