From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!news.etla.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: More reliable compilers (of some programming langauges) than GNAT Date: Mon, 27 Nov 2017 19:09:29 -0600 Organization: JSA Research & Innovation Message-ID: References: <2fca0f38-833e-485d-9a38-febcdd507bb1@googlegroups.com> Injection-Date: Tue, 28 Nov 2017 01:09:29 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="14501"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:49204 Date: 2017-11-27T19:09:29-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:ov60fj$mt8$1@gioia.aioe.org... > On 23/11/2017 01:35, Randy Brukardt wrote: ... >> as they are a rather useless construct that mainly serves to >> introduce bugs (if the shared library gets updated out of sync with >> the rest of the program). > > There is no any alternative to shared libraries. Of course there is: write your code to use nothing but the target OS facilities and Ada. (Yes, I know that Windows uses shared libraries to implement the OS interface, but that's not visible to a statically linked program.) That was always the requirement at RRS, and any time that we've deviated from it we've generally come to regret it. Statically linked programs are not going to fail because of some upgrade outside of botched OS upgrades (which are much less likely than other kinds, because most OS vendors are well aware of the havoc that they can cause). The supposed reasons for using shared libraries rarely hold any water (there aren't going to be dozens of nearly identical Ada programs running on a single machine at a single time). Randy.