Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"It is easier to fight for principles than to live up to them." -- Alfred Adler


devel / comp.lang.python / Re: Question(s)

SubjectAuthor
* Re: Question(s)o1bigtenor
`- Re: Question(s)Dan Purgert

1
Re: Question(s)

<mailman.39.1698188955.3828.python-list@python.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: o1bigte...@gmail.com (o1bigtenor)
Newsgroups: comp.lang.python
Subject: Re: Question(s)
Date: Tue, 24 Oct 2023 18:08:37 -0500
Lines: 47
Message-ID: <mailman.39.1698188955.3828.python-list@python.org>
References: <CAPpdf58WXyJs+Rd_GnbS-6dW8bPNt5DsojnVN5_ep+ebNx36Pw@mail.gmail.com>
<b0077e04-1abe-42d0-aeff-0104aa8d355a@btinternet.com>
<CAPpdf58KyVo7W_B=uyVjkBRQBHB=uGJeTXsFD8Gopj0bqe86HA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de B5YqdxpUOv7NMm76ZGkiKQzKvQUSnct7j/+gowHQO5cA==
Cancel-Lock: sha1:HZb0jHFBPUOvrKrSt5RCpOHjpCk= sha256:weWlnpCpK122hiJ46c7W2tGIRVOlNiSxWcNEpNmS7i4=
Return-Path: <o1bigtenor@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=UjkE6hMR;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(e.g.': 0.05; 'random':
0.05; '2023': 0.07; 'e.g.': 0.07; 'hopefully': 0.07; 'loop': 0.07;
'wrong.': 0.07; '(python': 0.09; 'cc:addr:python-list': 0.09;
'theoretical': 0.09; 'log': 0.12; 'bits': 0.16; 'bugs': 0.16;
'cc:name:python': 0.16; 'concentrate': 0.16; 'cope': 0.16;
'files).': 0.16; 'generating': 0.16; 'practice,': 0.16;
'program:': 0.16; 'received:mail-lj1-x22a.google.com': 0.16;
'simulation': 0.16; 'sounds': 0.16; 'trees.': 0.16; 'wrote:':
0.16; 'probably': 0.17; 'hardware': 0.19; 'subject:Question':
0.19; 'tue,': 0.19; 'cc:addr:python.org': 0.20; 'input': 0.21;
'languages': 0.22; 'version': 0.23; 'code': 0.23; 'run': 0.23;
'idea': 0.24; 'saying': 0.25; 'cc:2**0': 0.25; 'programming':
0.25; 'leave': 0.27; 'done': 0.28; 'computer': 0.29; 'program,':
0.31; 'program': 0.31; '(as': 0.32; 'programmers': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; "i'm": 0.33; 'there':
0.33; 'same': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'running': 0.34; 'meaning': 0.35;
'from:addr:gmail.com': 0.35; 'functions': 0.36; 'main': 0.37;
'file': 0.38; 'way': 0.38; 'means': 0.38; 'data.': 0.40; 'happen':
0.40; 'program.': 0.40; 'should': 0.40; 'provide': 0.60; 'likely':
0.61; 'come': 0.62; 'great': 0.63; 'subject:(': 0.64; 'your':
0.64; 'guaranteed': 0.67; 'accept': 0.67; 'piece': 0.69;
'interesting': 0.71; 'deal': 0.73; 'sources': 0.75; 'confidence':
0.76; 'degree': 0.76; 'life': 0.77; 'catch': 0.84; 'eliminated':
0.84; 'file(s)': 0.84; 'realistic,': 0.84; 'rigorously': 0.84;
'rob': 0.84; 'am.': 0.91; 'forest': 0.91; 'arise': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1698188953; x=1698793753; darn=python.org;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=QhWSDPWpLdyuTxIKkeB8PH/K8X5Hoe9Jz32Tm/YpD2U=;
b=UjkE6hMRdGLxhTczvvsbn+HfhkkTriOKJ6554EXkz0zFGT/9glXlVHM4OfPDHnC0fn
JglS/21NPPyI91H7BeDAXxLD8lWgSRovyAPJtnPgTbbdZWllPL0V1prU3cZ1TEijjrf7
9+zi/x0RoKWQDexzwogryMqMWBINVSRPw2zV8pZrunFEfArYshuvf2sDqe8y81TqGk1U
9r0QLrEFZev1NrUtYjvkI0r/fpFTXXxTaXaNOEFBaqNU91wqVHjsjEg66AidZ/CpyOTU
uesR3ODhBYOIyAlmaIhizGXib+XMe86o3efVbeYJOPPvICluIj1vI86hepTKCjhe3GXJ
jSWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1698188953; x=1698793753;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=QhWSDPWpLdyuTxIKkeB8PH/K8X5Hoe9Jz32Tm/YpD2U=;
b=lZV+1XSkBguV3XndR8XE/TSE2IxzNsR/0V3ybKZkni9W3CWEVzb9WuDwKOCaUZSCxW
ZttIqKpYdKYWjPkD2RXPBsCmoPBO+8Om5zDoYCKkcNCPQjP37IxYcEi58G6Z9kv7nvYQ
vTKfKPvuiO1O8U2kesqZlwgIG3HpmF+ncwgVVZupMs3SICbNrDrAJn9ZjNl+plPq/GRL
b/nMCBI9VOKHmXwLukRXQZO72fEPboDDU6DJQ+iQMrHne4hD0DpkAkdMQTIKmby5GO6g
mZy9cY0Y7xENvILK0vjVHpxKA/AyizxyJmqIIhdoWeJW+EhZYFdHFEdlTq84C/tvHfAM
PLbQ==
X-Gm-Message-State: AOJu0Yyr2v4njQmgfYST5X0b+YMNB0lprI3qARLdehen3dGTMFcj1W3s
/N6Gz337r1xAUJsQnIhHSOi8T+KG8gwBmhl7ZiwMGapw
X-Google-Smtp-Source: AGHT+IEMEy6J/FbyX+KkIBfyp8Q7hgKfvQCCkgdKOBcLtBBncylEb5PuGXbuhPQkuCUtsL95YycEoU+scKU0/y+jsEE=
X-Received: by 2002:a05:651c:b11:b0:2c5:169f:ff03 with SMTP id
b17-20020a05651c0b1100b002c5169fff03mr10776534ljr.5.1698188953229; Tue, 24
Oct 2023 16:09:13 -0700 (PDT)
In-Reply-To: <b0077e04-1abe-42d0-aeff-0104aa8d355a@btinternet.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPpdf58KyVo7W_B=uyVjkBRQBHB=uGJeTXsFD8Gopj0bqe86HA@mail.gmail.com>
X-Mailman-Original-References: <CAPpdf58WXyJs+Rd_GnbS-6dW8bPNt5DsojnVN5_ep+ebNx36Pw@mail.gmail.com>
<b0077e04-1abe-42d0-aeff-0104aa8d355a@btinternet.com>
 by: o1bigtenor - Tue, 24 Oct 2023 23:08 UTC

On Tue, Oct 24, 2023 at 5:28 PM Rob Cliffe <rob.cliffe@btinternet.com> wrote:
>
> There is no general way to prove that a program is "correct". Or even
> whether it will terminate or loop endlessly.
> These are of course theoretical statements of computer science. But
> they can be rigorously proven. (Sorry if I'm just saying this to show
> what a smart-ass I am. 🙂)
> In practice, of course, there is often a great deal that can be done to
> "verify" (a word whose meaning I intentionally leave vague) a program's
> correctness.
> In your case, it sounds as if you should
>
> Write programs or functions to simulate each piece of hardware and
> generate random, but reasonably realistic, data. (Python and most other
> programming languages provide means of generating random or
> pseudo-random data.)
> In your main program:
> Replace the bits of code that accept data from the hardware by
> bits of code that accept data from these simulation programs/functions.
> Write the decisions it makes to a log file (or files).
> Run the program as long as you can or until your patience is
> exhausted, and check from the log file(s) that it is behaving as you
> would expect.
>
> This is not guaranteed to catch all possible errors. (Nothing is.) E.g.
> The original code to accept data from the hardware (code that you
> remove in your test version of the program) might be wrong. Duh!
> There might be specific sets of input data that happen not to arise
> in your testing, but that your program logic does not cope with.
> Nonetheless, this sort of testing (if done diligently) can give you a
> high degree of confidence in your program.
> And it is a good idea to do it.
> When you come to run your program "for real", and you have to
> troubleshoot it (as in real life you probably will🙁), you will have
> eliminated simple bugs in your program, and can concentrate on the more
> likely sources of problems (e.g. misbehaving hardware).
>
Interesting - - - hopefully taken in the same vein as your second statement - -
I sorta sounds like programmers keep running around in the forest looking
for trees. (Grin!)

So how does one test software then?

Tia

Re: Question(s)

<slrnujhnn6.2f4.dan@djph.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dan...@djph.net (Dan Purgert)
Newsgroups: comp.lang.python
Subject: Re: Question(s)
Date: Wed, 25 Oct 2023 09:23:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <slrnujhnn6.2f4.dan@djph.net>
References: <CAPpdf58WXyJs+Rd_GnbS-6dW8bPNt5DsojnVN5_ep+ebNx36Pw@mail.gmail.com>
<b0077e04-1abe-42d0-aeff-0104aa8d355a@btinternet.com>
<CAPpdf58KyVo7W_B=uyVjkBRQBHB=uGJeTXsFD8Gopj0bqe86HA@mail.gmail.com>
<mailman.39.1698188955.3828.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 Oct 2023 09:23:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0e034aa9b0b6ab7ef8ed3c918d0bbefd";
logging-data="702316"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FNFXE9MQUwZ1VBaVy4m6JbbCUBpXyg5I="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:vAc97VaaHqx7/mQFg0plHBITMhk=
 by: Dan Purgert - Wed, 25 Oct 2023 09:23 UTC

On 2023-10-24, o1bigtenor wrote:
> On Tue, Oct 24, 2023 at 5:28 PM Rob Cliffe <rob.cliffe@btinternet.com> wrote:
>>
>> There is no general way to prove that a program is "correct". Or even
>> whether it will terminate or loop endlessly.
>> [...]
>> When you come to run your program "for real", and you have to
>> troubleshoot it (as in real life you probably will🙁), you will have
>> eliminated simple bugs in your program, and can concentrate on the more
>> likely sources of problems (e.g. misbehaving hardware).
>>
> Interesting - - - hopefully taken in the same vein as your second
> statement - - I sorta sounds like programmers keep running around in
> the forest looking for trees. (Grin!)

No, you tend to know what parts of the spec are "wrong(tm)" (either in
the language you're working in, or the hardware).

If it comes to working with customers (as mentioned in one response),
you start to learn the questions to get at what they really want (but
that's better left to the architect :) )

>
> So how does one test software then?

You write unit tests (usually scripts or other software that can
interact with the main program to twiddle the knobs and such, and ensure
it's doing what was specified). Alternatively, you have to program your
hardware and test directly on that.

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor