Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Being against torture ought to be sort of a bipartisan thing." -- Karl Lehenbauer


devel / comp.arch / Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

SubjectAuthor
* Around the bike shed: Instruction names and assembler syntaxThomas Koenig
+- Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
+* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|+- Re: Around the bike shed: Instruction names and assembler syntaxStephen Fuld
|+* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
||`* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|| `* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
||  `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
||   +* Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
||   |`- Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
||   `* Fortran for The Mill (was: Around the bike shed: Instruction namesThomas Koenig
||    `- Re: Fortran for The Mill (was: Around the bike shed: InstructionIvan Godard
|`* Re: Around the bike shed: Instruction names and assembler syntaxJohn Levine
| +- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
| +* Re: Around the bike shed: Instruction names and assembler syntaxEricP
| |`* Re: Around the bike shed: Instruction names and assembler syntaxJohn Levine
| | `* Re: Around the bike shed: Instruction names and assembler syntaxEricP
| |  `- Re: high and higner level assemblers, was Around the bike shed: Instruction nameJohn Levine
| `* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
|  `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|   `* Re: Around the bike shed: Instruction names and assembler syntaxNiklas Holsti
|    `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|     `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      +* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |`* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      | `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |  `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      |   +- Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
|      |   `* Re: Around the bike shed: Instruction names and assembler syntaxStefan Monnier
|      |    +- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |    `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      |     `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |      `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      |       `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |        `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      |         +* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |         |+* Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|      |         ||+* Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|      |         |||`* Re: Around the bike shed: Instruction names and assembler syntaxJohn Levine
|      |         ||| +- Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|      |         ||| `- Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|      |         ||`- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |         |`* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      |         | `- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |         `* Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|      |          +* Re: Around the bike shed: Instruction names and assembler syntaxStefan Monnier
|      |          |`- Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|      |          `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      |           +- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      |           `* Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|      |            `- Re: Around the bike shed: Instruction names and assembler syntaxStefan Monnier
|      +* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
|      |`* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      | +* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      | |+* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
|      | ||`* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      | || +- Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|      | || `* Re: Around the bike shed: Instruction names and assembler syntaxJohn Levine
|      | ||  `- Re: Around the bike shed: Instruction names and assembler syntaxNiklas Holsti
|      | |`* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      | | `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      | |  `* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      | |   `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      | |    `- Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
|      | +- Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|      | +* Re: Around the bike shed: Instruction names and assembler syntaxNiklas Holsti
|      | |`* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|      | | `- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|      | `* Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
|      |  `- Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
|      `* Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|       +* Re: Around the bike shed: Instruction names and assembler syntaxNiklas Holsti
|       |`* Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|       | `* Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|       |  +* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  |+* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  ||+* Re: Around the bike shed: Instruction names and assembler syntaxEricP
|       |  |||+- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  |||`* Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|       |  ||| +* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  ||| |+* Re: Around the bike shed: Instruction names and assembler syntaxNiklas Holsti
|       |  ||| ||+* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  ||| |||`* Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
|       |  ||| ||| +- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  ||| ||| `- Re: Around the bike shed: Instruction names and assembler syntaxStefan Monnier
|       |  ||| ||`* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  ||| || `* Re: Around the bike shed: Instruction names and assembler syntaxNiklas Holsti
|       |  ||| ||  +* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  ||| ||  |`* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  ||| ||  | `* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  ||| ||  |  `- Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  ||| ||  `- Re: Around the bike shed: Instruction names and assembler syntaxEricP
|       |  ||| |+- Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|       |  ||| |`- Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  ||| `- Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  ||+- Re: Around the bike shed: Instruction names and assembler syntaxStephen Fuld
|       |  ||+* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  |||+* Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
|       |  ||||`* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  |||| +* Re: Around the bike shed: Instruction names and assembler syntaxTom Gardner
|       |  |||| |+* Re: Around the bike shed: Instruction names and assembler syntaxDavid Brown
|       |  |||| |`- Re: Around the bike shed: Instruction names and assembler syntaxStefan Monnier
|       |  |||| `* Re: Around the bike shed: Instruction names and assembler syntaxIvan Godard
|       |  |||`- Re: Around the bike shed: Instruction names and assembler syntaxTerje Mathisen
|       |  ||`* Re: Around the bike shed: Instruction names and assembler syntaxAnton Ertl
|       |  |`- Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
|       |  `- Re: Around the bike shed: Instruction names and assembler syntaxTim Rentsch
|       +* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig
|       `* Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
+- Re: Around the bike shed: Instruction names and assembler syntaxStefan Monnier
+* Re: Around the bike shed: Instruction names and assembler syntaxMitchAlsup
+* Re: Around the bike shed: Instruction names and assembler syntaxJames Van Buskirk
+- Re: Around the bike shed: Instruction names and assembler syntaxBGB
`* Re: Around the bike shed: Instruction names and assembler syntaxThomas Koenig

Pages:12345678910
Re: Around the bike shed: Instruction names and assembler syntax

<t0inc8$tp4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24177&group=comp.arch#24177

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: iva...@millcomputing.com (Ivan Godard)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sat, 12 Mar 2022 10:04:57 -0800
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <t0inc8$tp4$1@dont-email.me>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<svl6qh$t5b$1@dont-email.me> <2022Mar1.184731@mips.complang.tuwien.ac.at>
<svlsr2$ebn$1@dont-email.me> <2022Mar2.182320@mips.complang.tuwien.ac.at>
<jwvv8wwujh4.fsf-monnier+comp.arch@gnu.org>
<2022Mar5.192557@mips.complang.tuwien.ac.at> <t00c6q$hdc$1@dont-email.me>
<2022Mar7.091957@mips.complang.tuwien.ac.at> <t056h7$bh5$1@dont-email.me>
<2022Mar9.190023@mips.complang.tuwien.ac.at> <t0b0e2$7a9$1@dont-email.me>
<2022Mar12.185150@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 12 Mar 2022 18:04:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c7e7d491c4056f3abc474e6faf59cba4";
logging-data="30500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ss6cm6S+7JbUmG/JLpgNn"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:/ajt3NtFwvjF8woIya3zlRR2z8Q=
In-Reply-To: <2022Mar12.185150@mips.complang.tuwien.ac.at>
Content-Language: en-US
 by: Ivan Godard - Sat, 12 Mar 2022 18:04 UTC

On 3/12/2022 9:51 AM, Anton Ertl wrote:
> Ivan Godard <ivan@millcomputing.com> writes:
>> On 3/9/2022 10:00 AM, Anton Ertl wrote:
>>> Ivan Godard <ivan@millcomputing.com> writes:
>>>> On 3/7/2022 12:19 AM, Anton Ertl wrote:
>>>>> I think that type systems are an area where formal descriptions are
>>>>> relatively close to being good enough to being used. The main problem
>>>>> is that every programming language has its own type system with its
>>>>> own twists, that results in its own notation. There is no unifying
>>>>> notation like (E)BNF or stack effect notation that is usable for
>>>>> describing many languages.
> ...
>>> But we have no successful formal notation for type systems.
>>
>> Depends on what "successful" means :-) If "does the job" then we have
>> some.
>
> In the present context it means R>1; i.e., other language designers
> get infected with the notation and use it for their language,
> eventually resulting in a significant portion of programming languages
> using this notation. We have no such notation for type systems.

Ah! You mean commercially/politically successful, not technically
successful. Sorry, I misunderstood.

Re: Around the bike shed: Instruction names and assembler syntax

<2022Mar12.185532@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24179&group=comp.arch#24179

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sat, 12 Mar 2022 17:55:32 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 59
Message-ID: <2022Mar12.185532@mips.complang.tuwien.ac.at>
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <svl6qh$t5b$1@dont-email.me> <2022Mar1.184731@mips.complang.tuwien.ac.at> <svlsr2$ebn$1@dont-email.me> <2022Mar2.182320@mips.complang.tuwien.ac.at> <jwvv8wwujh4.fsf-monnier+comp.arch@gnu.org> <2022Mar5.192557@mips.complang.tuwien.ac.at> <t00c6q$hdc$1@dont-email.me> <2022Mar7.091957@mips.complang.tuwien.ac.at> <t056h7$bh5$1@dont-email.me> <2022Mar9.190023@mips.complang.tuwien.ac.at> <86k0d2d6se.fsf@linuxsc.com>
Injection-Info: reader02.eternal-september.org; posting-host="0fe04f065c6dc0f3006a406de4fb4fc8";
logging-data="10393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DjJ9hXGw0j6kqRxRw5UOB"
Cancel-Lock: sha1:blGwhcXaIiRlNJXrfkZtWCBmOZk=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sat, 12 Mar 2022 17:55 UTC

Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>
>> Ivan Godard <ivan@millcomputing.com> writes:
>>
>>> On 3/7/2022 12:19 AM, Anton Ertl wrote:
>>>
>>>> I think that type systems are an area where formal descriptions are
>>>> relatively close to being good enough to being used. The main problem
>>>> is that every programming language has its own type system with its
>>>> own twists, that results in its own notation. There is no unifying
>>>> notation like (E)BNF or stack effect notation that is usable for
>>>> describing many languages.
>
>There is a good theoretical reason for that. BNF (and also EBNF)
>corresponds to a particular formal model of computation, one
>level of the Chomsky hierarchy. There are only four levels in
>the Chomsky hierarchy, and the two with more expressive power
>than context-free languages are a LOT more expressive. AFAIAA
>there is no formal model of computation known between push-down
>automata (aka context-free languages) and LBAs (aka linear
>bounded automata, aka context-sensitive languages). So if you
>want a formal description in a system that has more expressive
>power than syntax, which is pretty much a requirement for a type
>system, then you're going to end up with something equivalent to
>a context-sensitive language (or a general rewrite grammar, which
>is Turing equivalent).

I don't think that's a good theoretical reason. Just because Chomsky
came up with a hierarchy of language description formalisms does not
mean that such a formalism is needed for describing type systems.
Plus, we have a practical language formalism beyond context-free
grammars: VWG. And according to Ivan Godard, that's powerful enough
for type systems. So the reason why people have not described their
type systems as VWGs is probably that it's not a good notation for
what they want to express (even if it's powerful enough).

>In practice people want their type systems to be decidable both
>for programs that are type correct and for programs that are not
>type correct, and neither CSLs nor GRGs satisfy that property.

But even if that was not a problem, I doubt that people would try to
describe their type systems with these formalisms. What I have seen
in this area is not close to these formalisms. That's no surprise,
because Chomsky designed his formalisms to describe natural languages,
not type systems.

>The reason why is explained above. As type systems become more
>ambitious, there is a need for more expressive power in the
>formal model, which ultimately leads to newer formal models that
>are more expressive than the existing ones.

But somehow this has not happened to BNF (apart from the extension to
EBNF/RRPG).

- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>

Re: Around the bike shed: Instruction names and assembler syntax

<t0iriv$2v5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24181&group=comp.arch#24181

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: iva...@millcomputing.com (Ivan Godard)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sat, 12 Mar 2022 11:16:47 -0800
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <t0iriv$2v5$1@dont-email.me>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<svl6qh$t5b$1@dont-email.me> <2022Mar1.184731@mips.complang.tuwien.ac.at>
<svlsr2$ebn$1@dont-email.me> <2022Mar2.182320@mips.complang.tuwien.ac.at>
<jwvv8wwujh4.fsf-monnier+comp.arch@gnu.org>
<2022Mar5.192557@mips.complang.tuwien.ac.at> <t00c6q$hdc$1@dont-email.me>
<2022Mar7.091957@mips.complang.tuwien.ac.at> <t056h7$bh5$1@dont-email.me>
<2022Mar9.190023@mips.complang.tuwien.ac.at> <86k0d2d6se.fsf@linuxsc.com>
<2022Mar12.185532@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 12 Mar 2022 19:16:47 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c7e7d491c4056f3abc474e6faf59cba4";
logging-data="3045"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DPR1msfnVV9/HVlmlAr3J"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:yyFWwsWtvNMtHcN7iG8Aczph4Lo=
In-Reply-To: <2022Mar12.185532@mips.complang.tuwien.ac.at>
Content-Language: en-US
 by: Ivan Godard - Sat, 12 Mar 2022 19:16 UTC

On 3/12/2022 9:55 AM, Anton Ertl wrote:
> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>>
>>> Ivan Godard <ivan@millcomputing.com> writes:
>>>
>>>> On 3/7/2022 12:19 AM, Anton Ertl wrote:
>>>>
>>>>> I think that type systems are an area where formal descriptions are
>>>>> relatively close to being good enough to being used. The main problem
>>>>> is that every programming language has its own type system with its
>>>>> own twists, that results in its own notation. There is no unifying
>>>>> notation like (E)BNF or stack effect notation that is usable for
>>>>> describing many languages.
>>
>> There is a good theoretical reason for that. BNF (and also EBNF)
>> corresponds to a particular formal model of computation, one
>> level of the Chomsky hierarchy. There are only four levels in
>> the Chomsky hierarchy, and the two with more expressive power
>> than context-free languages are a LOT more expressive. AFAIAA
>> there is no formal model of computation known between push-down
>> automata (aka context-free languages) and LBAs (aka linear
>> bounded automata, aka context-sensitive languages). So if you
>> want a formal description in a system that has more expressive
>> power than syntax, which is pretty much a requirement for a type
>> system, then you're going to end up with something equivalent to
>> a context-sensitive language (or a general rewrite grammar, which
>> is Turing equivalent).
>
> I don't think that's a good theoretical reason. Just because Chomsky
> came up with a hierarchy of language description formalisms does not
> mean that such a formalism is needed for describing type systems.
> Plus, we have a practical language formalism beyond context-free
> grammars: VWG. And according to Ivan Godard, that's powerful enough
> for type systems. So the reason why people have not described their
> type systems as VWGs is probably that it's not a good notation for
> what they want to express (even if it's powerful enough).
>
>> In practice people want their type systems to be decidable both
>> for programs that are type correct and for programs that are not
>> type correct, and neither CSLs nor GRGs satisfy that property.
>
> But even if that was not a problem, I doubt that people would try to
> describe their type systems with these formalisms. What I have seen
> in this area is not close to these formalisms. That's no surprise,
> because Chomsky designed his formalisms to describe natural languages,
> not type systems.
>
>> The reason why is explained above. As type systems become more
>> ambitious, there is a need for more expressive power in the
>> formal model, which ultimately leads to newer formal models that
>> are more expressive than the existing ones.
>
> But somehow this has not happened to BNF (apart from the extension to
> EBNF/RRPG).

BNF is a good formal notation for syntax for the grammar kinds commonly
used in programming languages; a parser can be mechanically generated
from the grammar. BNF is insufficiently powerful to define some
languages or language components: C preprocessor, m4 and other macro
languages, Mary1 declarable syntax, impure Prolog, some Smalltalks, and
indeed any other second-order language.

A formal type system, to deserve the name, should be able to
mechanically generate a type checker for the language, something that
can take in: "int a[5]; int b = a[2][4];" and complain. Note that the
expression is syntactically correct as defined by the BNF.

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<t0iu22$1tgf$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24184&group=comp.arch#24184

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: comp.arch
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
Date: Sat, 12 Mar 2022 19:58:58 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <t0iu22$1tgf$1@gal.iecc.com>
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org> <t0iehh$llm$1@dont-email.me>
Injection-Date: Sat, 12 Mar 2022 19:58:58 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="62991"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <svcqrj$jj6$1@newsreader4.netcologne.de> <t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org> <t0iehh$llm$1@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Sat, 12 Mar 2022 19:58 UTC

According to Ivan Godard <ivan@millcomputing.com>:
> For that matter, Scandinavia has always hit way above its
>population in the language design field: ...

>In contrast, very little from the US. That the most widespread languages
>of today derive primarily from the US reflects money and politics, not
>technical advances.

First, we gave the world Fortran, Cobol, and RPG, and then retired to
spend more time with our families.

I am not a big fan of Java or Javascript but they seem to get the job
done in a lot of applications. Java showed us that bytecodes and
loadtime or JIT translation were practical. Javascript has a good enough
sandbox that people are willing to run large amounts of it from random
places in their phones. Those aren't exactly langage design advances,
but it's not just politics either.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24186&group=comp.arch#24186

  copy link   Newsgroups: comp.arch
X-Received: by 2002:a05:620a:240e:b0:67d:7c27:242b with SMTP id d14-20020a05620a240e00b0067d7c27242bmr5147167qkn.293.1647117839450;
Sat, 12 Mar 2022 12:43:59 -0800 (PST)
X-Received: by 2002:a05:6870:204c:b0:da:b3f:2b86 with SMTP id
l12-20020a056870204c00b000da0b3f2b86mr13960905oad.293.1647117839258; Sat, 12
Mar 2022 12:43:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch
Date: Sat, 12 Mar 2022 12:43:59 -0800 (PST)
In-Reply-To: <t0iu22$1tgf$1@gal.iecc.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a0d:6fc2:55b0:ca00:65dd:bb7:48b5:b678;
posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 2a0d:6fc2:55b0:ca00:65dd:bb7:48b5:b678
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <t0g4b7$kok$1@dont-email.me>
<t0i16j$g0q$1@gioia.aioe.org> <t0iehh$llm$1@dont-email.me> <t0iu22$1tgf$1@gal.iecc.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
From: already5...@yahoo.com (Michael S)
Injection-Date: Sat, 12 Mar 2022 20:43:59 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
 by: Michael S - Sat, 12 Mar 2022 20:43 UTC

On Saturday, March 12, 2022 at 9:59:01 PM UTC+2, John Levine wrote:
> According to Ivan Godard <iv...@millcomputing.com>:
> > For that matter, Scandinavia has always hit way above its
> >population in the language design field: ...
> >In contrast, very little from the US. That the most widespread languages
> >of today derive primarily from the US reflects money and politics, not
> >technical advances.
> First, we gave the world Fortran, Cobol, and RPG, and then retired to
> spend more time with our families.
>

My possibly wrong impression is that while ALGOL, which is a source of majority of grammar
used by majority of procedural and object-oriented languages that people write programs in today,
was defined by the group of scientists, majority of whom were German, the leading force behind the
work actually being done was Alan Perlis of USA.

> I am not a big fan of Java or Javascript but they seem to get the job
> done in a lot of applications. Java showed us that bytecodes and
> loadtime or JIT translation were practical. Javascript has a good enough
> sandbox that people are willing to run large amounts of it from random
> places in their phones. Those aren't exactly langage design advances,
> but it's not just politics either.
> --
> Regards,
> John Levine, jo...@taugh.com, Primary Perpetrator of "The Internet for Dummies",
> Please consider the environment before reading this e-mail. https://jl.ly

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<t0j2gg$9a2$1@newsreader4.netcologne.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24187&group=comp.arch#24187

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2a0a-a540-a25-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoe...@netcologne.de (Thomas Koenig)
Newsgroups: comp.arch
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
Date: Sat, 12 Mar 2022 21:14:56 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <t0j2gg$9a2$1@newsreader4.netcologne.de>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org>
<t0iehh$llm$1@dont-email.me> <t0iu22$1tgf$1@gal.iecc.com>
Injection-Date: Sat, 12 Mar 2022 21:14:56 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2a0a-a540-a25-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2a0a:a540:a25:0:7285:c2ff:fe6c:992d";
logging-data="9538"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Sat, 12 Mar 2022 21:14 UTC

John Levine <johnl@taugh.com> schrieb:
> According to Ivan Godard <ivan@millcomputing.com>:
>> For that matter, Scandinavia has always hit way above its
>>population in the language design field: ...
>
>>In contrast, very little from the US. That the most widespread languages
>>of today derive primarily from the US reflects money and politics, not
>>technical advances.
>
> First, we gave the world Fortran, Cobol, and RPG, and then retired to
> spend more time with our families.

Then there was C. Soustrup is Danish, but he was working for Bell Labs
while developing C++, so...

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<t0j2pq$t8u$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24188&group=comp.arch#24188

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: iva...@millcomputing.com (Ivan Godard)
Newsgroups: comp.arch
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
Date: Sat, 12 Mar 2022 13:19:54 -0800
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <t0j2pq$t8u$1@dont-email.me>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org>
<t0iehh$llm$1@dont-email.me> <t0iu22$1tgf$1@gal.iecc.com>
<a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 12 Mar 2022 21:19:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c7e7d491c4056f3abc474e6faf59cba4";
logging-data="29982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181B/RqzeXPN3+BUwfVBQnD"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.2
Cancel-Lock: sha1:R3v9Zt98+ONCzkwcX6kyCy/Yoho=
In-Reply-To: <a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>
Content-Language: en-US
 by: Ivan Godard - Sat, 12 Mar 2022 21:19 UTC

On 3/12/2022 12:43 PM, Michael S wrote:
> On Saturday, March 12, 2022 at 9:59:01 PM UTC+2, John Levine wrote:
>> According to Ivan Godard <iv...@millcomputing.com>:
>>> For that matter, Scandinavia has always hit way above its
>>> population in the language design field: ...
>>> In contrast, very little from the US. That the most widespread languages
>>> of today derive primarily from the US reflects money and politics, not
>>> technical advances.
>> First, we gave the world Fortran, Cobol, and RPG, and then retired to
>> spend more time with our families.
>>
>
> My possibly wrong impression is that while ALGOL, which is a source of majority of grammar
> used by majority of procedural and object-oriented languages that people write programs in today,
> was defined by the group of scientists, majority of whom were German, the leading force behind the
> work actually being done was Alan Perlis of USA.

If we assume that brilliance in computer science and language design is
evenly distributed across populations, then citizens of Norway and
Netherlands (and to a lesser extent UK and German-speaking countries)
have been vastly over-represented, while the US has been the reverse.

FWIW, the opposite pattern has been true for work in databases and
operating systems, where the US has been dominant.

Re: Around the bike shed: Instruction names and assembler syntax

<t0jclj$87f$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24192&group=comp.arch#24192

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ggt...@yahoo.com (Brett)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sun, 13 Mar 2022 00:08:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <t0jclj$87f$1@dont-email.me>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<ANidnT3Kb-ZszoL_nZ2dnUU7-LHNnZ2d@supernews.com>
<svodqv$rc$1@dont-email.me>
<oLf*yP-Hy@news.chiark.greenend.org.uk>
<svprsc$buf$1@newsreader4.netcologne.de>
<2022Mar3.130732@mips.complang.tuwien.ac.at>
<Uy4UJ.91086$Lbb6.86739@fx45.iad>
<2022Mar5.183421@mips.complang.tuwien.ac.at>
<xH5VJ.57841$oF2.18867@fx10.iad>
<q3k*BGyIy@news.chiark.greenend.org.uk>
<uSrVJ.46122$mF2.25802@fx11.iad>
<t3k*M7CIy@news.chiark.greenend.org.uk>
<2022Mar12.183952@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 13 Mar 2022 00:08:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6a4818d1383663202c5eeb44e2ce803d";
logging-data="8431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oXqkFTthKjH+AxHppRvMB"
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:PElnJEMF1NS7hmEd+vvv0Tr6QxU=
sha1:13tRPIwgZCS2rS/9rhXRqdJjIQQ=
 by: Brett - Sun, 13 Mar 2022 00:08 UTC

Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
> Theo <theom+news@chiark.greenend.org.uk> writes:
>> EricP <ThatWouldBeTelling@thevillage.com> wrote:
>>> Yes, that makes sense.
>>> Even for a mid-80's TTL DRAM controller I would be
>>> surprised if it didn't have same-row detection.
>>> Its a few latches and xors.
>>>
>>> So you are saying that because LDM/STM do a single instruction fetch,
>>> then a sequence of data addresses, it allows same-row detection
>>> and just a column address strobe CAS will do.
>>> For a sequence of individual LD or ST, the instruction addresses
>>> would most likely be to a different row than their data addresses
>>> so same-row detect doesn't kick in, and requires full RAS and CAS.
>>
>> Yes. So a traditional LD/ST (even if to contiguous addresses) gives you:
>>
>> row(instr. fetch); col(IF); row(data0); col(data0);
>> row(instr. fetch); col(IF); row(data1); col(data1);
>> ...
>> row(instr. fetch); col(IF); row(data15); col(data15);
>>
>> whereas STM/LDM has:
>>
>> row(IF); col(IF); row(data0); col(data0);
>> col(data1);
>> ...
>> col(data15);
>>
>> I'm not very familiar with 1980s DRAMs but I don't think they had multiple
>> banks so you could have several rows open at once.
>
> Yes, I don't think they had multiple banks.
>
> I recently revisited memory copying on a 6502: It took ~15
> cycles/byte (i.e., 66kB/s on a C64).
>
> The first ARM could use 12 registers for copying (1 PC, 1 source, 1
> destination, 1 limit), so copying 48 bytes took 15+15+1+2 cycles (1
> for subtract/compare, 2 for the branch; ARM experts will correct me if
> that does not work out), i.e., 0.69 cycles/byte (a little less with
> unrolling), about 22 times faster than the 6502 at the same clock rate
> (and the clock rate was faster). Not bad.
>
> - anton

But how fast was the 65816?
Which is a better match age wise for ARM than the 6502.

Re: Around the bike shed: Instruction names and assembler syntax

<2022Mar13.095213@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24204&group=comp.arch#24204

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sun, 13 Mar 2022 08:52:13 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 24
Message-ID: <2022Mar13.095213@mips.complang.tuwien.ac.at>
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <svodqv$rc$1@dont-email.me> <oLf*yP-Hy@news.chiark.greenend.org.uk> <svprsc$buf$1@newsreader4.netcologne.de> <2022Mar3.130732@mips.complang.tuwien.ac.at> <Uy4UJ.91086$Lbb6.86739@fx45.iad> <2022Mar5.183421@mips.complang.tuwien.ac.at> <xH5VJ.57841$oF2.18867@fx10.iad> <q3k*BGyIy@news.chiark.greenend.org.uk> <uSrVJ.46122$mF2.25802@fx11.iad> <t3k*M7CIy@news.chiark.greenend.org.uk> <2022Mar12.183952@mips.complang.tuwien.ac.at> <t0jclj$87f$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="e66a2a1c1fda86ae3ad8854ee4682443";
logging-data="983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rJNXBfJsQNHSzce8WCUB9"
Cancel-Lock: sha1:wOnuaqAoHvYWduYFIlZML92ZNaI=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 13 Mar 2022 08:52 UTC

Brett <ggtgp@yahoo.com> writes:
>Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>> I recently revisited memory copying on a 6502: It took ~15
>> cycles/byte (i.e., 66kB/s on a C64).
>>
>> The first ARM could use 12 registers for copying (1 PC, 1 source, 1
>> destination, 1 limit), so copying 48 bytes took 15+15+1+2 cycles (1
>> for subtract/compare, 2 for the branch; ARM experts will correct me if
>> that does not work out), i.e., 0.69 cycles/byte (a little less with
>> unrolling), about 22 times faster than the 6502 at the same clock rate
>> (and the clock rate was faster). Not bad.
>>
>> - anton
>
>But how fast was the 65816?

The 65816 has dedicated instructions for copying memory blocks (MVN
and MVP). They take 7 cycles/byte, i.e., about 10 times slower than
the ARM at the same clock rate.

- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<t0knsf$1f2d$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24213&group=comp.arch#24213

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!aioe.org!10O9MudpjwoXIahOJRbDvA.user.46.165.242.91.POSTED!not-for-mail
From: terje.ma...@tmsw.no (Terje Mathisen)
Newsgroups: comp.arch
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
Date: Sun, 13 Mar 2022 13:25:51 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t0knsf$1f2d$1@gioia.aioe.org>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org>
<t0iehh$llm$1@dont-email.me> <t0iu22$1tgf$1@gal.iecc.com>
<a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>
<t0j2pq$t8u$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="48205"; posting-host="10O9MudpjwoXIahOJRbDvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.11
X-Notice: Filtered by postfilter v. 0.9.2
 by: Terje Mathisen - Sun, 13 Mar 2022 12:25 UTC

Ivan Godard wrote:
> On 3/12/2022 12:43 PM, Michael S wrote:
>> On Saturday, March 12, 2022 at 9:59:01 PM UTC+2, John Levine wrote:
>>> According to Ivan Godard <iv...@millcomputing.com>:
>>>> For that matter, Scandinavia has always hit way above its
>>>> population in the language design field: ...
>>>> In contrast, very little from the US. That the most widespread
>>>> languages
>>>> of today derive primarily from the US reflects money and politics, not
>>>> technical advances.
>>> First, we gave the world Fortran, Cobol, and RPG, and then retired to
>>> spend more time with our families.
>>>
>>
>> My possibly wrong impression is that while ALGOL, which is a source of
>> majority of grammar
>> used by majority of procedural and object-oriented languages that
>> people write programs in today,
>> was defined by the group of scientists, majority of whom were German,
>> the leading force behind the
>> work actually being done was Alan Perlis of USA.
>
> If we assume that brilliance in computer science and language design is
> evenly distributed across populations, then citizens of Norway and
> Netherlands (and to a lesser extent UK and German-speaking countries)
> have been vastly over-represented, while the US has been the reverse.
>
> FWIW, the opposite pattern has been true for work in databases and
> operating systems, where the US has been dominant.
This is what I call the "law of small numbers", a law which I just
invented. :-)

The population of Norway is so low that as soon as we get one or two
brilliant outliers interested in a particular field, like Ole-Johan Dahl
and Kristen Nygaard, the Simula object-oriented programming inventors,
or Magnus Carlsen in chess, we suddenly become wildly successful when
measured per capita.

Last summer we had the winner of the Olympic Triathlon, a sport where we
had effectly zero active competitors 10 years ago. Now we are like the
international triathlon hothouse with Kristian Blummenfelt leading a
very small but strong group that train together.

Terje
PS. This "law" is most visible in winter olympics where the most
successful nation since it started is Liechtenstein: They have a single
medal over almost 100 years, but their total population is just 38K.

--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

Re: Around the bike shed: Instruction names and assembler syntax

<864k42aq9i.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24215&group=comp.arch#24215

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sun, 13 Mar 2022 07:19:53 -0700
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <864k42aq9i.fsf@linuxsc.com>
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <svl6qh$t5b$1@dont-email.me> <2022Mar1.184731@mips.complang.tuwien.ac.at> <svlsr2$ebn$1@dont-email.me> <2022Mar2.182320@mips.complang.tuwien.ac.at> <jwvv8wwujh4.fsf-monnier+comp.arch@gnu.org> <2022Mar5.192557@mips.complang.tuwien.ac.at> <t00c6q$hdc$1@dont-email.me> <2022Mar7.091957@mips.complang.tuwien.ac.at> <t056h7$bh5$1@dont-email.me> <2022Mar9.190023@mips.complang.tuwien.ac.at> <86k0d2d6se.fsf@linuxsc.com> <2022Mar12.185532@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="38291eb696f492bc92ff7584167c4e32";
logging-data="16109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Q4HOASoO+KPIcqeHTcqIknna/e/Hg/nc="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:PH+Hv5cuXOFGoSF9d3G0x5EtjSs=
sha1:nuunycsvYk8T3gSTcTlucc/BTWI=
 by: Tim Rentsch - Sun, 13 Mar 2022 14:19 UTC

anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:

> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
>> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>>
>>> Ivan Godard <ivan@millcomputing.com> writes:
>>>
>>>> On 3/7/2022 12:19 AM, Anton Ertl wrote:
>>>>
>>>>> I think that type systems are an area where formal descriptions are
>>>>> relatively close to being good enough to being used. The main problem
>>>>> is that every programming language has its own type system with its
>>>>> own twists, that results in its own notation. There is no unifying
>>>>> notation like (E)BNF or stack effect notation that is usable for
>>>>> describing many languages.
>>
>> There is a good theoretical reason for that. BNF (and also EBNF)
>> corresponds to a particular formal model of computation, one
>> level of the Chomsky hierarchy. There are only four levels in
>> the Chomsky hierarchy, and the two with more expressive power
>> than context-free languages are a LOT more expressive. AFAIAA
>> there is no formal model of computation known between push-down
>> automata (aka context-free languages) and LBAs (aka linear
>> bounded automata, aka context-sensitive languages). So if you
>> want a formal description in a system that has more expressive
>> power than syntax, which is pretty much a requirement for a type
>> system, then you're going to end up with something equivalent to
>> a context-sensitive language (or a general rewrite grammar, which
>> is Turing equivalent).
>
> I don't think that's a good theoretical reason. Just because Chomsky
> came up with a hierarchy of language description formalisms does not
> mean that such a formalism is needed for describing type systems.
> Plus, we have a practical language formalism beyond context-free
> grammars: VWG. And according to Ivan Godard, that's powerful enough
> for type systems. So the reason why people have not described their
> type systems as VWGs is probably that it's not a good notation for
> what they want to express (even if it's powerful enough).
>
>> In practice people want their type systems to be decidable both
>> for programs that are type correct and for programs that are not
>> type correct, and neither CSLs nor GRGs satisfy that property.
>
> But even if that was not a problem, I doubt that people would try to
> describe their type systems with these formalisms. What I have seen
> in this area is not close to these formalisms. That's no surprise,
> because Chomsky designed his formalisms to describe natural languages,
> not type systems.
>
>> The reason why is explained above. As type systems become more
>> ambitious, there is a need for more expressive power in the
>> formal model, which ultimately leads to newer formal models that
>> are more expressive than the existing ones.
>
> But somehow this has not happened to BNF (apart from the extension to
> EBNF/RRPG).

BNF is well suited to expressing language syntax partly because
the notation is convenient but more importantly because it has
about the right amount of expressive power.

VWG is not well suited to expressing rules for type systems
partly because the notation is not easy to understand but more
importantly because it seems overmatched to the job: it is
Turing equivalent.

My focus here is not what specific notation is used but how much
expressive power the formal model has. Whether we use a Type 3
grammar or a regular expression or a finite state machine doesn't
change the key aspect of having too limited expressive power.
Similarly whether we use the lambda calculus or a Turing machine
or VWG or a general programming language doesn't change the key
aspect of the sense that there is too much expressive power. The
problem is to find a formal model that is powerful enough to
express the rules for as-yet-unthought-of type systems, but not
so powerful that it is intractable, which basically rules out any
scheme that is Turing equivalent or even in the same category as
linear bounded automata. Judging by the lack of results, it's
hard to do that. Notation is secondary to finding a system with
the right amount of expressive power.

Re: Around the bike shed: Instruction names and assembler syntax

<jwvy21dud8m.fsf-monnier+comp.arch@gnu.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24219&group=comp.arch#24219

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: monn...@iro.umontreal.ca (Stefan Monnier)
Newsgroups: comp.arch
Subject: Re: Around the bike shed: Instruction names and assembler syntax
Date: Sun, 13 Mar 2022 10:46:21 -0400
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <jwvy21dud8m.fsf-monnier+comp.arch@gnu.org>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<svl6qh$t5b$1@dont-email.me>
<2022Mar1.184731@mips.complang.tuwien.ac.at>
<svlsr2$ebn$1@dont-email.me>
<2022Mar2.182320@mips.complang.tuwien.ac.at>
<jwvv8wwujh4.fsf-monnier+comp.arch@gnu.org>
<2022Mar5.192557@mips.complang.tuwien.ac.at>
<t00c6q$hdc$1@dont-email.me>
<2022Mar7.091957@mips.complang.tuwien.ac.at>
<t056h7$bh5$1@dont-email.me>
<2022Mar9.190023@mips.complang.tuwien.ac.at>
<86k0d2d6se.fsf@linuxsc.com>
<2022Mar12.185532@mips.complang.tuwien.ac.at>
<864k42aq9i.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f8ce25d235d3124a237e69e4dcdbcf6a";
logging-data="14869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HWF8t2naZ+HfeHBNANq+Q"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cancel-Lock: sha1:PbsxEQgqkqS4YuydY2bQ8R9jjbk=
sha1:Hlr/YNde415xh8mrjLcALUa0d4A=
 by: Stefan Monnier - Sun, 13 Mar 2022 14:46 UTC

> VWG is not well suited to expressing rules for type systems
> partly because the notation is not easy to understand but more
> importantly because it seems overmatched to the job: it is
> Turing equivalent.

Hmm... while there is a serious problem of non-standardized notation in
the world of type systems, AFAIK virtually all existing formal
definitions of type systems (the vast majority of them are purely
academic) are expressed as logical inference rules, i.e. a formalism
that's not just Turing complete but that is even happy to describe
things we don't know how to compute (more specifically: we know how to
verify a witness but we may need an oracle to give it to us).

So, Turing completeness doesn't seem to be an obstacle in this respect.

Stefan

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<2022Mar13.181632@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24223&group=comp.arch#24223

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: where's Mary, Around the bike shed: Instruction names and assembler syntax
Date: Sun, 13 Mar 2022 17:16:32 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 13
Message-ID: <2022Mar13.181632@mips.complang.tuwien.ac.at>
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org> <t0iehh$llm$1@dont-email.me> <t0iu22$1tgf$1@gal.iecc.com> <a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com> <t0j2pq$t8u$1@dont-email.me> <t0knsf$1f2d$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="e66a2a1c1fda86ae3ad8854ee4682443";
logging-data="10175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lxk0pOyuQXtJgteOG5BfN"
Cancel-Lock: sha1:0HuTcHCMFpoF6pZn8Dkozxo7hmw=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 13 Mar 2022 17:16 UTC

Terje Mathisen <terje.mathisen@tmsw.no> writes:
>PS. This "law" is most visible in winter olympics where the most
>successful nation since it started is Liechtenstein: They have a single
>medal over almost 100 years, but their total population is just 38K.

Athletes starting for Liechtenstein won 10 medals through the 2018
winter olympics <https://en.wikipedia.org/wiki/Hanni_Wenzel>, two of
them gold <https://de.wikipedia.org/wiki/Hanni_Wenzel>.

- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<6ef28859-29ba-484b-9938-6b7048cefdb1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24224&group=comp.arch#24224

  copy link   Newsgroups: comp.arch
X-Received: by 2002:a05:620a:2946:b0:67b:3047:6d9d with SMTP id n6-20020a05620a294600b0067b30476d9dmr12608731qkp.691.1647192435064;
Sun, 13 Mar 2022 10:27:15 -0700 (PDT)
X-Received: by 2002:aca:ead4:0:b0:2ec:ba66:12df with SMTP id
i203-20020acaead4000000b002ecba6612dfmr3773420oih.194.1647192434780; Sun, 13
Mar 2022 10:27:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch
Date: Sun, 13 Mar 2022 10:27:14 -0700 (PDT)
In-Reply-To: <t0knsf$1f2d$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=199.203.251.52; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 199.203.251.52
References: <svcqrj$jj6$1@newsreader4.netcologne.de> <t0g4b7$kok$1@dont-email.me>
<t0i16j$g0q$1@gioia.aioe.org> <t0iehh$llm$1@dont-email.me>
<t0iu22$1tgf$1@gal.iecc.com> <a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>
<t0j2pq$t8u$1@dont-email.me> <t0knsf$1f2d$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6ef28859-29ba-484b-9938-6b7048cefdb1n@googlegroups.com>
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
From: already5...@yahoo.com (Michael S)
Injection-Date: Sun, 13 Mar 2022 17:27:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: Michael S - Sun, 13 Mar 2022 17:27 UTC

On Sunday, March 13, 2022 at 2:25:54 PM UTC+2, Terje Mathisen wrote:
> PS. This "law" is most visible in winter olympics where the most
> successful nation since it started is Liechtenstein: They have a single
> medal over almost 100 years, but their total population is just 38K.
> --
> - <Terje.Mathisen at tmsw.no>
> "almost all programming can be viewed as an exercise in caching"

They have far more than a single medal.
Hanni Wenzel alone got 2 golds, 1 silver and 1 bronze.
Her brother Andreas got silver and bronze.
Hanni's daughter Tina Weirather got bronze.
Another bronze medalist are Willi Frommelt, Paul Frommelt and Ursula Konzett.

Re: where's Mary, Around the bike shed: Instruction names and assembler syntax

<t0nfeg$bn7$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24242&group=comp.arch#24242

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!aioe.org!10O9MudpjwoXIahOJRbDvA.user.46.165.242.91.POSTED!not-for-mail
From: terje.ma...@tmsw.no (Terje Mathisen)
Newsgroups: comp.arch
Subject: Re: where's Mary, Around the bike shed: Instruction names and
assembler syntax
Date: Mon, 14 Mar 2022 14:20:17 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t0nfeg$bn7$1@gioia.aioe.org>
References: <svcqrj$jj6$1@newsreader4.netcologne.de>
<t0g4b7$kok$1@dont-email.me> <t0i16j$g0q$1@gioia.aioe.org>
<t0iehh$llm$1@dont-email.me> <t0iu22$1tgf$1@gal.iecc.com>
<a1386069-0857-4e7b-b2a7-bcff7a9ec515n@googlegroups.com>
<t0j2pq$t8u$1@dont-email.me> <t0knsf$1f2d$1@gioia.aioe.org>
<2022Mar13.181632@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="12007"; posting-host="10O9MudpjwoXIahOJRbDvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.11
X-Notice: Filtered by postfilter v. 0.9.2
 by: Terje Mathisen - Mon, 14 Mar 2022 13:20 UTC

Anton Ertl wrote:
> Terje Mathisen <terje.mathisen@tmsw.no> writes:
>> PS. This "law" is most visible in winter olympics where the most
>> successful nation since it started is Liechtenstein: They have a single
>> medal over almost 100 years, but their total population is just 38K.
>
> Athletes starting for Liechtenstein won 10 medals through the 2018
> winter olympics <https://en.wikipedia.org/wiki/Hanni_Wenzel>, two of
> them gold <https://de.wikipedia.org/wiki/Hanni_Wenzel>.

Oops! This means that my reference (or the way I read it) was badly
wrong, but it makes the example even better! :-)

Terje

--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

Pages:12345678910
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor