Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Trying to establish voice contact ... please ____yell into keyboard.


computers / comp.sys.raspberry-pi / Re: Pico - issue with interrupts and sleep??

SubjectAuthor
* Pico - issue with interrupts and sleep??Mike Scott
+* Re: Pico - issue with interrupts and sleep??David Taylor
|`- Re: Pico - issue with interrupts and sleep??The Natural Philosopher
+- Re: Pico - issue with interrupts and sleep??Dennis Lee Bieber
+* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
|`* Re: Pico - issue with interrupts and sleep??Theo
| `* Re: Pico - issue with interrupts and sleep??Pancho
|  +- Re: Pico - issue with interrupts and sleep??Theo
|  +* Re: Pico - issue with interrupts and sleep??Ahem A Rivet's Shot
|  |`* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
|  | `* Re: Pico - issue with interrupts and sleep??Ahem A Rivet's Shot
|  |  `- Re: Pico - issue with interrupts and sleep??The Natural Philosopher
|  `* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
|   `* Re: Pico - issue with interrupts and sleep??Mike Scott
|    `* Re: Pico - issue with interrupts and sleep??David Taylor
|     `* Re: Pico - issue with interrupts and sleep??Mike Scott
|      `* Re: Pico - issue with interrupts and sleep??David Taylor
|       `* Re: Pico - issue with interrupts and sleep??Mike Scott
|        `* Re: Pico - issue with interrupts and sleep??Mike Scott
|         `* Re: Pico - issue with interrupts and sleep??David Taylor
|          `* Re: Pico - issue with interrupts and sleep??Mike Scott
|           +- Re: Pico - issue with interrupts and sleep??David Taylor
|           `- Re: Pico - issue with interrupts and sleep??The Natural Philosopher
`* Re: Pico - issue with interrupts and sleep??Pancho
 `* Re: Pico - issue with interrupts and sleep??Mike Scott
  `* Re: Pico - issue with interrupts and sleep??Pancho
   `* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
    +* Re: Pico - issue with interrupts and sleep??Martin Gregorie
    |`* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
    | +* Re: Pico - issue with interrupts and sleep??Ahem A Rivet's Shot
    | |`* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
    | | `* Re: Pico - issue with interrupts and sleep??Ahem A Rivet's Shot
    | |  `* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
    | |   `* Re: Pico - issue with interrupts and sleep??Ahem A Rivet's Shot
    | |    `- Re: Pico - issue with interrupts and sleep??The Natural Philosopher
    | `* Re: Pico - issue with interrupts and sleep??Martin Gregorie
    |  `* Re: Pico - issue with interrupts and sleep??The Natural Philosopher
    |   `- Re: Pico - issue with interrupts and sleep??Martin Gregorie
    `- Re: Pico - issue with interrupts and sleep??Ahem A Rivet's Shot

Pages:12
Pico - issue with interrupts and sleep??

<uadvdo$5dbb$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6704&group=comp.sys.raspberry-pi#6704

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: usenet...@scottsonline.org.uk.invalid (Mike Scott)
Newsgroups: comp.sys.raspberry-pi
Subject: Pico - issue with interrupts and sleep??
Date: Wed, 2 Aug 2023 17:14:47 +0100
Organization: Scott family
Lines: 55
Message-ID: <uadvdo$5dbb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 2 Aug 2023 16:14:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="216242b031c010124224cec01714b19a";
logging-data="177515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ww0DqO+sa+9XnNBcR06YH70/zP4IefLE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:/pjkQbfeL7koEYQTb1ZfikW4w9M=
Content-Language: en-GB
 by: Mike Scott - Wed, 2 Aug 2023 16:14 UTC

Hi all. I've been pottering trying to get to understand use of a Pico. I
hope this is on-topic for the group.

It looks as though timer interrupts and the sleep functions don't mix
too well. I've programmed an elementary clock using the tm1637 module
and using a 1 second timer interrupt to update the display. Noddy stuff,
except it runs for a while and then hangs completely.

If I rejig the code to not be interrupt driven, it seems to run OK.

The tm1637 module makes extensive use of time.sleep_us(), and rather
sparse comments on the web suggest that this method and the interrupt
don't play well together.

Can anyone confirm there's an issue and whether there's any resolution
of it?

Also, there seems to be something odd in that for example
time.sleep_ms(1000) works, while time.sleep_us(1000000) does wrong
things and hangs.

so while

import time
count = 0

while(True):
print(count)
time.sleep_ms(1000)
count = 1+count

behaves as expected, the following:

import time
count = 0

while(True):
print(count)
time.sleep_us(1000*1000)
count = 1+count

prints just a 0, and then needs power disconnection to recover.

Changing the one line to
time.sleep_us(100*1000)
runs, but the lines come out in groups of 10 every second

Any thoughts please?

--
Mike Scott
Harlow, England

Re: Pico - issue with interrupts and sleep??

<uae5a8$3v8br$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6707&group=comp.sys.raspberry-pi#6707

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david-ta...@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Wed, 2 Aug 2023 18:55:20 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uae5a8$3v8br$1@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 2 Aug 2023 17:55:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ab644f1bd4612a08ad834dca465576ef";
logging-data="4170107"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WPEi1m+AkKebvNx7W+gZXP1nS3DLapl4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:pWV1nlb5u83h8avG/1vwP40zM3U=
Content-Language: en-GB
In-Reply-To: <uadvdo$5dbb$1@dont-email.me>
 by: David Taylor - Wed, 2 Aug 2023 17:55 UTC

On 02/08/2023 17:14, Mike Scott wrote:
> Hi all. I've been pottering trying to get to understand use of a Pico. I
> hope this is on-topic for the group.

Yes, I think it's on-topic, and I very much look forward to the answers!

I have been playing with Pico Badger and one which uses Wi-Fi will hang (sleeps
for 30 minutes, but USB powered), and the other with no Wi-Fi just hangs -
sometimes using a 60 second timer). I'm hoping to make both of these battery
operated, although with the non-Wifi one which has a CO2 sensor that may not be
possible. I'm using MicroPython.
--
Cheers,
David
Web: https://www.satsignal.eu

Re: Pico - issue with interrupts and sleep??

<e6elci1qpe10e4akoljj0i0c6l4nu0a0ap@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6710&group=comp.sys.raspberry-pi#6710

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 02 Aug 2023 20:21:13 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Wed, 02 Aug 2023 16:21:13 -0400
Organization: IISS Elusive Unicorn
Message-ID: <e6elci1qpe10e4akoljj0i0c6l4nu0a0ap@4ax.com>
References: <uadvdo$5dbb$1@dont-email.me>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-02yeQlbdAlc2rHBrJoCqJXNK5Gx5/6jdkDCcX9UWc5xvn/IAa6Fjdx1VuYbMKlFs8G2jMMs1g3Fuquy!OVUAySKxH9gAxzZ3wXpxZLt9qLamefm/kDQCSGDMgiu6U2mBADiqJtWXlmlnA6TPfeBQs0na
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Wed, 2 Aug 2023 20:21 UTC

On Wed, 2 Aug 2023 17:14:47 +0100, Mike Scott
<usenet.16@scottsonline.org.uk.invalid> declaimed the following:

>Changing the one line to
> time.sleep_us(100*1000)
>runs, but the lines come out in groups of 10 every second
>
>
>Any thoughts please?

Add a call to .flush() for the I/O stream after every write?

Re: Pico - issue with interrupts and sleep??

<uaf4ie$g063$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6714&group=comp.sys.raspberry-pi#6714

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Thu, 3 Aug 2023 03:48:46 +0100
Organization: A little, after lunch
Lines: 22
Message-ID: <uaf4ie$g063$3@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uae5a8$3v8br$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Aug 2023 02:48:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1be4b16e76e1aaf050a641bbfa4de90";
logging-data="524483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aMvh+XHg9habp4NCCzylVx1tBaANozy0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:1edH4e6i3ZoIvUt6sFowsj3KEq4=
In-Reply-To: <uae5a8$3v8br$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Thu, 3 Aug 2023 02:48 UTC

On 02/08/2023 18:55, David Taylor wrote:
> On 02/08/2023 17:14, Mike Scott wrote:
>> Hi all. I've been pottering trying to get to understand use of a Pico. I
>> hope this is on-topic for the group.
>
> Yes, I think it's on-topic, and I very much look forward to the answers!
>
+1

> I have been playing with Pico Badger and one which uses Wi-Fi will hang
> (sleeps for 30 minutes, but USB powered), and the other with no Wi-Fi
> just hangs - sometimes using a 60 second timer).  I'm hoping to make
> both of these battery operated, although with the non-Wifi one which has
> a CO2 sensor that may not be possible.  I'm using MicroPython.

--
"Anyone who believes that the laws of physics are mere social
conventions is invited to try transgressing those conventions from the
windows of my apartment. (I live on the twenty-first floor.) "

Alan Sokal

Re: Pico - issue with interrupts and sleep??

<uaf51r$g063$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6715&group=comp.sys.raspberry-pi#6715

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Thu, 3 Aug 2023 03:56:59 +0100
Organization: A little, after lunch
Lines: 79
Message-ID: <uaf51r$g063$4@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Aug 2023 02:56:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1be4b16e76e1aaf050a641bbfa4de90";
logging-data="524483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/InytesxANa9eu94frvNmdFtX65Um7znQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:ROZ2b4vFlZVZeLiIECPmmj9zFaY=
In-Reply-To: <uadvdo$5dbb$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Thu, 3 Aug 2023 02:56 UTC

On 02/08/2023 17:14, Mike Scott wrote:
> Hi all. I've been pottering trying to get to understand use of a Pico. I
> hope this is on-topic for the group.
>
> It looks as though timer interrupts and the sleep functions don't mix
> too well. I've programmed an elementary clock using the tm1637 module
> and using a 1 second timer interrupt to update the display. Noddy stuff,
> except it runs for a while and then hangs completely.
>
> If I rejig the code to not be interrupt driven, it seems to run OK.
>
> The tm1637 module makes extensive use of time.sleep_us(), and rather
> sparse comments on the web suggest that this method and the interrupt
> don't play well together.
>
> Can anyone confirm there's an issue and whether there's any resolution
> of it?
>
>
> Also, there seems to be something odd in that for example
> time.sleep_ms(1000) works, while time.sleep_us(1000000) does wrong
> things and hangs.
>
> so while
>
> import time
> count = 0
>
> while(True):
>     print(count)
>     time.sleep_ms(1000)
>     count = 1+count
>
> behaves as expected, the following:
>
> import time
> count = 0
>
> while(True):
>     print(count)
>     time.sleep_us(1000*1000)
>     count = 1+count
>
> prints just a 0, and then needs power disconnection to recover.
>
> Changing the one line to
>     time.sleep_us(100*1000)
> runs, but the lines come out in groups of 10 every second
>
>
> Any thoughts please?
>
>

Can't help yet as I haven't even plugged my PICO in, but it reminds me
of a job I did years ago writing a BIOS for an 8088 single board machine.
Occasionally - every few hours - it would hang.
Took a very expensive CPU emulators to spot the problem, There as just
one sequence in the bios, which if interrupted by a timer interrupt,
would cause all hell to break loose.

I simply disabled interrupts round the three opcodes and the problem
never reoccurred.

My impression is FWIW, that the Picos support software is racing to keep
up with it - it's nowhere near as stable and bug free as raspios.

Well, bare metal programming is what it is. Now if someone wrote a
software emulator for a PICO we could debug the thing...

--
“It is hard to imagine a more stupid decision or more dangerous way of
making decisions than by putting those decisions in the hands of people
who pay no price for being wrong.”

Thomas Sowell

Re: Pico - issue with interrupts and sleep??

<uag1f5$kvms$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6722&group=comp.sys.raspberry-pi#6722

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.J...@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Thu, 3 Aug 2023 12:01:57 +0100
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <uag1f5$kvms$4@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 3 Aug 2023 11:01:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aeaea828cc71254976b4e7411ced4276";
logging-data="687836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186d1gh8DBkcCmqR+Du4haXBONgfFrQ7D4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:liagDwKStiF1hP+Fdl8tnhbyN+g=
Content-Language: en-GB
In-Reply-To: <uadvdo$5dbb$1@dont-email.me>
 by: Pancho - Thu, 3 Aug 2023 11:01 UTC

On 02/08/2023 17:14, Mike Scott wrote:
> Hi all. I've been pottering trying to get to understand use of a Pico. I
> hope this is on-topic for the group.
>
> It looks as though timer interrupts and the sleep functions don't mix
> too well. I've programmed an elementary clock using the tm1637 module
> and using a 1 second timer interrupt to update the display. Noddy stuff,
> except it runs for a while and then hangs completely.
>
> If I rejig the code to not be interrupt driven, it seems to run OK.
>
> The tm1637 module makes extensive use of time.sleep_us(), and rather
> sparse comments on the web suggest that this method and the interrupt
> don't play well together.
>
> Can anyone confirm there's an issue and whether there's any resolution
> of it?
>
>
> Also, there seems to be something odd in that for example
> time.sleep_ms(1000) works, while time.sleep_us(1000000) does wrong
> things and hangs.
>
> so while
>
> import time
> count = 0
>
> while(True):
>     print(count)
>     time.sleep_ms(1000)
>     count = 1+count
>
> behaves as expected, the following:
>
> import time
> count = 0
>
> while(True):
>     print(count)
>     time.sleep_us(1000*1000)
>     count = 1+count
>
> prints just a 0, and then needs power disconnection to recover.
>
> Changing the one line to
>     time.sleep_us(100*1000)
> runs, but the lines come out in groups of 10 every second
>
>
> Any thoughts please?
>
>

Use time.sleep(1) instead of time.sleep_us(). I really can't see any
reason for sleep_us() to exist? In my python, it doesn't exist. Perhaps
sleep_us() expects a high precision clock, which doesn't exist.

Re: Pico - issue with interrupts and sleep??

<uagj6t$qs8r$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6723&group=comp.sys.raspberry-pi#6723

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: usenet...@scottsonline.org.uk.invalid (Mike Scott)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Thu, 3 Aug 2023 17:04:43 +0100
Organization: Scott family
Lines: 30
Message-ID: <uagj6t$qs8r$1@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 3 Aug 2023 16:04:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9a95e06521243c72da4a72bdcec14abe";
logging-data="880923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oGXH8fdSatn05giHAvF7t2IwL8wFO6y4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:T9sUJDBwh8VKgFfJiysfqrQcIBA=
Content-Language: en-GB
In-Reply-To: <uag1f5$kvms$4@dont-email.me>
 by: Mike Scott - Thu, 3 Aug 2023 16:04 UTC

On 03/08/2023 12:01, Pancho wrote:
.....
>
> Use time.sleep(1) instead of time.sleep_us(). I really can't see any
> reason for sleep_us() to exist? In my python, it doesn't exist. Perhaps
> sleep_us() expects a high precision clock, which doesn't exist.

Thanks for the comment.

I reran the original offending program today. It ran for around 9 hours
before locking up.

It's just a simple clock program using a tm1637, really to let me have a
potter with some simple things. A 1 second timer interrupt updates a
counter and the display; the main program just sleep's in a loop.

The tm1637 module uses sleep_us internally to clock data into the tm1637
chip, so I'm a bit stuck with that. It looks very much as though the
sleep_us calls eventually disable the timer interrupt system somehow: in
one incarnation of the code, the interrupts updated the clock, while a
main loop flashed the on-board led. Clock updates stopped yet the led
kept flashing, so the pico wasn't completely stopped.

I can't, surely, be the only one to have tried this combination?

--
Mike Scott
Harlow, England

Re: Pico - issue with interrupts and sleep??

<G9j*Qe0mz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6752&group=comp.sys.raspberry-pi#6752

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: 04 Aug 2023 15:01:12 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <G9j*Qe0mz@news.chiark.greenend.org.uk>
References: <uadvdo$5dbb$1@dont-email.me> <uaf51r$g063$4@dont-email.me>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="8240"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Fri, 4 Aug 2023 14:01 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> Well, bare metal programming is what it is. Now if someone wrote a
> software emulator for a PICO we could debug the thing...

https://github.com/wokwi/rp2040js

Re: Pico - issue with interrupts and sleep??

<uaj204$18qhv$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6753&group=comp.sys.raspberry-pi#6753

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.J...@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Fri, 4 Aug 2023 15:29:23 +0100
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uaj204$18qhv$1@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 4 Aug 2023 14:29:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="97ad8607239421190f3570aabb136960";
logging-data="1337919"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uPD2DJryfnKFOaPHkdJieAiLMvyqkZfI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:7BdqWrSdOCxYcy7KONEfnpxG/FQ=
Content-Language: en-GB
In-Reply-To: <uagj6t$qs8r$1@dont-email.me>
 by: Pancho - Fri, 4 Aug 2023 14:29 UTC

On 03/08/2023 17:04, Mike Scott wrote:
> On 03/08/2023 12:01, Pancho wrote:
> ....
>>
>> Use time.sleep(1) instead of time.sleep_us(). I really can't see any
>> reason for sleep_us() to exist? In my python, it doesn't exist.
>> Perhaps sleep_us() expects a high precision clock, which doesn't exist.
>
> Thanks for the comment.
>

I don't know anything, so I wouldn't thank me that much :-).

> I reran the original offending program today. It ran for around 9 hours
> before locking up.
>
> It's just a simple clock program using a tm1637, really to let me have a
> potter with some simple things. A 1 second timer interrupt updates a
> counter and the display; the main program just sleep's in a loop.
>
> The tm1637 module uses sleep_us internally to clock data into the tm1637
> chip, so I'm a bit stuck with that. It looks very much as though the
> sleep_us calls eventually disable the timer interrupt system somehow: in
> one incarnation of the code, the interrupts updated the clock, while a
> main loop flashed the on-board led. Clock updates stopped yet the led
> kept flashing, so the pico wasn't completely stopped.
>
> I can't, surely, be the only one to have tried this combination?
>

From a quick Google, I picked up a couple of things. sleep() may block
(soft) interrupts. Using sleep(), sleep_us() is discouraged.

The preferred method being using a callback and timer.
<https://docs.micropython.org/en/latest/esp32/quickref.html#timers>

That kind of sounds less blocking, your timer lambda callback goes onto
a queue and politely waits its turn.

But as I said, I know nothing :-).

In general, I want to like Python, I'm curious, but whenever I look at
it, it makes me angry.

Re: Pico - issue with interrupts and sleep??

<uaj21p$18naf$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6754&group=comp.sys.raspberry-pi#6754

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.J...@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Fri, 4 Aug 2023 15:30:16 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uaj21p$18naf$1@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uaf51r$g063$4@dont-email.me>
<G9j*Qe0mz@news.chiark.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 4 Aug 2023 14:30:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="97ad8607239421190f3570aabb136960";
logging-data="1334607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YjSi1Ank+nvWGfO03D75wmLefEbZAGjU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:5Wk8zqNRX12+w/WTxutEpyfbwlA=
In-Reply-To: <G9j*Qe0mz@news.chiark.greenend.org.uk>
Content-Language: en-GB
 by: Pancho - Fri, 4 Aug 2023 14:30 UTC

On 04/08/2023 15:01, Theo wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> Well, bare metal programming is what it is. Now if someone wrote a
>> software emulator for a PICO we could debug the thing...
>
> https://github.com/wokwi/rp2040js

What are the chances an emulator would model a race condition accurately?

Re: Pico - issue with interrupts and sleep??

<G9j*mJ0mz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6756&group=comp.sys.raspberry-pi#6756

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.chmurka.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: 04 Aug 2023 17:11:28 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <G9j*mJ0mz@news.chiark.greenend.org.uk>
References: <uadvdo$5dbb$1@dont-email.me> <uaf51r$g063$4@dont-email.me> <G9j*Qe0mz@news.chiark.greenend.org.uk> <uaj21p$18naf$1@dont-email.me>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="31248"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Fri, 4 Aug 2023 16:11 UTC

Pancho <Pancho.Jones@proton.me> wrote:
> On 04/08/2023 15:01, Theo wrote:
> > The Natural Philosopher <tnp@invalid.invalid> wrote:
> >> Well, bare metal programming is what it is. Now if someone wrote a
> >> software emulator for a PICO we could debug the thing...
> >
> > https://github.com/wokwi/rp2040js
>
> What are the chances an emulator would model a race condition accurately?

Depends if it's cycle accurate or not. The above does keep track of cycles,
but I don't know whether it matches the hardware.

Theo

Re: Pico - issue with interrupts and sleep??

<20230804191630.28ce436c5024fdf0912157b6@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6757&group=comp.sys.raspberry-pi#6757

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Fri, 4 Aug 2023 19:16:30 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20230804191630.28ce436c5024fdf0912157b6@eircom.net>
References: <uadvdo$5dbb$1@dont-email.me>
<uaf51r$g063$4@dont-email.me>
<G9j*Qe0mz@news.chiark.greenend.org.uk>
<uaj21p$18naf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="0be3578c83baf231b351c76583be5b9b";
logging-data="1458366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XIDV4+gi8fijYdq4rxDluuuRJOFfd66o="
Cancel-Lock: sha1:id+Tya8EDnbsL5nvUPzVMU7SXfs=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Fri, 4 Aug 2023 18:16 UTC

On Fri, 4 Aug 2023 15:30:16 +0100
Pancho <Pancho.Jones@proton.me> wrote:

> What are the chances an emulator would model a race condition accurately?

Minimal I would think. Way back using a bit-slice based Z80 in
circuit emulators we had no end of issues caused by timing variances
between the real chip and the emulation.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Pico - issue with interrupts and sleep??

<uakv0g$1lq8q$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6763&group=comp.sys.raspberry-pi#6763

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 08:50:40 +0100
Organization: A little, after lunch
Lines: 59
Message-ID: <uakv0g$1lq8q$4@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me> <uaj204$18qhv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Aug 2023 07:50:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1763610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ge/8OmUCW/bJ7ICBEtcjF3dnpLQE56HQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:sZIU0gXCtIMKVy/rwqpk19AvPtg=
In-Reply-To: <uaj204$18qhv$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 5 Aug 2023 07:50 UTC

On 04/08/2023 15:29, Pancho wrote:
> On 03/08/2023 17:04, Mike Scott wrote:
>> On 03/08/2023 12:01, Pancho wrote:
>> ....
>>>
>>> Use time.sleep(1) instead of time.sleep_us(). I really can't see any
>>> reason for sleep_us() to exist? In my python, it doesn't exist.
>>> Perhaps sleep_us() expects a high precision clock, which doesn't exist.
>>
>> Thanks for the comment.
>>
>
> I don't know anything, so I wouldn't thank me that much :-).
>
>> I reran the original offending program today. It ran for around 9
>> hours before locking up.
>>
>> It's just a simple clock program using a tm1637, really to let me have
>> a potter with some simple things. A 1 second timer interrupt updates a
>> counter and the display; the main program just sleep's in a loop.
>>
>> The tm1637 module uses sleep_us internally to clock data into the
>> tm1637 chip, so I'm a bit stuck with that. It looks very much as
>> though the sleep_us calls eventually disable the timer interrupt
>> system somehow: in one incarnation of the code, the interrupts updated
>> the clock, while a main loop flashed the on-board led. Clock updates
>> stopped yet the led kept flashing, so the pico wasn't completely stopped.
>>
>> I can't, surely, be the only one to have tried this combination?
>>
>
> From a quick Google, I picked up a couple of things. sleep() may block
> (soft) interrupts. Using sleep(), sleep_us() is discouraged.
>
> The preferred method being using a callback and timer.
> <https://docs.micropython.org/en/latest/esp32/quickref.html#timers>
>
> That kind of sounds less blocking, your timer lambda callback goes onto
> a queue and politely waits its turn.
>
> But as I said, I know nothing :-).
>
> In general, I want to like Python, I'm curious, but whenever I look at
> it, it makes me angry.
>
its BASIC made to look like C
I cant be arsed to learn any more languages than I have to.

I am still being dragged kicking and screaming into the dark and fœtid
bowels of javaScript.

A loathsome melange obviously written by Computer Scientists who were
told that Object Orientation Was The Coming Thing, but finally realised
it wasnt.

--
Climate is what you expect but weather is what you get.
Mark Twain

Re: Pico - issue with interrupts and sleep??

<uakv1t$1lq8q$5@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6764&group=comp.sys.raspberry-pi#6764

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 08:51:25 +0100
Organization: A little, after lunch
Lines: 18
Message-ID: <uakv1t$1lq8q$5@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uaf51r$g063$4@dont-email.me>
<G9j*Qe0mz@news.chiark.greenend.org.uk> <uaj21p$18naf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 5 Aug 2023 07:51:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1763610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/+NdzCOKHcPn9CuZWl4GE81we687ly2I="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:OhwYEipXCWQAZQIBbP4eWJBTIIo=
In-Reply-To: <uaj21p$18naf$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 5 Aug 2023 07:51 UTC

On 04/08/2023 15:30, Pancho wrote:
> On 04/08/2023 15:01, Theo wrote:
>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> Well, bare metal programming is what it is. Now if someone wrote a
>>> software emulator for a PICO we could debug the thing...
>>
>> https://github.com/wokwi/rp2040js
>
> What are the chances an emulator would model a race condition accurately?

As good as the person who wrote it chose to make it.
--
For in reason, all government without the consent of the governed is the
very definition of slavery.

Jonathan Swift

Re: Pico - issue with interrupts and sleep??

<uakv4t$1lq8q$6@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6765&group=comp.sys.raspberry-pi#6765

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 08:53:01 +0100
Organization: A little, after lunch
Lines: 20
Message-ID: <uakv4t$1lq8q$6@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uaf51r$g063$4@dont-email.me>
<G9j*Qe0mz@news.chiark.greenend.org.uk> <uaj21p$18naf$1@dont-email.me>
<20230804191630.28ce436c5024fdf0912157b6@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 5 Aug 2023 07:53:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1763610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+q3wetNw4WKWaWjHv3zaU1l8Y6AWjgrqk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:sO3ErEpmVJbsNJwTop0ECc0Q3fY=
Content-Language: en-GB
In-Reply-To: <20230804191630.28ce436c5024fdf0912157b6@eircom.net>
 by: The Natural Philosop - Sat, 5 Aug 2023 07:53 UTC

On 04/08/2023 19:16, Ahem A Rivet's Shot wrote:
> On Fri, 4 Aug 2023 15:30:16 +0100
> Pancho <Pancho.Jones@proton.me> wrote:
>
>> What are the chances an emulator would model a race condition accurately?
>
> Minimal I would think. Way back using a bit-slice based Z80 in
> circuit emulators we had no end of issues caused by timing variances
> between the real chip and the emulation.
>
Odd. My 8086 Ices were actually pinpoint accurate.

--
For in reason, all government without the consent of the governed is the
very definition of slavery.

Jonathan Swift

Re: Pico - issue with interrupts and sleep??

<20230805092917.3310473658db4935da647f7b@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6768&group=comp.sys.raspberry-pi#6768

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 09:29:17 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20230805092917.3310473658db4935da647f7b@eircom.net>
References: <uadvdo$5dbb$1@dont-email.me>
<uaf51r$g063$4@dont-email.me>
<G9j*Qe0mz@news.chiark.greenend.org.uk>
<uaj21p$18naf$1@dont-email.me>
<20230804191630.28ce436c5024fdf0912157b6@eircom.net>
<uakv4t$1lq8q$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="73d0fe6a84b1e274f2bdfbdac20a2ac3";
logging-data="1779485"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196d379ctXB4jCGYdv7HOeMqeWPV3ahIec="
Cancel-Lock: sha1:V7KddUfhALfKlMP8lPgqB/Gm1ik=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Sat, 5 Aug 2023 08:29 UTC

On Sat, 5 Aug 2023 08:53:01 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 04/08/2023 19:16, Ahem A Rivet's Shot wrote:
> > On Fri, 4 Aug 2023 15:30:16 +0100
> > Pancho <Pancho.Jones@proton.me> wrote:
> >
> >> What are the chances an emulator would model a race condition
> >> accurately?
> >
> > Minimal I would think. Way back using a bit-slice based Z80 in
> > circuit emulators we had no end of issues caused by timing variances
> > between the real chip and the emulation.
> >
> Odd. My 8086 Ices were actually pinpoint accurate.

There were two kinds of ICE.

One used a bit slice emulation of the processor to directly drive
the pins. The other used a real processor and monitored the pins with a bit
slice emulation to track the internal registers. The latter worked!

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Pico - issue with interrupts and sleep??

<ualeff$1ntb9$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6772&group=comp.sys.raspberry-pi#6772

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mar...@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 12:14:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ualeff$1ntb9$1@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me> <uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Aug 2023 12:14:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a8ee72c85671cf4283ec360fff5ea6ae";
logging-data="1832297"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NJ3xtsLXCW6JHBuTK+hRP9clmTUKfepw="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:pd2VwcmIXk6dflYLjBqVLBYmoMU=
 by: Martin Gregorie - Sat, 5 Aug 2023 12:14 UTC

On Sat, 5 Aug 2023 08:50:40 +0100, The Natural Philosopher wrote:

> I am still being dragged kicking and screaming into the dark and fœtid
> bowels of javaScript.
>
> A loathsome melange obviously written by Computer Scientists who were
> told that Object Orientation Was The Coming Thing, but finally realised
> it wasnt.
>
I quite agree: I see no use whatsoever for Javascript. So far I haven't
found anything it can do that can't be done better and faster with awk
and/or Perl.

--

Martin | martin at
Gregorie | gregorie dot org

Re: Pico - issue with interrupts and sleep??

<20230805143039.fbb496cb38cf043503c09143@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6774&group=comp.sys.raspberry-pi#6774

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 14:30:39 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <20230805143039.fbb496cb38cf043503c09143@eircom.net>
References: <uadvdo$5dbb$1@dont-email.me>
<uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me>
<uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="73d0fe6a84b1e274f2bdfbdac20a2ac3";
logging-data="1864691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/076thtqPxJ3b9h/tp6Dg6+s5VmIeLk7U="
Cancel-Lock: sha1:40mmrhToOOia4g67BKy+cqCpmiw=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Sat, 5 Aug 2023 13:30 UTC

On Sat, 5 Aug 2023 08:50:40 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> I am still being dragged kicking and screaming into the dark and fœtid
> bowels of javaScript.
>
> A loathsome melange obviously written by Computer Scientists who were

In fact it was written at Netscape by people who wanted a client
side language like Java. Of course since then Java has gone off into the
"Enterprise" world and grown all sorts of "design pattern" based cruft
designed to make it possible for complete incompetents to produce code that
works to spec - provided the spec isn't too complex.

> told that Object Orientation Was The Coming Thing, but finally realised
> it wasnt.

JavaScript is more of a Functional style language than it is OO. It
is also hideous - but that might be my bias against Functional languages.

Object oriented design has been an enormously successful paradigm
for modelling complex structures in software and is extensively used
throughout the software industry. Almost everything I have written in the
last few decades has been OO - the rest has been short scripts.

As for Python being BASIC made to look like C - if you think that
you have completely missed the point of the language. Python has replaced
Perl as a language of choice for everything from sysadmin scripting to
complex IO bound applications for a very good reason - it is *extremely*
efficient! Not in CPU cycles of course (why bother being efficient in
CPU cycles when the slowest, cheapest embedded computer outperforms a
1980s supercomputer) but in that most expensive commodity - programmer time
both in writing and in maintenance.

Well written Python is extremely clear and intentional with a
minimum of boilerplate and syntactic cruft obscuring the intent of the
programmer.

Using Python and OO has enabled me to create frameworks that
replace great swathes of repetitive code full of boilerplate cruft by
simple declarative modules with no code in them at all.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Pico - issue with interrupts and sleep??

<ualug4$1q6vr$8@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6778&group=comp.sys.raspberry-pi#6778

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 17:48:04 +0100
Organization: A little, after lunch
Lines: 39
Message-ID: <ualug4$1q6vr$8@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uaf51r$g063$4@dont-email.me>
<G9j*Qe0mz@news.chiark.greenend.org.uk> <uaj21p$18naf$1@dont-email.me>
<20230804191630.28ce436c5024fdf0912157b6@eircom.net>
<uakv4t$1lq8q$6@dont-email.me>
<20230805092917.3310473658db4935da647f7b@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Aug 2023 16:48:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1907707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182UFmpNMdCbKI3ETA9EE+Vf6jDhLMykvY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:oQzqMa082gJBS8D0pC7Bk0DMsf8=
Content-Language: en-GB
In-Reply-To: <20230805092917.3310473658db4935da647f7b@eircom.net>
 by: The Natural Philosop - Sat, 5 Aug 2023 16:48 UTC

On 05/08/2023 09:29, Ahem A Rivet's Shot wrote:
> On Sat, 5 Aug 2023 08:53:01 +0100
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> On 04/08/2023 19:16, Ahem A Rivet's Shot wrote:
>>> On Fri, 4 Aug 2023 15:30:16 +0100
>>> Pancho <Pancho.Jones@proton.me> wrote:
>>>
>>>> What are the chances an emulator would model a race condition
>>>> accurately?
>>>
>>> Minimal I would think. Way back using a bit-slice based Z80 in
>>> circuit emulators we had no end of issues caused by timing variances
>>> between the real chip and the emulation.
>>>
>> Odd. My 8086 Ices were actually pinpoint accurate.
>
> There were two kinds of ICE.
>
> One used a bit slice emulation of the processor to directly drive
> the pins. The other used a real processor and monitored the pins with a bit
> slice emulation to track the internal registers. The latter worked!
>
Both worked for me. Or at least the bit slice one built of ECL did until
the lab temperature exceeded 30°C.

We had been pleading with Management for air con, but only when the kit
suffered did we finally get it.

And I pointed out the small print in the manual (operating temperature
range 0-29°C).

--
"When a true genius appears in the world, you may know him by this sign,
that the dunces are all in confederacy against him."

Jonathan Swift.

Re: Pico - issue with interrupts and sleep??

<ualukj$1q6vr$9@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6779&group=comp.sys.raspberry-pi#6779

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 17:50:27 +0100
Organization: A little, after lunch
Lines: 26
Message-ID: <ualukj$1q6vr$9@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me> <uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me> <ualeff$1ntb9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Aug 2023 16:50:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1907707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rEdb+iWt3DcTt4SfY+i5xkR4ya5mI9hA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:EIlLo7HATsQ+iiPBCcxBsWYpGeg=
Content-Language: en-GB
In-Reply-To: <ualeff$1ntb9$1@dont-email.me>
 by: The Natural Philosop - Sat, 5 Aug 2023 16:50 UTC

On 05/08/2023 13:14, Martin Gregorie wrote:
> On Sat, 5 Aug 2023 08:50:40 +0100, The Natural Philosopher wrote:
>
>> I am still being dragged kicking and screaming into the dark and fœtid
>> bowels of javaScript.
>>
>> A loathsome melange obviously written by Computer Scientists who were
>> told that Object Orientation Was The Coming Thing, but finally realised
>> it wasnt.
>>
> I quite agree: I see no use whatsoever for Javascript. So far I haven't
> found anything it can do that can't be done better and faster with awk
> and/or Perl.
>
??? You cant get a browser to run PERL. If you want to use your browser
as an almost real time interactive control interface for a remote device
you have no choice BUT to run javaScript. It's the only language a
browser understands.

--
"When a true genius appears in the world, you may know him by this sign,
that the dunces are all in confederacy against him."

Jonathan Swift.

Re: Pico - issue with interrupts and sleep??

<20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6783&group=comp.sys.raspberry-pi#6783

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 18:21:21 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>
References: <uadvdo$5dbb$1@dont-email.me>
<uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me>
<uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me>
<ualeff$1ntb9$1@dont-email.me>
<ualukj$1q6vr$9@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="73d0fe6a84b1e274f2bdfbdac20a2ac3";
logging-data="1925084"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZzkkUVKnP0foGEsdeuHuaZ4+FMau4CRU="
Cancel-Lock: sha1:43s1e3nW4+EhhkstFb8NJsyKrGs=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Sat, 5 Aug 2023 17:21 UTC

On Sat, 5 Aug 2023 17:50:27 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> ??? You cant get a browser to run PERL.

Oh yes you can :)

There's a JavaScript PC emulation that can boot Linux. Now that's a
real tour-de-farce.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Pico - issue with interrupts and sleep??

<uam256$1qt5d$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6786&group=comp.sys.raspberry-pi#6786

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 18:50:30 +0100
Organization: A little, after lunch
Lines: 19
Message-ID: <uam256$1qt5d$2@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me> <uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me> <ualeff$1ntb9$1@dont-email.me>
<ualukj$1q6vr$9@dont-email.me>
<20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Aug 2023 17:50:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1930413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZefRti8IBIMHqyX7e0t7imvAu/IrSUJg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:BidHqPsx6doF035RURTweK0sJgE=
In-Reply-To: <20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 5 Aug 2023 17:50 UTC

On 05/08/2023 18:21, Ahem A Rivet's Shot wrote:
> On Sat, 5 Aug 2023 17:50:27 +0100
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> ??? You cant get a browser to run PERL.
>
> Oh yes you can :)
>
> There's a JavaScript PC emulation that can boot Linux. Now that's a
> real tour-de-farce.
>
but that is using javaScript..

--
"An intellectual is a person knowledgeable in one field who speaks out
only in others...”

Tom Wolfe

Re: Pico - issue with interrupts and sleep??

<20230805192011.c406d89c4e4863c8764bac78@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6788&group=comp.sys.raspberry-pi#6788

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 19:20:11 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20230805192011.c406d89c4e4863c8764bac78@eircom.net>
References: <uadvdo$5dbb$1@dont-email.me>
<uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me>
<uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me>
<ualeff$1ntb9$1@dont-email.me>
<ualukj$1q6vr$9@dont-email.me>
<20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>
<uam256$1qt5d$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="73d0fe6a84b1e274f2bdfbdac20a2ac3";
logging-data="1942457"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hoKoczWstWQJVUx9vYDa731Rd3+JwGws="
Cancel-Lock: sha1:owfxD3O1a3Dhtlho13bixVnHBW0=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
X-Clacks-Overhead: "GNU Terry Pratchett"
 by: Ahem A Rivet's - Sat, 5 Aug 2023 18:20 UTC

On Sat, 5 Aug 2023 18:50:30 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 05/08/2023 18:21, Ahem A Rivet's Shot wrote:
> > On Sat, 5 Aug 2023 17:50:27 +0100
> > The Natural Philosopher <tnp@invalid.invalid> wrote:
> >
> >> ??? You cant get a browser to run PERL.
> >
> > Oh yes you can :)
> >
> > There's a JavaScript PC emulation that can boot Linux. Now
> > that's a real tour-de-farce.
> >
> but that is using javaScript..

Sure JavaScript to run the X86 PC emulator which boots Linux running
in x86 code to run a shell and a Perl interpreter (all written in C) to run
(OK waddle) Perl code all inside the browser.

IT makes an emulated PC running on a Pi look really fast.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Pico - issue with interrupts and sleep??

<uam81p$1rp0j$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6790&group=comp.sys.raspberry-pi#6790

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 20:31:05 +0100
Organization: A little, after lunch
Lines: 37
Message-ID: <uam81p$1rp0j$2@dont-email.me>
References: <uadvdo$5dbb$1@dont-email.me> <uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me> <uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me> <ualeff$1ntb9$1@dont-email.me>
<ualukj$1q6vr$9@dont-email.me>
<20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>
<uam256$1qt5d$2@dont-email.me>
<20230805192011.c406d89c4e4863c8764bac78@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Aug 2023 19:31:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6070ec3361cce7739c0e75bcc0b9f94d";
logging-data="1958931"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tAlV0N25pFqtMFecff/f7KwQWEgcp2vE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:qCoZIk8JoPiH11PLdEEDsd+ZP3g=
In-Reply-To: <20230805192011.c406d89c4e4863c8764bac78@eircom.net>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 5 Aug 2023 19:31 UTC

On 05/08/2023 19:20, Ahem A Rivet's Shot wrote:
> On Sat, 5 Aug 2023 18:50:30 +0100
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> On 05/08/2023 18:21, Ahem A Rivet's Shot wrote:
>>> On Sat, 5 Aug 2023 17:50:27 +0100
>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>
>>>> ??? You cant get a browser to run PERL.
>>>
>>> Oh yes you can :)
>>>
>>> There's a JavaScript PC emulation that can boot Linux. Now
>>> that's a real tour-de-farce.
>>>
>> but that is using javaScript..
>
> Sure JavaScript to run the X86 PC emulator which boots Linux running
> in x86 code to run a shell and a Perl interpreter (all written in C) to run
> (OK waddle) Perl code all inside the browser.
>
Yebbut the whole point was that the person I responded to said that they
didn't NEED JAVASCRIPT to run in a *browser*. They could run PERL *instead*.

Your example is a straw man. Because it needs Javascript to run.

> IT makes an emulated PC running on a Pi look really fast.
>

--
“It is hard to imagine a more stupid decision or more dangerous way of
making decisions than by putting those decisions in the hands of people
who pay no price for being wrong.”

Thomas Sowell

Re: Pico - issue with interrupts and sleep??

<20230805222541.c3d50588b62f5debda95d115@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6793&group=comp.sys.raspberry-pi#6793

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pico - issue with interrupts and sleep??
Date: Sat, 5 Aug 2023 22:25:41 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20230805222541.c3d50588b62f5debda95d115@eircom.net>
References: <uadvdo$5dbb$1@dont-email.me>
<uag1f5$kvms$4@dont-email.me>
<uagj6t$qs8r$1@dont-email.me>
<uaj204$18qhv$1@dont-email.me>
<uakv0g$1lq8q$4@dont-email.me>
<ualeff$1ntb9$1@dont-email.me>
<ualukj$1q6vr$9@dont-email.me>
<20230805182121.fca5a9b5718e634ca5ccbb1c@eircom.net>
<uam256$1qt5d$2@dont-email.me>
<20230805192011.c406d89c4e4863c8764bac78@eircom.net>
<uam81p$1rp0j$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="73d0fe6a84b1e274f2bdfbdac20a2ac3";
logging-data="1993079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YO++1YacHWL0g42UQhkbv5DvsjoVI/po="
Cancel-Lock: sha1:r/elmmVmfGVRMWwCuTK/RXoTLW8=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Sat, 5 Aug 2023 21:25 UTC

On Sat, 5 Aug 2023 20:31:05 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 05/08/2023 19:20, Ahem A Rivet's Shot wrote:
> > On Sat, 5 Aug 2023 18:50:30 +0100
> > The Natural Philosopher <tnp@invalid.invalid> wrote:
> >
> >> On 05/08/2023 18:21, Ahem A Rivet's Shot wrote:
> >>> On Sat, 5 Aug 2023 17:50:27 +0100
> >>> The Natural Philosopher <tnp@invalid.invalid> wrote:
> >>>
> >>>> ??? You cant get a browser to run PERL.
> >>>
> >>> Oh yes you can :)

> Yebbut the whole point was that the person I responded to said that they
> didn't NEED JAVASCRIPT to run in a *browser*. They could run PERL
> *instead*.

Ah well that's the important missing word - you can have it as well
but not instead. Unless you want to write a browser (perhaps in perl).

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor