Re: Optimization techniques and runtime checks

"Robin Vowels" <robin51@dodo.com.au>
Sat, 11 May 2019 19:26:06 +1000

          From comp.compilers

Related articles
[6 earlier articles]
Re: Optimization techniques and runtime checks david.brown@hesbynett.no (David Brown) (2019-05-08)
Re: Optimization techniques and runtime checks bc@freeuk.com (Bart) (2019-05-08)
Re: Optimization techniques and runtime checks DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2019-05-08)
Re: Optimization techniques and runtime checks david.brown@hesbynett.no (David Brown) (2019-05-08)
Re: Optimization techniques and runtime checks bc@freeuk.com (Bart) (2019-05-09)
Re: Optimization techniques and runtime checks david.brown@hesbynett.no (David Brown) (2019-05-09)
Re: Optimization techniques and runtime checks robin51@dodo.com.au (Robin Vowels) (2019-05-11)
Re: Optimization techniques and runtime checks genew@telus.net (Gene Wirchenko) (2019-05-11)
Re: Optimization techniques and runtime checks david.brown@hesbynett.no (David Brown) (2019-05-12)
| List of all articles for this month |

From: "Robin Vowels" <robin51@dodo.com.au>
Newsgroups: comp.compilers
Date: Sat, 11 May 2019 19:26:06 +1000
Organization: Compilers Central
References: <72d208c9-169f-155c-5e73-9ca74f78e390@gkc.org.uk> 19-04-021 19-04-023 19-04-037 19-04-046 19-05-052 19-05-059 19-05-064
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="86837"; mail-complaints-to="abuse@iecc.com"
Keywords: tools, comment
Posted-Date: 11 May 2019 11:16:14 EDT

From: "David Brown" <david.brown@hesbynett.no>
Sent: Wednesday, May 08, 2019 6:31 PM




> I have many times noted that C is often a poor choice of language.
> There was a time when it was the best, or only, language suitable for a
> wide range of uses.


That not so. C was never the best (ior only) language.


PL/I and Ada are probably in that category.
PLI has been used for system programming as well as general
purpose programming.


> This is no longer the case. I personally use it
> for small-systems embedded programming, and the runtime efficiency /is/
> important. But for PC programming, I use mostly Python (I used to use
> Delphi more). Pick a language that makes sense for the job, and gives
> the trade-offs that suit your needs.
>
> And often there is no way to handle run-time errors sensibly anyway.
> You don't want your car brakes to give you a message "Your braking
> system has encountered an integer overflow. Please report this error to
> your car dealer". You want the brake software developers to be
> /absolutely/ sure that overflows can't happen - and then there is no
> point in run-time checks.


Wishful thinking. While the code in a program can avoid a hardware overflow
(through appropriate programming), in the event that an overflow occurs,
the program still needs to tell the outside world that an overflow occurred.
[I think you will find that the PL/I that people have used for system programming
is pretty stripped down, like Intel's PL/M and IBM's PL/S. -John]


Post a followup to this message

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