Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?" (By Patrick Volkerding)


devel / comp.lang.tcl / Re: after has a max?

SubjectAuthor
* after has a max?saitology9
`* Re: after has a max?Gerald Lester
 +* Re: after has a max?Rich
 |`* Re: after has a max?saitology9
 | `- Re: after has a max?Harald Oehlmann
 `- Re: after has a max?saitology9

1
after has a max?

<us5c6j$3baqu$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13070&group=comp.lang.tcl#13070

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitolo...@gmail.com (saitology9)
Newsgroups: comp.lang.tcl
Subject: after has a max?
Date: Mon, 4 Mar 2024 15:50:26 -0500
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <us5c6j$3baqu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 20:50:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ede492b631569a932b16c618e678cc7f";
logging-data="3517278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+U/9QDl91PeVVBAaGaaGXw"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ge3tgu7kwPd+zDeIc8ONAFLad3c=
Content-Language: en-US
 by: saitology9 - Mon, 4 Mar 2024 20:50 UTC

It seems that the ms argument to the after command has a limit. If it
is sufficiently large, it locks up the script and you can't do anything
until you cancel the after command.

Further checking seems to point at "2037" or thereabouts as the critical
time point. Any ms argument that puts it past that point causes the
error. But there is no info on this in the docs so perhaps it is
something else altogether.

% after [expr 14*365*24*60*60*1000] puts "gui locked up?"

This is on 64-bit Windows running 32-bit tclsh.

Re: after has a max?

<MTqFN.35449$hN14.4095@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13076&group=comp.lang.tcl#13076

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: after has a max?
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <us5c6j$3baqu$1@dont-email.me>
From: Gerald.L...@gmail.com (Gerald Lester)
In-Reply-To: <us5c6j$3baqu$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 22
Message-ID: <MTqFN.35449$hN14.4095@fx17.iad>
X-Complaints-To: abuse@fastusenet.org
NNTP-Posting-Date: Mon, 04 Mar 2024 21:17:32 UTC
Organization: fastusenet - www.fastusenet.org
Date: Mon, 4 Mar 2024 15:17:32 -0600
X-Received-Bytes: 1593
 by: Gerald Lester - Mon, 4 Mar 2024 21:17 UTC

On 3/4/24 14:50, saitology9 wrote:
> It seems that the ms argument to the after command has a limit.  If it
> is sufficiently large, it locks up the script and you can't do anything
> until you cancel the after command.
>
> Further checking seems to point at "2037" or thereabouts as the critical
> time point.  Any ms argument that puts it past that point causes the
> error. But there is no info on this in the docs so perhaps it is
> something else altogether.
>
> % after [expr 14*365*24*60*60*1000]  puts "gui locked up?"

First off the correct syntax would be:
after [expr {14*365*24*60*60*1000}] {puts "gui locked up?"}

Second off, is it realistic that the same process will be running in 14
years?

Thirdly, it does not seem to cause an issue on Linux (Ubuntu to be
precise) -- so this may be a MS Windows bug.

Re: after has a max?

<us5eap$3bpku$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13078&group=comp.lang.tcl#13078

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: comp.lang.tcl
Subject: Re: after has a max?
Date: Mon, 4 Mar 2024 21:26:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <us5eap$3bpku$1@dont-email.me>
References: <us5c6j$3baqu$1@dont-email.me> <MTqFN.35449$hN14.4095@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 21:26:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0e08ab1718affbdd511667dec2677100";
logging-data="3532446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2fBAhHYT5HlXEBcuvl37m"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:fX3TxTUrHvXFixy5TSUv305lchc=
 by: Rich - Mon, 4 Mar 2024 21:26 UTC

Gerald Lester <Gerald.Lester@gmail.com> wrote:
> On 3/4/24 14:50, saitology9 wrote:
>> It seems that the ms argument to the after command has a limit.  If it
>> is sufficiently large, it locks up the script and you can't do anything
>> until you cancel the after command.
>>
>> Further checking seems to point at "2037" or thereabouts as the critical
>> time point.  Any ms argument that puts it past that point causes the
>> error. But there is no info on this in the docs so perhaps it is
>> something else altogether.
>>
>> % after [expr 14*365*24*60*60*1000]  puts "gui locked up?"
>
> First off the correct syntax would be:
> after [expr {14*365*24*60*60*1000}] {puts "gui locked up?"}
>
>
> Second off, is it realistic that the same process will be running in 14
> years?

Not really. That would be some very serious "nines" there (as in the
supposed "5 nines" reliability of IBM mainframes).

>>This is on 64-bit Windows running 32-bit tclsh.

> Thirdly, it does not seem to cause an issue on Linux (Ubuntu to be
> precise) -- so this may be a MS Windows bug.

It sounds like 32-bit Tcl on Windows is using a 32-bit time value that
can't represent time past the overflow point of a 32-bit time value.
I.e., it may be suffering from the year 2038 problem:

https://en.wikipedia.org/wiki/Year_2038_problem

Re: after has a max?

<us5ebi$3baqu$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13079&group=comp.lang.tcl#13079

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitolo...@gmail.com (saitology9)
Newsgroups: comp.lang.tcl
Subject: Re: after has a max?
Date: Mon, 4 Mar 2024 16:27:12 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <us5ebi$3baqu$3@dont-email.me>
References: <us5c6j$3baqu$1@dont-email.me> <MTqFN.35449$hN14.4095@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 21:27:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ede492b631569a932b16c618e678cc7f";
logging-data="3517278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zQB8lY2bviWp96ZHLpXWe"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+1rOWkFgohwW+zq6mquF7vvecuA=
Content-Language: en-US
In-Reply-To: <MTqFN.35449$hN14.4095@fx17.iad>
 by: saitology9 - Mon, 4 Mar 2024 21:27 UTC

On 3/4/2024 4:17 PM, Gerald Lester wrote:

> First off the correct syntax would be:
>   after [expr {14*365*24*60*60*1000}]  {puts "gui locked up?"}
>

Copy/paste mistake.

>
> Second off, is it realistic that the same process will be running in 14
> years?
>

LOL, no, not really :-) But then again, people did spend millions on Y2K.

> Thirdly, it does not seem to cause an issue on Linux (Ubuntu to be
> precise) -- so this may be a MS Windows bug.
>

More than likely I guess.

Thanks for the reply.

Re: after has a max?

<us5egb$3baqu$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13080&group=comp.lang.tcl#13080

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitolo...@gmail.com (saitology9)
Newsgroups: comp.lang.tcl
Subject: Re: after has a max?
Date: Mon, 4 Mar 2024 16:29:46 -0500
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <us5egb$3baqu$4@dont-email.me>
References: <us5c6j$3baqu$1@dont-email.me> <MTqFN.35449$hN14.4095@fx17.iad>
<us5eap$3bpku$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 21:29:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ede492b631569a932b16c618e678cc7f";
logging-data="3517278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GQlgyY7eM73c2J7hx/yJi"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CGCH4lnyOzIB349PtQHz8G7zrHY=
Content-Language: en-US
In-Reply-To: <us5eap$3bpku$1@dont-email.me>
 by: saitology9 - Mon, 4 Mar 2024 21:29 UTC

On 3/4/2024 4:26 PM, Rich wrote:
>
> It sounds like 32-bit Tcl on Windows is using a 32-bit time value that
> can't represent time past the overflow point of a 32-bit time value.
> I.e., it may be suffering from the year 2038 problem:
>
> https://en.wikipedia.org/wiki/Year_2038_problem

I think this is it! Thanks.

Re: after has a max?

<us6j6u$3lbus$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13093&group=comp.lang.tcl#13093

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortka...@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: after has a max?
Date: Tue, 5 Mar 2024 08:56:15 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <us6j6u$3lbus$1@dont-email.me>
References: <us5c6j$3baqu$1@dont-email.me> <MTqFN.35449$hN14.4095@fx17.iad>
<us5eap$3bpku$1@dont-email.me> <us5egb$3baqu$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 07:56:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1abf92d4f488916e7f02a3312e208eb";
logging-data="3846108"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Si1Hav/cZvpxW9neXIXry"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2CxbVMLwOW8jUBHR4OrdlNzSjyI=
In-Reply-To: <us5egb$3baqu$4@dont-email.me>
Content-Language: en-GB
 by: Harald Oehlmann - Tue, 5 Mar 2024 07:56 UTC

Am 04.03.2024 um 22:29 schrieb saitology9:
> On 3/4/2024 4:26 PM, Rich wrote:
>>
>> It sounds like 32-bit Tcl on Windows is using a 32-bit time value that
>> can't represent time past the overflow point of a 32-bit time value.
>> I.e., it may be suffering from the year 2038 problem:
>>
>> https://en.wikipedia.org/wiki/Year_2038_problem
>
> I think this is it!      Thanks.

"after" on MS-Windows also relies on the fact, that the clock is not
changed. I have a gui written in TCL to change the clock of an embedded
system. Then, all after events are delayed by this time.

It may be, that all year 2038 issues with Windows are fixed in more
recent versions of TCL. I tested it one day by advancing the clock of my
machine and it worked, if I remember right.

Take care,
Harald

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor