Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Say yur prayers, yuh flea-pickin' varmint!" -- Yosemite Sam


devel / comp.lang.c / Does the call from P() to H() specify infinite recursion?

SubjectAuthor
* Does the call from P() to H() specify infinite recursion?olcott
`* Re: Does the call from P() to H() specify infinite recursion?Marcel Mueller
 +* Re: Does the call from P() to H() specify infinite recursion?olcott
 |`* Re: Does the call from P() to H() specify infinite recursion?Richard Damon
 | `* Re: Does the call from P() to H() specify infinite recursion?olcott
 |  `* Re: Does the call from P() to H() specify infinite recursion?Richard Damon
 |   `* Re: Does the call from P() to H() specify infinite recursion?olcott
 |    +* Re: Does the call from P() to H() specify infinite recursion?Richard Damon
 |    |`- Re: Does the call from P() to H() specify infinite recursion?olcott
 |    `* Re: Does the call from P() to H() specify infinite recursion?Ben Bacarisse
 |     +- Re: Does the call from P() to H() specify infinite recursion? [olcott
 |     `- Re: Does the call from P() to H() specify infinite recursion?olcott
 +* Re: Does the call from P() to H() specify infinite recursion?Jeff Barnett
 |+* Re: Does the call from P() to H() specify infinite recursion?olcott
 ||`* Re: Does the call from P() to H() specify infinite recursion?Jeff Barnett
 || `- Re: Does the call from P() to H() specify infinite recursion?olcott
 |+- Re: Does the call from P() to H() specify infinite recursion?Ben Bacarisse
 |`- Re: Does the call from P() to H() specify infinite recursion?olcott
 `* Re: Does the call from P() to H() specify infinite recursion?Joe Pfeiffer
  `* Re: Does the call from P() to H() specify infinite recursion?olcott
   `* Re: Does the call from P() to H() specify infinite recursion?olcott
    `- Re: Does the call from P() to H() specify infinite recursion? [ Couldolcott

1
Does the call from P() to H() specify infinite recursion?

<UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!buffer1.nntp.ams1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 10:00:38 -0600
Date: Thu, 11 Nov 2021 10:00:36 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
Content-Language: en-US
From: NoO...@NoWhere.com (olcott)
Subject: Does the call from P() to H() specify infinite recursion?
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
Lines: 24
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-h1ISApzFkGE1n3r2E09GrLuGbCLKmdqpEzKXzDMuo9zWBJCuXQFDJ1rZtHYaCzZhl3VffCpu5axDrOU!623YSb1tK7hJRMP74w1WDDRMEeRov4Sj2rr/evKpvdk43oGe+B2k/pWoqPfvespu+gOLIJpYvLIn!+A==
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
X-Original-Bytes: 1457
 by: olcott - Thu, 11 Nov 2021 16:00 UTC

#define ptr uintptr_t

void P(ptr x)
{ H(x, x);
}

int H(ptr x, ptr y)
{ ((void(*)(ptr))x)(y);
return 1;
}

int main()
{ H((ptr)P, (ptr)P);
return 0;
}

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<smjlq1$l58o$1@gwaiyur.mb-net.net>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.2a02:908:1b18:aa00:a00:27ff:fe8d:1f8d!not-for-mail
From: news.5.m...@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
Subject: Re: Does the call from P() to H() specify infinite recursion?
Date: Thu, 11 Nov 2021 19:01:36 +0100
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <smjlq1$l58o$1@gwaiyur.mb-net.net>
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 11 Nov 2021 18:01:37 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net; posting-host="2a02:908:1b18:aa00:a00:27ff:fe8d:1f8d";
logging-data="693528"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:wcnFcL8kU8btVi+Vpqn1K3By+NE=
Content-Language: en-US
X-User-ID: U2FsdGVkX1/ML8GSW0w6k3HDYgudufEcC5dU6MApyfcPXJW+fRcc5ndVKn9KZFKn
In-Reply-To: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
 by: Marcel Mueller - Thu, 11 Nov 2021 18:01 UTC

Am 11.11.21 um 17:00 schrieb olcott:
> #define ptr uintptr_t
>
> void P(ptr x)
> {
>   H(x, x);
> }
>
> int H(ptr x, ptr y)
> {
>   ((void(*)(ptr))x)(y);
>   return 1;
> }
>
> int main()
> {
>   H((ptr)P, (ptr)P);
>   return 0;
> }

Besides the fact that there is no good reason to write that type unsafe
code in C++ did you test it? The code will never compile because of the
forward reference to H.

And well, H calls P and P calls H. What do you expect?

Marcel

Re: Does the call from P() to H() specify infinite recursion?

<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 12:52:54 -0600
Date: Thu, 11 Nov 2021 12:52:52 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com> <smjlq1$l58o$1@gwaiyur.mb-net.net>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <smjlq1$l58o$1@gwaiyur.mb-net.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
Lines: 42
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-kK20mp+6way3VPLs1CKG+j7ibN09fSSUAByh7TyRsl7PajObi3metS2eMaHKSE0W22doEOWcVDRjmSh!ib+Glxw/PMykltXhUe2c1pwPTpThGGxtDxYBLK43Cm3dNoXbR9pzB8vTA4pNSZggZAkDKiQFJdLL!QA==
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
X-Original-Bytes: 2305
 by: olcott - Thu, 11 Nov 2021 18:52 UTC

On 11/11/2021 12:01 PM, Marcel Mueller wrote:
> Am 11.11.21 um 17:00 schrieb olcott:
>> #define ptr uintptr_t
>>
>> void P(ptr x)
>> {
>>    H(x, x);
>> }
>>
>> int H(ptr x, ptr y)
>> {
>>    ((void(*)(ptr))x)(y);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    H((ptr)P, (ptr)P);
>>    return 0;
>> }
>
> Besides the fact that there is no good reason to write that type unsafe
> code in C++ did you test it? The code will never compile because of the
> forward reference to H.
>
> And well, H calls P and P calls H. What do you expect?
>
>
> Marcel

Yes the code does compile and I did test it.
This is the pure C part of my halting theorem refutation. I wanted to
get some C experts to weigh in on the the analysis of the C code.

I won't be discussing anything besides the pure C aspects here because
people here get upset.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<smjpjl$r5c$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb...@notatt.com (Jeff Barnett)
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
Subject: Re: Does the call from P() to H() specify infinite recursion?
Date: Thu, 11 Nov 2021 12:06:25 -0700
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <smjpjl$r5c$1@dont-email.me>
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Date: Thu, 11 Nov 2021 19:06:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ffcfd17887c690f62d7e58193714fcfd";
logging-data="27820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uAaZSNwBnDma/O+owy0gLzidp8XOLSyI="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:L2KMxgI0EQHvMRwJ+SBALNgnejo=
In-Reply-To: <smjlq1$l58o$1@gwaiyur.mb-net.net>
Content-Language: en-US
 by: Jeff Barnett - Thu, 11 Nov 2021 19:06 UTC

On 11/11/2021 11:01 AM, Marcel Mueller wrote:
> Am 11.11.21 um 17:00 schrieb olcott:
>> #define ptr uintptr_t
>>
>> void P(ptr x)
>> {
>>    H(x, x);
>> }
>>
>> int H(ptr x, ptr y)
>> {
>>    ((void(*)(ptr))x)(y);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    H((ptr)P, (ptr)P);
>>    return 0;
>> }
>
> Besides the fact that there is no good reason to write that type unsafe
> code in C++ did you test it? The code will never compile because of the
> forward reference to H.
>
> And well, H calls P and P calls H. What do you expect?
I expect that PO (the OP) is nuts and lonesome. This crap is just
another bid for attention and companionship, no matter the quality of
the interaction.
However many programing languages allow 'mutual recursion" and it's very
useful. Common LISP, for example, has two different forms for lexically
binding functions. One makes the bound functions only visible within the
body of the binding form; the other makes these functions visible in the
bodies of the bound functions themselves as well as the body of the
binding form. Further, the batch compilers do not output "missing
function definition" warnings or errors until the entire batch has been
compiled. Together these features allow incremental development and
debugging as well as mutual recursion.
And as an aside, I think that Common LISP has at least as flexible and
powerful an object system as does any of the C variants.
--
Jeff Barnett

Re: Does the call from P() to H() specify infinite recursion?

<U1ejJ.20396$SW5.5265@fx45.iad>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx45.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
From: Rich...@Damon-Family.org (Richard Damon)
In-Reply-To: <LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 57
Message-ID: <U1ejJ.20396$SW5.5265@fx45.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 11 Nov 2021 14:20:20 -0500
X-Received-Bytes: 2799
 by: Richard Damon - Thu, 11 Nov 2021 19:20 UTC

On 11/11/21 1:52 PM, olcott wrote:
> On 11/11/2021 12:01 PM, Marcel Mueller wrote:
>> Am 11.11.21 um 17:00 schrieb olcott:
>>> #define ptr uintptr_t
>>>
>>> void P(ptr x)
>>> {
>>>    H(x, x);
>>> }
>>>
>>> int H(ptr x, ptr y)
>>> {
>>>    ((void(*)(ptr))x)(y);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    H((ptr)P, (ptr)P);
>>>    return 0;
>>> }
>>
>> Besides the fact that there is no good reason to write that type
>> unsafe code in C++ did you test it? The code will never compile
>> because of the forward reference to H.
>>
>> And well, H calls P and P calls H. What do you expect?
>>
>>
>> Marcel
>
> Yes the code does compile and I did test it.
> This is the pure C part of my halting theorem refutation. I wanted to
> get some C experts to weigh in on the the analysis of the C code.
>
> I won't be discussing anything besides the pure C aspects here because
> people here get upset.
>

First, this CAN'T be the complete definition of the source file, as at
minimum it needs a #include <stdint.h> to get the definition of uintptr_t

Second, if you are using a version of C that has uintptr_t defined, (C99
or later) then the lack of a declaration for H in P is an error

Only C90 and before allowed the calling of a function with no
declaration before it.

It might 'compile', but if it does, it will include a manditory
diagnostic, and that means that if the compiler still produced an output
file, if you run that program, the behavior of that program is BY
DEFINITON of the Standard, Undefined.

Thus, there ARE NO 'C aspects' of this 'program' as the C standard has
declared that it suppies NO definition of what it does.

FAIL.

Re: Does the call from P() to H() specify infinite recursion?

<na6dnZ4CxfUf8xD8nZ2dnUU7-KHNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 13:26:58 -0600
Date: Thu, 11 Nov 2021 13:26:56 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net> <smjpjl$r5c$1@dont-email.me>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <smjpjl$r5c$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <na6dnZ4CxfUf8xD8nZ2dnUU7-KHNnZ2d@giganews.com>
Lines: 80
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Evjg52ylxKt+TLCSNmvxzrykOpHXn320dsZL3zfKrFShFfHH3+MX6MHdZN6VSMSJHCYRwS5O/8Frw7s!Oc7AkKr4OjVx5aDDHFIA5La54mGLbqZv9ng2DKqR5SD4pklFHJtHdPx2rvpSllZAfDIuUFKYzxpk!kg==
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
X-Original-Bytes: 3640
 by: olcott - Thu, 11 Nov 2021 19:26 UTC

On 11/11/2021 1:06 PM, Jeff Barnett wrote:
> On 11/11/2021 11:01 AM, Marcel Mueller wrote:
>> Am 11.11.21 um 17:00 schrieb olcott:
>>> #define ptr uintptr_t
>>>
>>> void P(ptr x)
>>> {
>>>    H(x, x);
>>> }
>>>
>>> int H(ptr x, ptr y)
>>> {
>>>    ((void(*)(ptr))x)(y);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    H((ptr)P, (ptr)P);
>>>    return 0;
>>> }
>>
>> Besides the fact that there is no good reason to write that type
>> unsafe code in C++ did you test it? The code will never compile
>> because of the forward reference to H.
>>
>> And well, H calls P and P calls H. What do you expect?
> I expect that PO (the OP) is nuts and lonesome. This crap is just
> another bid for attention and companionship, no matter the quality of
> the interaction.
>

(Attacking the person): This fallacy occurs when, instead of addressing
someone's argument or position, you irrelevantly attack the person or
some aspect of the person who is making the argument.

https://www.txstate.edu/philosophy/resources/fallacy-definitions/Ad-Hominem.html

> However many programing languages allow 'mutual recursion" and it's very
> useful. Common LISP, for example, has two different forms for lexically
> binding functions. One makes the bound functions only visible within the
> body of the binding form; the other makes these functions visible in the
> bodies of the bound functions themselves as well as the body of the
> binding form. Further, the batch compilers do not output "missing
> function definition" warnings or errors until the entire batch has been
> compiled. Together these features allow incremental development and
> debugging as well as mutual recursion.
>
> And as an aside, I think that Common LISP has at least as flexible and
> powerful an object system as does any of the C variants.

That is the strawman error. I am only referring to the x86 machine code
specified by this Microsoft C source-code.

#define ptr uintptr_t

void P(ptr x)
{ H(x, x);
}

int H(ptr x, ptr y)
{ ((void(*)(ptr))x)(y);
return 1;
}

int main()
{ H((ptr)P, (ptr)P);
return 0;
}

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 13:30:08 -0600
Date: Thu, 11 Nov 2021 13:30:07 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <U1ejJ.20396$SW5.5265@fx45.iad>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
Lines: 66
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-5xjMLEzhK4dxKtnvmTyYS2QIiAiwObZ/DFJz+SRVhbcc9vUHZ7RTpa3RlmcMSLjwTeefs1D+D7m2LTC!XpsOQ2MNS7o15spS+zcAzASbMgEWf2MLSqKl2VzEzaSqhx7j9/dS9IAlJuueBPisTLJoBh77H0Z7!Vg==
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
X-Original-Bytes: 3377
 by: olcott - Thu, 11 Nov 2021 19:30 UTC

On 11/11/2021 1:20 PM, Richard Damon wrote:
> On 11/11/21 1:52 PM, olcott wrote:
>> On 11/11/2021 12:01 PM, Marcel Mueller wrote:
>>> Am 11.11.21 um 17:00 schrieb olcott:
>>>> #define ptr uintptr_t
>>>>
>>>> void P(ptr x)
>>>> {
>>>>    H(x, x);
>>>> }
>>>>
>>>> int H(ptr x, ptr y)
>>>> {
>>>>    ((void(*)(ptr))x)(y);
>>>>    return 1;
>>>> }
>>>>
>>>> int main()
>>>> {
>>>>    H((ptr)P, (ptr)P);
>>>>    return 0;
>>>> }
>>>
>>> Besides the fact that there is no good reason to write that type
>>> unsafe code in C++ did you test it? The code will never compile
>>> because of the forward reference to H.
>>>
>>> And well, H calls P and P calls H. What do you expect?
>>>
>>>
>>> Marcel
>>
>> Yes the code does compile and I did test it.
>> This is the pure C part of my halting theorem refutation. I wanted to
>> get some C experts to weigh in on the the analysis of the C code.
>>
>> I won't be discussing anything besides the pure C aspects here because
>> people here get upset.
>>
>
> First, this CAN'T be the complete definition of the source file, as at
> minimum it needs a #include <stdint.h> to get the definition of uintptr_t
>
> Second, if you are using a version of C that has uintptr_t defined, (C99
> or later) then the lack of a declaration for H in P is an error
>
> Only C90 and before allowed the calling of a function with no
> declaration before it.
>
> It might 'compile', but if it does, it will include a manditory
> diagnostic, and that means that if the compiler still produced an output
> file, if you run that program, the behavior of that program is BY
> DEFINITON of the Standard, Undefined.
>
> Thus, there ARE NO 'C aspects' of this 'program' as the C standard has
> declared that it suppies NO definition of what it does.
>
> FAIL.

I added this: #include <stdint.h>

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<RiejJ.37453$7D4.25647@fx37.iad>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx37.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com> <smjlq1$l58o$1@gwaiyur.mb-net.net> <LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com> <U1ejJ.20396$SW5.5265@fx45.iad> <Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
From: Rich...@Damon-Family.org (Richard Damon)
In-Reply-To: <Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 82
Message-ID: <RiejJ.37453$7D4.25647@fx37.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 11 Nov 2021 14:38:25 -0500
X-Received-Bytes: 4020
 by: Richard Damon - Thu, 11 Nov 2021 19:38 UTC

On 11/11/21 2:30 PM, olcott wrote:
> On 11/11/2021 1:20 PM, Richard Damon wrote:
>> On 11/11/21 1:52 PM, olcott wrote:
>>> On 11/11/2021 12:01 PM, Marcel Mueller wrote:
>>>> Am 11.11.21 um 17:00 schrieb olcott:
>>>>> #define ptr uintptr_t
>>>>>
>>>>> void P(ptr x)
>>>>> {
>>>>>    H(x, x);
>>>>> }
>>>>>
>>>>> int H(ptr x, ptr y)
>>>>> {
>>>>>    ((void(*)(ptr))x)(y);
>>>>>    return 1;
>>>>> }
>>>>>
>>>>> int main()
>>>>> {
>>>>>    H((ptr)P, (ptr)P);
>>>>>    return 0;
>>>>> }
>>>>
>>>> Besides the fact that there is no good reason to write that type
>>>> unsafe code in C++ did you test it? The code will never compile
>>>> because of the forward reference to H.
>>>>
>>>> And well, H calls P and P calls H. What do you expect?
>>>>
>>>>
>>>> Marcel
>>>
>>> Yes the code does compile and I did test it.
>>> This is the pure C part of my halting theorem refutation. I wanted to
>>> get some C experts to weigh in on the the analysis of the C code.
>>>
>>> I won't be discussing anything besides the pure C aspects here
>>> because people here get upset.
>>>
>>
>> First, this CAN'T be the complete definition of the source file, as at
>> minimum it needs a #include <stdint.h> to get the definition of uintptr_t
>>
>> Second, if you are using a version of C that has uintptr_t defined,
>> (C99 or later) then the lack of a declaration for H in P is an error
>>
>> Only C90 and before allowed the calling of a function with no
>> declaration before it.
>>
>> It might 'compile', but if it does, it will include a manditory
>> diagnostic, and that means that if the compiler still produced an
>> output file, if you run that program, the behavior of that program is
>> BY DEFINITON of the Standard, Undefined.
>>
>> Thus, there ARE NO 'C aspects' of this 'program' as the C standard has
>> declared that it suppies NO definition of what it does.
>>
>> FAIL.
>
> I added this: #include <stdint.h>
>

But it still fails and will get a mandatory diagnostic, and the
execution is undefined. P can not use the symbol H without it being
prior declaired in any version of C that defines uintptr_t.

You either need the definition of H before the definition of P or you
need a forward decleration for the function H before the call.

C90 allowed this, which is why you may be just getting a warning, but
the actual meaning is that the C Standard has disavowed any definition
to the program.

And, all this shows is that for a H that just calls its input, you do
get an infinite recursion, but such an H never gives the answer about it.

Since the behavior of P depends on the behavior of H, if you change H to
be able to give an answer, you have changed the behavior of P so you
'proof' doesn't apply any more.

Show your level of skill as a junior programmer.

Re: Does the call from P() to H() specify infinite recursion?

<tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 13:59:48 -0600
Date: Thu, 11 Nov 2021 13:59:46 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
<RiejJ.37453$7D4.25647@fx37.iad>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <RiejJ.37453$7D4.25647@fx37.iad>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com>
Lines: 117
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-8WvvNHM/awJ3+pAIOWYPu1KLJMT0oxYMojIvLugAg3Efu+t/SdOlAcGBecBG/u3xn4UNvybGblN+sT+!hTUzb9yXqJg1KoAqkahAwav5cxbfM0yJjfnR3r0vi1kThvHkzsioc+mQIC63319F9NvU8hLemyXY!9A==
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
X-Original-Bytes: 4930
 by: olcott - Thu, 11 Nov 2021 19:59 UTC

On 11/11/2021 1:38 PM, Richard Damon wrote:
> On 11/11/21 2:30 PM, olcott wrote:
>> On 11/11/2021 1:20 PM, Richard Damon wrote:
>>> On 11/11/21 1:52 PM, olcott wrote:
>>>> On 11/11/2021 12:01 PM, Marcel Mueller wrote:
>>>>> Am 11.11.21 um 17:00 schrieb olcott:
>>>>>> #define ptr uintptr_t
>>>>>>
>>>>>> void P(ptr x)
>>>>>> {
>>>>>>    H(x, x);
>>>>>> }
>>>>>>
>>>>>> int H(ptr x, ptr y)
>>>>>> {
>>>>>>    ((void(*)(ptr))x)(y);
>>>>>>    return 1;
>>>>>> }
>>>>>>
>>>>>> int main()
>>>>>> {
>>>>>>    H((ptr)P, (ptr)P);
>>>>>>    return 0;
>>>>>> }
>>>>>
>>>>> Besides the fact that there is no good reason to write that type
>>>>> unsafe code in C++ did you test it? The code will never compile
>>>>> because of the forward reference to H.
>>>>>
>>>>> And well, H calls P and P calls H. What do you expect?
>>>>>
>>>>>
>>>>> Marcel
>>>>
>>>> Yes the code does compile and I did test it.
>>>> This is the pure C part of my halting theorem refutation. I wanted
>>>> to get some C experts to weigh in on the the analysis of the C code.
>>>>
>>>> I won't be discussing anything besides the pure C aspects here
>>>> because people here get upset.
>>>>
>>>
>>> First, this CAN'T be the complete definition of the source file, as
>>> at minimum it needs a #include <stdint.h> to get the definition of
>>> uintptr_t
>>>
>>> Second, if you are using a version of C that has uintptr_t defined,
>>> (C99 or later) then the lack of a declaration for H in P is an error
>>>
>>> Only C90 and before allowed the calling of a function with no
>>> declaration before it.
>>>
>>> It might 'compile', but if it does, it will include a manditory
>>> diagnostic, and that means that if the compiler still produced an
>>> output file, if you run that program, the behavior of that program is
>>> BY DEFINITON of the Standard, Undefined.
>>>
>>> Thus, there ARE NO 'C aspects' of this 'program' as the C standard
>>> has declared that it suppies NO definition of what it does.
>>>
>>> FAIL.
>>
>> I added this: #include <stdint.h>
>>
>
> But it still fails and will get a mandatory diagnostic, and the
> execution is undefined. P can not use the symbol H without it being
> prior declaired in any version of C that defines uintptr_t.
>
> You either need the definition of H before the definition of P or you
> need a forward decleration for the function H before the call.
>

#include <stdint.h>
#define ptr uintptr_t

int H(ptr x, ptr y)
{ ((void(*)(ptr))x)(y);
return 1;
}

void P(ptr x)
{ H(x, x);
}

int main()
{ H((ptr)P, (ptr)P);
return 0;
}

I embedded the above in a whole other program so these "errors"
were corrected in code that I did not know about.

> C90 allowed this, which is why you may be just getting a warning, but
> the actual meaning is that the C Standard has disavowed any definition
> to the program.
>
> And, all this shows is that for a H that just calls its input, you do
> get an infinite recursion, but such an H never gives the answer about it.
>
> Since the behavior of P depends on the behavior of H, if you change H to
> be able to give an answer, you have changed the behavior of P so you
> 'proof' doesn't apply any more.
>
> Show your level of skill as a junior programmer.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<ZNejJ.114466$831.15452@fx40.iad>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
<RiejJ.37453$7D4.25647@fx37.iad>
<tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com>
From: Rich...@Damon-Family.org (Richard Damon)
In-Reply-To: <tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 12
Message-ID: <ZNejJ.114466$831.15452@fx40.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 11 Nov 2021 15:11:37 -0500
X-Received-Bytes: 1634
 by: Richard Damon - Thu, 11 Nov 2021 20:11 UTC

On 11/11/21 2:59 PM, olcott wrote:
>
>
> I embedded the above in a whole other program so these "errors"
> were corrected in code that I did not know about.

In other words, you don't know how to do a controlled experiment so we
really need to deman FULL disclosure of exactly what you are doing
before we can accept any 'experimental' evidence.

You are writing your obituary here.

Re: Does the call from P() to H() specify infinite recursion?

<N_ydnYQGyNu-5xD8nZ2dnUU7-ROdnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 14:16:35 -0600
Date: Thu, 11 Nov 2021 14:16:33 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
<RiejJ.37453$7D4.25647@fx37.iad>
<tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com>
<ZNejJ.114466$831.15452@fx40.iad>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <ZNejJ.114466$831.15452@fx40.iad>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <N_ydnYQGyNu-5xD8nZ2dnUU7-ROdnZ2d@giganews.com>
Lines: 21
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-dzajDmq9UBcV3tiCq2cc0uVvhWiM4EUt2/gP5p4oaJGjjSd3rpcnpDJoPmi8cxjsmtPKv5orT428+rX!5E3S30I7MZeL83RHW/5q58OfORZSJm/ePRSO2R1qGlTYJfE8+O6Fs9Pf5Y1w3cx6L4qqzZArKFM3!Ag==
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
X-Original-Bytes: 2188
 by: olcott - Thu, 11 Nov 2021 20:16 UTC

On 11/11/2021 2:11 PM, Richard Damon wrote:
>
> On 11/11/21 2:59 PM, olcott wrote:
>>
>>
>> I embedded the above in a whole other program so these "errors"
>> were corrected in code that I did not know about.
>
> In other words, you don't know how to do a controlled experiment so we
> really need to deman FULL disclosure of exactly what you are doing
> before we can accept any 'experimental' evidence.
>
> You are writing your obituary here.

Don't say that. I have terminal cancer in its advanced stages.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<871r3msam3.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: Does the call from P() to H() specify infinite recursion?
Date: Thu, 11 Nov 2021 20:25:40 +0000
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <871r3msam3.fsf@bsb.me.uk>
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net> <smjpjl$r5c$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="09ac62656c422c2aa841af50378cfedb";
logging-data="30732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+v52NZm+ADbUJm+y7ksJiMkUWkuzrLMkc="
Cancel-Lock: sha1:K/kvXVehL3QBwy2raL9RjxDcPa8=
sha1:5ToLfPR1kVTD9BWc9aIhHaZzqpI=
X-BSB-Auth: 1.7b3c0cb7e93660265878.20211111202540GMT.871r3msam3.fsf@bsb.me.uk
 by: Ben Bacarisse - Thu, 11 Nov 2021 20:25 UTC

Jeff Barnett <jbb@notatt.com> writes:

> On 11/11/2021 11:01 AM, Marcel Mueller wrote:

>> The code will never compile because of the forward reference to H.
>> And well, H calls P and P calls H. What do you expect?

> However many programing languages allow 'mutual recursion" and it's
> very useful.

Just in case there is any confusion, both C and C++ allow mutual
recursion.

--
Ben.

Re: Does the call from P() to H() specify infinite recursion?

<87v90yqvs7.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: Does the call from P() to H() specify infinite recursion?
Date: Thu, 11 Nov 2021 20:31:20 +0000
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <87v90yqvs7.fsf@bsb.me.uk>
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
<RiejJ.37453$7D4.25647@fx37.iad>
<tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="09ac62656c422c2aa841af50378cfedb";
logging-data="30732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6tR8LGsOH3IrKf4nGvZX7aTD/YvF/smY="
Cancel-Lock: sha1:9K8Ki7PbhwiU0d+ttD/fke01vxg=
sha1:hqtNHKbGrr7ZzS5NKNCaqqX76Hk=
X-BSB-Auth: 1.608deeb57d0d55cd409e.20211111203120GMT.87v90yqvs7.fsf@bsb.me.uk
 by: Ben Bacarisse - Thu, 11 Nov 2021 20:31 UTC

olcott <NoOne@NoWhere.com> writes:

> #include <stdint.h>
> #define ptr uintptr_t
>
> int H(ptr x, ptr y)
> {
> ((void(*)(ptr))x)(y);
> return 1;
> }
>
> void P(ptr x)
> {
> H(x, x);
> }
>
> int main()
> {
> H((ptr)P, (ptr)P);
> return 0;
> }

It's clearer without all the casts:

#include <stdint.h>

typedef void (*ptr)();

int H(ptr x, ptr y)
{ x(y);
return 1;
}

void P(ptr x)
{ H(x, x);
}

int main(void)
{ H(P, P);
}

--
Ben.

Re: Does the call from P() to H() specify infinite recursion? [ Brilliant ! ]

<CpidnXyXCpSlEBD8nZ2dnUU7-QXNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c comp.theory
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 15:38:00 -0600
Date: Thu, 11 Nov 2021 15:37:58 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion? [
Brilliant ! ]
Content-Language: en-US
Newsgroups: comp.lang.c,comp.theory
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
<RiejJ.37453$7D4.25647@fx37.iad>
<tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com> <87v90yqvs7.fsf@bsb.me.uk>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <87v90yqvs7.fsf@bsb.me.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <CpidnXyXCpSlEBD8nZ2dnUU7-QXNnZ2d@giganews.com>
Lines: 53
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-xiElhAf+gPug5PY2MnGppT9OdHevMo/ndfj9Mojnv/JvRSeOeSymW7GQBw50pGzaULtYztt7hostWF5!5zTefhQNcv5g2ftEQgVxHdFkpabKuwRAMVIrqo+uFlFBbXV2Qk8iFcG3YoRZBWf9Rc8w+zqImliO!Ig==
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
X-Original-Bytes: 2273
 by: olcott - Thu, 11 Nov 2021 21:37 UTC

On 11/11/2021 2:31 PM, Ben Bacarisse wrote:
> olcott <NoOne@NoWhere.com> writes:
>
>> #include <stdint.h>
>> #define ptr uintptr_t
>>
>> int H(ptr x, ptr y)
>> {
>> ((void(*)(ptr))x)(y);
>> return 1;
>> }
>>
>> void P(ptr x)
>> {
>> H(x, x);
>> }
>>
>> int main()
>> {
>> H((ptr)P, (ptr)P);
>> return 0;
>> }
>
> It's clearer without all the casts:
>
> #include <stdint.h>
>
> typedef void (*ptr)();
>
> int H(ptr x, ptr y)
> {
> x(y);
> return 1;
> }
>
> void P(ptr x)
> {
> H(x, x);
> }
>
> int main(void)
> {
> H(P, P);
> }
>

Brilliant !!!

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<smk3hg$4js$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb...@notatt.com (Jeff Barnett)
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
Subject: Re: Does the call from P() to H() specify infinite recursion?
Date: Thu, 11 Nov 2021 14:55:56 -0700
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <smk3hg$4js$1@dont-email.me>
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net> <smjpjl$r5c$1@dont-email.me>
<na6dnZ4CxfUf8xD8nZ2dnUU7-KHNnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 Nov 2021 21:56:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ffcfd17887c690f62d7e58193714fcfd";
logging-data="4732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Es03XdaLnNLxCU1UP12j2x0/e+ZdaZ+I="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:SBjFuuPH2f0T4gY3srKZCASbmrw=
In-Reply-To: <na6dnZ4CxfUf8xD8nZ2dnUU7-KHNnZ2d@giganews.com>
Content-Language: en-US
 by: Jeff Barnett - Thu, 11 Nov 2021 21:55 UTC

On 11/11/2021 12:26 PM, olcott wrote:
> On 11/11/2021 1:06 PM, Jeff Barnett wrote:

<SNIP>

>> I expect that PO (the OP) is nuts and lonesome. This crap is just
>> another bid for attention and companionship, no matter the quality of
>> the interaction.
>>
>
> (Attacking the person): This fallacy occurs when, instead of addressing
> someone's argument or position, you irrelevantly attack the person or
> some aspect of the person who is making the argument.

I was not attacking your argument; I was attacking you as a demonstrable
idiot. Therefore this was/is not an example of Ad Hominem argument. You
are nuts, you are lonesome, you are making a bid for attention, and the
quality of the interaction, no matter how negative, is what you grave.
All facts. Find a qualified mental health professional, show them your
posts - any half dozen or so will do - and ask for an evaluation. I bet
they wont let you leave the office without a lifetime prescription for
"happy" pills.

Most of my message was to Mueller about relative approaches to mutual
recursion in different languages. In fact what I said, technically,
might have been a slight defense of your abysmal code. There is no straw
man here unless it was you with straw in your head for brains. You
really should read and understand before criticizing.

I haven't ask you this for a long time but I think it is appropriate
now: Are you typing with one hand in your pants, playing with yourself?
Your not very good at multitasking; so one thing at a time. Go slow,
very slow else you will out run your brain.
--
Jeff Barnett

Re: Does the call from P() to H() specify infinite recursion?

<sNGdnYaXhK6BCBD8nZ2dnUU7-UPNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 16:11:40 -0600
Date: Thu, 11 Nov 2021 16:11:38 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net> <smjpjl$r5c$1@dont-email.me>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <smjpjl$r5c$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <sNGdnYaXhK6BCBD8nZ2dnUU7-UPNnZ2d@giganews.com>
Lines: 58
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-jszEMG1/Nsm5qp5pb++LxHwGcz+2CDJTvEKf5AKma842H6prhWByPzfFGwrRJ+E1/MYDfRjHvldeP75!89xWzvjh6UTNXeY/FDcwQ57pm2QKXkJn4L92cUcJsPEpwGrGXHeEEd1gLiu3R/IVN4zEryh4vKwq!AQ==
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
X-Original-Bytes: 3337
 by: olcott - Thu, 11 Nov 2021 22:11 UTC

On 11/11/2021 1:06 PM, Jeff Barnett wrote:
> On 11/11/2021 11:01 AM, Marcel Mueller wrote:
>> Am 11.11.21 um 17:00 schrieb olcott:
>>> #define ptr uintptr_t
>>>
>>> void P(ptr x)
>>> {
>>>    H(x, x);
>>> }
>>>
>>> int H(ptr x, ptr y)
>>> {
>>>    ((void(*)(ptr))x)(y);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    H((ptr)P, (ptr)P);
>>>    return 0;
>>> }
>>
>> Besides the fact that there is no good reason to write that type
>> unsafe code in C++ did you test it? The code will never compile
>> because of the forward reference to H.
>>
>> And well, H calls P and P calls H. What do you expect?
> I expect that PO (the OP) is nuts and lonesome.

> This crap is just

A conclusion was formed about the quality of my work and the only basis
provided for this conclusion was the personal attack that preceded it.

> another bid for attention and companionship, no matter the quality of
> the interaction.
>
> However many programing languages allow 'mutual recursion" and it's very
> useful. Common LISP, for example, has two different forms for lexically
> binding functions. One makes the bound functions only visible within the
> body of the binding form; the other makes these functions visible in the
> bodies of the bound functions themselves as well as the body of the
> binding form. Further, the batch compilers do not output "missing
> function definition" warnings or errors until the entire batch has been
> compiled. Together these features allow incremental development and
> debugging as well as mutual recursion.
>
> And as an aside, I think that Common LISP has at least as flexible and
> powerful an object system as does any of the C variants.

This is an example of the strawman error in that the concrete code that
I precisely specified never halts because of infinite recursion.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<jtadnVVTvr_AAxD8nZ2dnUU7-d9QAAAA@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 16:51:09 -0600
Date: Thu, 11 Nov 2021 16:51:07 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com> <smjlq1$l58o$1@gwaiyur.mb-net.net> <smjpjl$r5c$1@dont-email.me> <na6dnZ4CxfUf8xD8nZ2dnUU7-KHNnZ2d@giganews.com> <smk3hg$4js$1@dont-email.me>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <smk3hg$4js$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <jtadnVVTvr_AAxD8nZ2dnUU7-d9QAAAA@giganews.com>
Lines: 55
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-4hnOt9rdThOtn8b77jS9RC9xP6pcWDQq+JI6j6PJCgWEj+8JhDsOu8B24z6kIjO8q6B2a9R/Ge9oKM1!bAoB9fHmDR+bAiSbZ22kos9YSL0IInO81HfVGdiqxx4TOLsMSjhXwI46czUdAtWIP+6PUsIJp3rc!eQ==
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
X-Original-Bytes: 3583
 by: olcott - Thu, 11 Nov 2021 22:51 UTC

On 11/11/2021 3:55 PM, Jeff Barnett wrote:
> On 11/11/2021 12:26 PM, olcott wrote:
>> On 11/11/2021 1:06 PM, Jeff Barnett wrote:
>
> <SNIP>
>
>>> I expect that PO (the OP) is nuts and lonesome. This crap is just
>>> another bid for attention and companionship, no matter the quality of
>>> the interaction.
>>>
>>
>> (Attacking the person): This fallacy occurs when, instead of
>> addressing someone's argument or position, you irrelevantly attack the
>> person or some aspect of the person who is making the argument.
>
> I was not attacking your argument; I was attacking you as a demonstrable
> idiot. Therefore this was/is not an example of Ad Hominem argument. You

On 11/11/2021 1:06 PM, Jeff Barnett wrote:
> I expect that PO (the OP) is nuts and lonesome.

> This crap is just

a conclusion about the quality of my work that only has the personal
attack that precedes it as its basis.

> another bid for attention and companionship, no matter the quality of
> the interaction.

> are nuts, you are lonesome, you are making a bid for attention, and the
> quality of the interaction, no matter how negative, is what you grave.
> All facts. Find a qualified mental health professional, show them your
> posts - any half dozen or so will do - and ask for an evaluation. I bet
> they wont let you leave the office without a lifetime prescription for
> "happy" pills.
>
> Most of my message was to Mueller about relative approaches to mutual
> recursion in different languages. In fact what I said, technically,
> might have been a slight defense of your abysmal code. There is no straw
> man here unless it was you with straw in your head for brains. You
> really should read and understand before criticizing.
>
> I haven't ask you this for a long time but I think it is appropriate
> now: Are you typing with one hand in your pants, playing with yourself?
> Your not very good at multitasking; so one thing at a time. Go slow,
> very slow else you will out run your brain.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<1bfss2mc8n.fsf@pfeifferfamily.net>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: pfeif...@cs.nmsu.edu (Joe Pfeiffer)
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
Subject: Re: Does the call from P() to H() specify infinite recursion?
Date: Thu, 11 Nov 2021 17:47:04 -0700
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <1bfss2mc8n.fsf@pfeifferfamily.net>
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="50bcb2e2016f449d948a5f40162db75f";
logging-data="3458"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EQdw0vE60tekTMgMvzAcY1/I/FfPAQX4="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:+x20BBN+GO0D3NnX+jjLeF2r0ic=
sha1:aHFhJLpOhIlFahXgrCzqjG0yR7s=
 by: Joe Pfeiffer - Fri, 12 Nov 2021 00:47 UTC

Marcel Mueller <news.5.maazl@spamgourmet.org> writes:
>
> Besides the fact that there is no good reason to write that type
> unsafe code in C++ did you test it? The code will never compile
> because of the forward reference to H.
>
> And well, H calls P and P calls H. What do you expect?

He's imagining he can solve the Halting Problem if he uses the x86
instruction set instead of a Turing Machine. Many people have tried to
explain the flaws in his argument; he doesn't listen. There is nothing
to do but killfile him.

Re: Does the call from P() to H() specify infinite recursion?

<Btednc6fGdSQIBD8nZ2dnUU7-X3NnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.theory comp.lang.c comp.lang.c++ comp.software-eng
Followup: comp.theory
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 19:02:05 -0600
Date: Thu, 11 Nov 2021 19:02:03 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++,comp.software-eng
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com> <smjlq1$l58o$1@gwaiyur.mb-net.net> <1bfss2mc8n.fsf@pfeifferfamily.net>
Followup-To: comp.theory
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <1bfss2mc8n.fsf@pfeifferfamily.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <Btednc6fGdSQIBD8nZ2dnUU7-X3NnZ2d@giganews.com>
Lines: 28
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-e4CLH6CwyOWtY5GFEXvGmS1FLRLwtY8t50wNId4QX5OoE6DS3mBy7G5CGmE3dx1E5auZvePjK8ZYhEF!NwL01nVbIyiNloh/qImVssMFUpT8yQ0NB4UEYAd7v89WAEJkbzQRzprnE48pOJzRDpk6f7ePG0NF!yg==
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
X-Original-Bytes: 2283
 by: olcott - Fri, 12 Nov 2021 01:02 UTC

On 11/11/2021 6:47 PM, Joe Pfeiffer wrote:
> Marcel Mueller <news.5.maazl@spamgourmet.org> writes:
>>
>> Besides the fact that there is no good reason to write that type
>> unsafe code in C++ did you test it? The code will never compile
>> because of the forward reference to H.
>>
>> And well, H calls P and P calls H. What do you expect?
>
> He's imagining he can solve the Halting Problem if he uses the x86
> instruction set instead of a Turing Machine. Many people have tried to
> explain the flaws in his argument; he doesn't listen. There is nothing
> to do but killfile him.
>

Talent hits a target no one else can hit; Genius hits a target no one
else can see.

Arthur Schopenhauer

People that cannot see the target are unqualified to judge hits from
misses.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<_OOdnc0Cv9UvQxD8nZ2dnUU7-d3NnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 11 Nov 2021 21:25:38 -0600
Date: Thu, 11 Nov 2021 21:25:35 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.lang.c
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net>
<LbmdnfARx7Qb-xD8nZ2dnUU7-L3NnZ2d@giganews.com>
<U1ejJ.20396$SW5.5265@fx45.iad>
<Be-dnU8ORaXd8hD8nZ2dnUU7-KnNnZ2d@giganews.com>
<RiejJ.37453$7D4.25647@fx37.iad>
<tIqdncvf0fOp6xD8nZ2dnUU7-XfNnZ2d@giganews.com> <87v90yqvs7.fsf@bsb.me.uk>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <87v90yqvs7.fsf@bsb.me.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <_OOdnc0Cv9UvQxD8nZ2dnUU7-d3NnZ2d@giganews.com>
Lines: 53
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-mbQ3kwe47MdLCXCu+n+KcLd0G7I/v00s9PW/X83wr5BBjZTQT8dFapwc2TTU2hdKActDVNsHCZXcGLr!wjfRGB+GQocBqj69md/Wk7gbH7tDkXoTHG4LSZAOcPgOrHlFW7SNXbs9qUFAc8ebjf50FsnjysJF!7A==
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
X-Original-Bytes: 2268
 by: olcott - Fri, 12 Nov 2021 03:25 UTC

On 11/11/2021 2:31 PM, Ben Bacarisse wrote:
> olcott <NoOne@NoWhere.com> writes:
>
>> #include <stdint.h>
>> #define ptr uintptr_t
>>
>> int H(ptr x, ptr y)
>> {
>> ((void(*)(ptr))x)(y);
>> return 1;
>> }
>>
>> void P(ptr x)
>> {
>> H(x, x);
>> }
>>
>> int main()
>> {
>> H((ptr)P, (ptr)P);
>> return 0;
>> }
>
> It's clearer without all the casts:
>
> #include <stdint.h>
>
> typedef void (*ptr)();
>
> int H(ptr x, ptr y)
> {
> x(y);
> return 1;
> }
>
> void P(ptr x)
> {
> H(x, x);
> }
>
> int main(void)
> {
> H(P, P);
> }
>

That is much cleaner syntax than mine.

--
Copyright 2021 Pete Olcott

"Great spirits have always encountered violent opposition from mediocre
minds." Einstein

Re: Does the call from P() to H() specify infinite recursion?

<BIOdnS5B__6joQ38nZ2dnUU7-fnNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++ comp.theory comp.lang.c
Followup: comp.theory
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 13 Nov 2021 16:29:18 -0600
Date: Sat, 13 Nov 2021 16:29:17 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion?
Content-Language: en-US
Newsgroups: comp.lang.c++,comp.theory,comp.lang.c
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com> <smjlq1$l58o$1@gwaiyur.mb-net.net> <1bfss2mc8n.fsf@pfeifferfamily.net> <Btednc6fGdSQIBD8nZ2dnUU7-X3NnZ2d@giganews.com> <sml5k2$1b69$4@gioia.aioe.org> <86lf1rap7r.fsf@linuxsc.com>
From: NoO...@NoWhere.com (olcott)
Followup-To: comp.theory
In-Reply-To: <86lf1rap7r.fsf@linuxsc.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <BIOdnS5B__6joQ38nZ2dnUU7-fnNnZ2d@giganews.com>
Lines: 54
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-5iKlr1XuKlcNcVy4tDo7BjIYqo+I32vD1EVqKcZw1K09+tm23OX+uOtMjgWxb4usCO0EOmVFG3zve9E!UJ/PqrWlSK780CPt3NIS1+ODuZUC5QVgAlJiyPjR4tdPgVkDwc11dJW+O5MxTyXedO9EYHNQCb+G!BA==
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
X-Original-Bytes: 2911
 by: olcott - Sat, 13 Nov 2021 22:29 UTC

On 11/13/2021 12:24 PM, Tim Rentsch wrote:
> Juha Nieminen <nospam@thanks.invalid> writes:
>
> [..wanting to solve the halting problem..]
>
>> You do understand that if the halting problem were solvable, and
>> someone solved it,

Because I didn't see these last three words my reply was incorrect.

I am not trying to solve the halting problem merely show how this
simplest possible equivalent to the halting theorem counter-examples can
have its halt status correctly decided by H.

int H(ptr x, ptr y)
{ x(y); // direct execution of P(P)
return 1;
}

// Minimal essence of Linz(1990) Ĥ
// and Strachey(1965) P
void P(ptr x)
{ H(x, x);
}

int main(void)
{ H(P, P);
}

H simulates its input and as soon as its input calls H with the same
parameters that H was called with H aborts this simulation and returns 0
for not halting, infinite recursion detected. It took me 16,000 hours
since 2004 to get it this simple.

> it would be the Holy Grail of mathematics?
>> Pretty much every single unsolved mathematical hypothesis that can
>> be expressed as a computer program could be solved just like that.
>> [...] The Collatz conjecture? Solved. [...]
>
> Can you explain what program would serve to provide a solution to
> the Collatz conjecture?
>

--
Copyright 2021 Pete Olcott

Talent hits a target no one else can hit;
Genius hits a target no one else can see.
Arthur Schopenhauer

Re: Does the call from P() to H() specify infinite recursion? [ Could someone critique my code? ]

<55GdnRVXqbT30wz8nZ2dnUU7-bPNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 14 Nov 2021 11:59:06 -0600
Date: Sun, 14 Nov 2021 11:59:04 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Subject: Re: Does the call from P() to H() specify infinite recursion? [ Could
someone critique my code? ]
Content-Language: en-US
Newsgroups: comp.lang.c++,comp.lang.c
References: <UPOdnY4EF9S7oxD8nZ2dnUU78XXNnZ2d@giganews.com>
<smjlq1$l58o$1@gwaiyur.mb-net.net> <1bfss2mc8n.fsf@pfeifferfamily.net>
<Btednc6fGdSQIBD8nZ2dnUU7-X3NnZ2d@giganews.com>
<sml5k2$1b69$4@gioia.aioe.org> <86lf1rap7r.fsf@linuxsc.com>
<BIOdnS5B__6joQ38nZ2dnUU7-fnNnZ2d@giganews.com>
<c117df58-4764-4c13-a276-4fa6c21551d3n@googlegroups.com>
<878rxrvxj8.fsf@nosuchdomain.example.com>
<15a974bc-cd07-4dd7-a1ce-21c552b4c6f2n@googlegroups.com>
<smrbni$erp$1@dont-email.me>
From: NoO...@NoWhere.com (olcott)
In-Reply-To: <smrbni$erp$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <55GdnRVXqbT30wz8nZ2dnUU7-bPNnZ2d@giganews.com>
Lines: 116
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-04JqVfL+EU6sGhZ+wV4wQOEWKvqO6cOg6epK3ozRgvwo8x4E0/aeqneqz4ne9wkLfAy5mxa+GqegB5Q!a/DQoWOBDGKqGAZKg2IKqSoGRmKThCoh2nB7Ruz/nIoPPhwqp4RR0essJzjb2aRztoU5h1q8tNAv!6g==
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
X-Original-Bytes: 6175
 by: olcott - Sun, 14 Nov 2021 17:59 UTC

On 11/14/2021 9:58 AM, David Brown wrote:
> On 14/11/2021 15:09, wij wrote:
>> On Sunday, 14 November 2021 at 18:31:39 UTC+8, Keith Thompson wrote:
>>> wij <wyn...@gmail.com> writes:
>>>> On Sunday, 14 November 2021 at 06:29:57 UTC+8, olcott wrote:
>>> [...]
>>>>> Basic truth: No one can duplicate your 'experiment'.
>>>>
>>>> Although you showed some C/C++/x86/TM codes, no one is real, you are also a liar
>>> Which is why most of us don't read anything he posts in comp.lang.c++
>>> and are not interested in seeing replies here.
>>
>> Is it? As I knew, not so.
>> I used to see Mr Flibble in comp.c++. He posted "Halting problem as defined is
>> erroneous" in comp.theory, which made me worry about C++ people.
>>
>
> Mr. Flibble does not speak for "C++ people". In fact, Mr. Flibble often
> does not speak for himself, but posts things just to provoke a reaction.
> I don't really know what he means by his comments on the halting
> problem, but they are certainly not C++ related - I'm sure if he
> actually wants to discuss it, then comp.theory is a better place.
>
>>> Post in comp.theory if you want to engage with him.
>>>
>>
>> Anyone is of the same right posting message on any google forum one think
>> appropriate, is that correct? Has olcott the right? I think so. Do you?
>> That said, I don't really enjoy engaging with olcott, he is sometimes very cunny.
>>
>
> Usenet is a bastion of free speech - there is no sensor of who posts
> here, or what they post. Yes, Olcott has the right to post anything
> here. Equally, people who would prefer that a C++ newsgroup is for C++
> topics have the right to ask others to refrain from off-topic posting or
> encouraging impolite and disruptive posters.
>
> Olcott is delusional. He is not the first, nor the last, to believe
> that he has found a proof or counter-proof that contradicts a long
> established mathematical theorem. Like all such people, rational
> arguments bounce off him with no effect, except perhaps to strengthen
> his resolve. Replying to and encouraging him does not help anyone - not
> him, nor anyone else interested in computational theory, nor other
> people frequenting these newsgroups. There is a famous essay "beware
> the trisectors" that can be found on the net, which covers the
> difficulties in dealing with those like Olcott.
>
> Despite using a limited subset of C and C++ as his programming language
> (rather than more traditional choices such as Turing machines), Olcott's
> posts are not remote topical here - just as they are not topical in a
> newsgroup for English Literature despite being written in English.
>
> Olcott is never going to listen to anyone else's advice or suggestions,
> including the suggestion to take his ramblings elsewhere. But perhaps
> you might.
>

I stripped off everything not directly pertaining to the correct
analysis of C code.

The only thing that I post here requires technical competence in the C
programming language and nothing more.

People in the comp.theory forum lack sufficient technical competence in
the C programming language.

#include <stdint.h>
typedef void (*ptr)();

int H(ptr x, ptr y)
{ x(y); // direct execution of P(P)
return 1;
}

// Minimal essence of Linz(1990) Ĥ
// and Strachey(1965) P
void P(ptr x)
{ H(x, x);
}

int main(void)
{ H(P, P);
}

It is obvious that whether or not the above code is directly executed or
H performs a pure simulation of its input that the above code specifies
infinite recursion. Everyone here knows this.

The only other step is confirming that the simulated or executed P never
reaches its final state of 00001a72 even when its execution or
simulation has been aborted at some point.

_P()
[00001a5e](01) 55 push ebp
[00001a5f](02) 8bec mov ebp,esp
[00001a61](03) 8b4508 mov eax,[ebp+08]
[00001a64](01) 50 push eax // push P
[00001a65](03) 8b4d08 mov ecx,[ebp+08]
[00001a68](01) 51 push ecx // push P
[00001a69](05) e810000000 call 00001a7e // call H
[00001a6e](03) 83c408 add esp,+08
[00001a71](01) 5d pop ebp
[00001a72](01) c3 ret
Size in bytes:(0021) [00001a72]

--
Copyright 2021 Pete Olcott

Talent hits a target no one else can hit;
Genius hits a target no one else can see.
Arthur Schopenhauer

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor