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!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Languages don't matter. A mathematical refutation Date: Mon, 6 Apr 2015 16:46:51 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <87h9t95cly.fsf@jester.gateway.sonic.net><04f0759d-0377-4408-a141-6ad178f055ed@googlegroups.com> <871tk1z62n.fsf@theworld.com><87oan56rpn.fsf@jester.gateway.sonic.net><877fts7fvm.fsf@jester.gateway.sonic.net><87twwv66pk.fsf@jester.gateway.sonic.net><32ecaopodr1g.1xqh7ssdpa2ud.dlg@40tude.net><87pp7j62ta.fsf@jester.gateway.sonic.net><87pp7hb2xo.fsf@jester.gateway.sonic.net><5rxvgyes5xg8.1mqq86gacbsb1.dlg@40tude.net> <87lhi5ayuv.fsf@jester.gateway.sonic.net> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1428356812 26595 24.196.82.226 (6 Apr 2015 21:46:52 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 6 Apr 2015 21:46:52 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:25445 Date: 2015-04-06T16:46:51-05:00 List-Id: "Paul Rubin" wrote in message news:87lhi5ayuv.fsf@jester.gateway.sonic.net... > "Dmitry A. Kazakov" writes: >> I don't know anything about jet engine, but typical controllers run >> 1-10ms >> cycles. Things requiring shorter times (e.g. frequency measurements) are >> performed by dedicated microcontrollers. > > I assumed that program was on a dedicated microcontroller. > >> No, the benefit of arena is unbeatable speed of allocation and zero >> deallocation time. > > You get that from gc with region inference too, and you sort of get it > with semispace gc. Unless the compiler is spending a lot of its time in > gc, arenas by definition can't be that big a win. Unless the compiler was designed by trained apes, GC isn't going to be much of a win, either. Janus/Ada (the compiler I've been working on for the last 34+ years [gosh!]) does almost no deallocation of anything. Back in the old days, we used to deallocate a few things (needed to for compiling on MS-DOS), but even that proved to be too expensive and thus the compile never deallocates anything at this point unless there is an extreme memory shortage (and I've never seen a case where that even worked). GC overhead (and the corresponding allocation overhead) would be a lot more than the combination of free chaining and static allocation that we ended up with. (And yes, we verified that with profiling; I would never have believed it otherwise.) Moreover, the vast majority of memory used in the compiler is never freed anyway (it's in global data like the symbol table), until the end of the compiler pass. Any overhead to manage that is completely wasted. Randy.