On Mon, 2025-08-25 at 16:47 +0200, Bonita Montero wrote:
Am 25.08.2025 um 16:27 schrieb wij:
This topic relates to how much you know about programs and prove the C/C++ >>> codes is (logically) correct.
The halting problem is simple to solve:
jthread( []
{
this_thread::sleep_for( 1h );
abort();
} ).detach();
Each program that uses this halts at least in an hour.
Aren't I a genius ? I'll get the Turing Award for that !
Halting Problem is about Turing Machine, But you can use, for example,
a 'function', or an executable,...,others.
You just prove you are another olcott who deos not know what HP is.
But in your case, how do you prove 'jthread' is correct?
This topic relates to how much you know about programs and prove the C/C++ codes is (logically) correct.
I guess you have no idea!
On Mon, 2025-08-25 at 15:51 +0000, Gerald Tubin wrote:
On 25/08/2025 16:10, wij wrote:
I guess you have no idea!
We rely on you to explain things to us in a simple way. As Albert
Einstein once said, 'If you can't explain it simply, you don't
understand it well enough'.
Given your extensive knowledge of C/C++ and halting problems, please
summarise it for us here.
The idea was just inspired by olcott. Halting Problem should be simple and does not involve too many stuff. Detail of the rule I can think about now is:
1. The correctness of C/C++ codes is based Turing Machine.
(otherwise, no way to verify. Or, you porved Church-Turing thesis is wrong)
2. C++std library does not prove itself correct, the proof generally cannot
relies on it (except you can prove it. Some primative things should be OK).
3. xxx are correct iff it can be implemented by Turing Machine. But normally we
don't need to go that deep. In some cases, specification is fine if it can
be correctly assumed correct.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 547 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:36:01 |
Calls: | 10,398 |
Calls today: | 6 |
Files: | 14,067 |
Messages: | 6,417,476 |
Posted today: | 1 |