Sujet : Re: else ladders practice
De : nntp.mbourne (at) *nospam* spamgourmet.com (Mark Bourne)
Groupes : comp.lang.cDate : 19. Nov 2024, 21:51:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhitp3$214qq$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.19
Bart wrote:
On 10/11/2024 06:00, Waldek Hebisch wrote:
Bart <bc@freeuk.com> wrote:
I'd would consider a much elaborate one putting the onus on external
tools, and still having an unpredictable result to be the poor of the two.
>
You want to create a language that is easily compilable, no matter how
complex the input.
>
Normally time spent _using_ compiler should be bigger than time
spending writing compiler. If compiler gets enough use, it
justifies some complexity.
That doesn't add up: the more the compiler gets used, the slower it should get?!
I may have misunderstood, but I don't think Waldek's comment was a claim about how long a single compilation should take / how slow the compiler should be made to be. I think it was a statement about the total amount of time all users of a compiler can be expected to spend using it in comparison to the time compiler developers spend writing it.
If a compiler is used by a significant number of people, the total amount of time users spend using it is far larger than the total amount of time developers spend writing it, regardless of how long a single compilation takes. So overall it's worth the compiler developers putting in extra effort to make the compiler more useful, provide better diagnostics, etc. rather than just doing whatever's easiest for them. That may only save each user a relatively small amount of time, but aggregated over all users of the compiler it adds up to a lot of time saved.
When a compiler is used by only a small number of people (or even just one), it's not worth the compiler developer putting a lot of effort into it, when it's only going to save a small number of people a small amount of time.
-- Mark.