Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #3577 > unrolled thread

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

Started byMartin Ward <mwardgkc@gmail.com>
First post2024-06-11 15:06 +0100
Last post2024-06-11 15:06 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.compilers


Contents

  Re: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages Martin Ward <mwardgkc@gmail.com> - 2024-06-11 15:06 +0100

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

FromMartin Ward <mwardgkc@gmail.com>
Date2024-06-11 15:06 +0100
SubjectRe: Compilation Quotient (CQ): A Metric for the Compilation Hardness of Programming Languages
Message-ID<24-06-013@comp.compilers>
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

[toc] | [standalone]


Back to top | Article view | comp.compilers


csiph-web