Re: abort in less than a second

2023-04-24 Thread polifemo
Thank you so much! I used poll to check for anything to read from stdin and
it worked flawlessly. Here's the code. It does not have any context, but it
is an example of how to use poll:

 '(loop
   (eval (loadRepeat))
   (wait 100)
   (T (and (poll 0) (= "53" (line T)))
(setq *Repite (list (loadRepeat) (loadRepeat))) ) )

Thank you all very much!

On Mon, Apr 24, 2023 at 12:45 AM Alexander Burger 
wrote:

> On Mon, Apr 24, 2023 at 06:45:06AM +0200, Danilo Kordic wrote:
> >   I would use Linux.epoll.  pil doesn't have it... yrt.
>
> PicoLisp has 'poll', which uses poll(2) or ppoll(2) internally.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Turn up the CPU clocks under Android Termux ??

2023-04-24 Thread Henry Baker
Thanks; I didn't understand your original suggestion that
'termux-wake-lock' was an actual termux command.

Sadly, 'termux-wake-lock' didn't help speed things up, either.

So either I've vastly overestimated the speed of my cellphone,
or there's some other software problem (e.g., something
getting interpreted instead of getting compiled... ???). Or
perhaps my cellphone is thermally limited -- it simply may
not have the ability to dissipate the heat from running any
faster, so it gets throttled to avoid overheating.

I appreciate your excellent suggestions!

-Original Message-
From: 
Sent: Apr 24, 2023 12:21 PM
To: 
Subject: Re: Turn up the CPU clocks under Android Termux ??

On Mon, Apr 24, 2023 at 07:01:39PM +, Henry Baker wrote:
> So either my program really is running at full speed (which I highly doubt),
> or Termux itself needs to be fixed to enable full speed.

I dont think you have to fix anything. Have you actually tried
taking the lock? This can be done through a button in the
notification. See also: https://wiki.termux.com/wiki/Termux-wake-lock

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Turn up the CPU clocks under Android Termux ??

2023-04-24 Thread Mateusz Poszwa
On Mon, Apr 24, 2023 at 07:01:39PM +, Henry Baker wrote:
> So either my program really is running at full speed (which I highly doubt),
> or Termux itself needs to be fixed to enable full speed.

I don’t think you have to fix anything. Have you actually tried
taking the lock? This can be done through a button in the
notification. See also: https://wiki.termux.com/wiki/Termux-wake-lock

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Turn up the CPU clocks under Android Termux ??

2023-04-24 Thread Henry Baker
I just ran the test with 'Unrestricted' (see below) and Android Termux
performance didn't improve.

So either my program really is running at full speed (which I highly doubt),
or Termux itself needs to be fixed to enable full speed.

-Original Message-
From: 
Sent: Apr 24, 2023 11:43 AM
To: 
Subject: Re: Turn up the CPU clocks under Android Termux ??

Thanks for the pointer to 'wakelock'. I looked over the documentation,
and it would appear that I have to recompile Termux ??

I then looked up the permissions for Termux, and found under
'App battery usage' 3 choices:

'Unrestricted' Allow battery usage in background without restrictions.
May use more battery.

'Optimized' Optimize based on your usage. Recommended for
most apps.

'Restricted' Restrict battery usage while in background. App may
not work as expected. Notifications may be delayed.

I saw that the choice chosen for Termux was 'Optimized'.

I'm going to try the 'Unrestricted' option and see if that improves
performance while in Termux.


-Original Message-
From:
Sent: Apr 24, 2023 10:14 AM
To:
Subject: Re: Turn up the CPU clocks under Android Termux ??

On Mon, Apr 24, 2023 at 03:26:59PM +, Henry Baker wrote:
> I've noticed how Android/Termux performance falls substantially
> when Termux isn't displaying on the screen -- e.g., when I'm
> accessing Termux via ssh.
>
> I'd like to figure out how to use my phone in a 'server mode',
> where it's hooked up to power, the screen is off, but it's set
> for high performance.

I noticed an Acquire wakelock button when I expanded
the notification. This might be what you are looking for.
https://developer.android.com/training/scheduling/wakelock

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Turn up the CPU clocks under Android Termux ??

2023-04-24 Thread Henry Baker
Thanks for the pointer to 'wakelock'.  I looked over the documentation,
and it would appear that I have to recompile Termux ??

I then looked up the permissions for Termux, and found under
'App battery usage' 3 choices:

'Unrestricted' Allow battery usage in background without restrictions.
May use more battery.

'Optimized' Optimize based on your usage. Recommended for
most apps.

'Restricted' Restrict battery usage while in background. App may
not work as expected. Notifications may be delayed.

I saw that the choice chosen for Termux was 'Optimized'.

I'm going to try the 'Unrestricted' option and see if that improves
performance while in Termux.


-Original Message-
From: 
Sent: Apr 24, 2023 10:14 AM
To: 
Subject: Re: Turn up the CPU clocks under Android Termux ??

On Mon, Apr 24, 2023 at 03:26:59PM +, Henry Baker wrote:
> I've noticed how Android/Termux performance falls substantially
> when Termux isn't displaying on the screen -- e.g., when I'm
> accessing Termux via ssh.
>
> I'd like to figure out how to use my phone in a 'server mode',
> where it's hooked up to power, the screen is off, but it's set
> for high performance.

I noticed an Acquire wakelock button when I expanded
the notification. This might be what you are looking for.
https://developer.android.com/training/scheduling/wakelock

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Turn up the CPU clocks under Android Termux ??

2023-04-24 Thread Mateusz Poszwa
On Mon, Apr 24, 2023 at 03:26:59PM +, Henry Baker wrote:
> I've noticed how Android/Termux performance falls substantially
> when Termux isn't displaying on the screen -- e.g., when I'm
> accessing Termux via ssh.
> 
> I'd like to figure out how to use my phone in a 'server mode',
> where it's hooked up to power, the screen is off, but it's set
> for high performance.

I noticed an ‘Acquire wakelock’ button when I expanded
the notification. This might be what you are looking for.
https://developer.android.com/training/scheduling/wakelock

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Turn up the CPU clocks under Android Termux ??

2023-04-24 Thread Henry Baker
Does anyone on this list know how to crank up the CPU clocks
on Android/Termux in order to get maximum performance?

I've noticed how Android/Termux performance falls substantially
when Termux isn't displaying on the screen -- e.g., when I'm
accessing Termux via ssh.

I'd like to figure out how to use my phone in a 'server mode',
where it's hooked up to power, the screen is off, but it's set
for high performance.


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe