[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gbs3 not exiting


On 11/13/26 06:59, Bruce Steers wrote:


On Fri, 13 Nov 2026 at 14:32, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

    Le 13/11/2026 à 15:26, Bruce Steers a écrit :
    > Hmm, this is new.
    > With latest master commit i run this in a terminal...
    >
    > echo -e 'use "gb.highlight"\n for each sState as string in
    > TextHighlighter.List\nPrint TextHighlighter[sState].States.Join(";
    > ")\nNext'| gbs3 -
    >
    > It prints the results but does not exit. i press Ctrl-C or add
    Quit the
    > th script to make it return to the terminal prompt line
    >
    > Respects
    > BruceS

    I guess it waits for the JIT compiler to finish compiling the
    highlighters...

-- Benoît Minisini.


aah I see, yes.
Running it it took ages and because i used Ctrl-C (thinking it hung) it never completed the compile.

I waited for a while and it did eventually quit by itself.
Now it works okay.

i deleted the contents of JIT cache to re-test it.

date; echo -e 'use "gb.highlight"\n for each sState as string in TextHighlighter.List\nPrint TextHighlighter[sState].States.Join("; ")\nNext\n' | gbs3 -; date

Fri 13 Nov 14:53:58 GMT 2026
<snip>
Fri 13 Nov 14:54:43 GMT 2026

So it took 46 seconds

Can it exit when the command is complete as the actual text prints out quite quickly, it just then hangs doing nothing for 45 seconds.

i can see a delay like that being an issue at boot time.

Respects
BruceS

I would be good if at the time the software (apps,libs,components) is installed onto the machine, that a /lib/gambas3/cache be created for apps and lib/components that use jit, some part of the install process invokes the jit compiler on the system being installed upon and caches it in the system folder, where gambas looks first for cached built jit code... I wonder if that sort of thing is possible. It sure would speed things up.

on the up side, if you change the jit compile flags such that they do not do aggressive in-lining it speeds the time taken up by quite a lot.

--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: gbs3 not exitingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
gbs3 not exitingBruce Steers <bsteers4@xxxxxxxxx>
Re: gbs3 not exitingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: gbs3 not exitingBruce Steers <bsteers4@xxxxxxxxx>