🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #227

Re: Documentation (was Re: Performance of xchg reg,reg)

#227
From: Stefan Monnier
Date: Mon, 19 Oct 2026 16:24
20 lines
2428 bytes
John Savard [2026-10-19 00:18:32] wrote:
> Obviously, there's no way one can enable a compiler to flag logic
> errors in programs.

Compilers' ability to report errors mostly depend on the presence of
redundancy in the source code.  That redundancy depends can be
influenced by the design of the language.

So, in theory, a compiler can very much flag most logic errors in
a program, simply by requiring all source code to come in two different
forms (e.g. a "spec" and an "implementation") and to automatically
verify that the two match.

> A Turing-complete language can calculate anything, so how can it tell
> you that you were calculating this when you wanted to calculate that?

And the same still holds for non-Turing-complete languages, admittedly.


=== Stefan
Technical Details
Message-ID: <jwv5wyxwtma.fsf-monnier+comp.arch@gnu.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me> <kqg9dl5oj9l0dih5kvnrif2fv91ns8lgs3@4ax.com> <6ad5609b.8505984@news.eternal-september.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: comp.arch
Subject: Re: Documentation (was Re: Performance of xchg reg,reg)
Date: Mon, 19 Oct 2026 12:24:56 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <jwv5wyxwtma.fsf-monnier+comp.arch@gnu.org>
References: <2026Oct13.104347@mips.complang.tuwien.ac.at>
	<11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com>
	<1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com>
	<1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me>
	<kqg9dl5oj9l0dih5kvnrif2fv91ns8lgs3@4ax.com>
	<6ad5609b.8505984@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 19 Oct 2026 19:13:21 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2480212"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19XB3bkHXithqdCP1TTloI1cvBELeIaGyA="; posting-host="8e25fd6c44108343be23cbdfdc37dcf9"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:jij0ZV0bN87KaKcDDiNZLwS95W4=
	sha1:8X2gp7AbSk3ylg4UH/a6+nMHluk= sha256:lFRFM4wbhDr994oyeWaDACM/pUwWkq4+vR04sfTuAeQ=
	sha1:Ju96jqyXWCQkVSRnrL/MmPQehAY= sha256:pswW06CXABVKN5isWHm6nnZ4ao6wIVERDC84WHAGTbY=
In-Reply-To: <6ad5609b.8505984@news.eternal-september.org> (message from quadibloc@invalid.com (John Savard) on Mon, 19 Oct 2026 00:18:32 GMT)