Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages

Martin Ward <mwardgkc@gmail.com>
Tue, 11 Jun 2024 15:06:07 +0100

          From comp.compilers

Related articles
Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages johnl@taugh.com (John R Levine) (2024-06-10)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages jonathanchesterfield@gmail.com (Jon Chesterfield) (2024-06-10)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages derek-nospam@shape-of-code.com (Derek) (2024-06-10)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages derek-nospam@shape-of-code.com (Derek) (2024-06-11)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages anton@mips.complang.tuwien.ac.at (2024-06-11)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages mwardgkc@gmail.com (Martin Ward) (2024-06-11)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages derek-nospam@shape-of-code.com (Derek) (2024-06-11)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2024-06-12)
Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages anton@mips.complang.tuwien.ac.at (2024-06-14)
| List of all articles for this month |
From: Martin Ward <mwardgkc@gmail.com>
Newsgroups: comp.compilers
Date: Tue, 11 Jun 2024 15:06:07 +0100
Organization: Compilers Central
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="28171"; mail-complaints-to="abuse@iecc.com"
Keywords: syntax
Posted-Date: 12 Jun 2024 10:50:11 EDT

On 10/06/2024 13:21, John R Levine wrote:


> C has a CQ of 48, Rust barely above zero.
>


> In the discussion at the end they say "A programmer's task is to
> write programs that compile." which I think summarizes the basic
> problem with the paper. Take a look.
>


CQ is, very approximately, a measure of how likely it is that
a compiler will detect a typo in your code (using "typo" in
the broadest sense of: you are thinking of one program but
actually type in something vaguely similar but different).


"Almost any random garbage is a valid program in our language"
does not appear to me to be a particularly attractive feature
of a language.




\--
Martin


Dr Martin Ward | Email: [martin@gkc.org.uk](mailto:martin@gkc.org.uk) | <http://www.gkc.org.uk>
G.K.Chesterton site: <http://www.gkc.org.uk/gkc> | Erdos number: 4


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.