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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Everything You Know Is Wrong Date: Tue, 29 Dec 2015 15:16:38 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: LNA1TkTuMxfwTHzeJdi6nA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:28922 Date: 2015-12-29T15:16:38+01:00 List-Id: On 2015-12-29 14:50, G.B. wrote: > On 29.12.15 13:36, Dmitry A. Kazakov wrote: >> On 2015-12-29 12:42, G.B. wrote: >> >>> The hardware people do a lot to reduce energy needs. The software >>> people could add to that. >> >> I don't think so. Software is too costly and too volatile. Any potential >> win is negligible and will be overtaken by new hardware in just one year. > > The managers of the billion $ computer companies have been > addressing battery related running times for years already. Suppose > that a compiler optimizes a program for energy consumption. So, no > big batteries are needed. In what sense? Less battery drain? 0.1%? The point that at the instruction level, if we are talking about optimization, not software redesign, no optimization could give you anything visible. With redesign, you could probably get 1% bought by massive software problems, as if we had only few today. What does reduce energy consumption is the hardware architecture. E.g. designs with circuits having their own micro power sources. In a massively parallel system with distributed power supplies you will get better power management for free. >>> For example, if two subprograms are independent >>> and their execution can be postponed until a third one needs their >>> results, >> >> Firstly, you cannot know that. > > Independence of subprograms can follow from an abstract design > and from a solution, both of which the programmers know. The compiler must become an oracle, not just programmer's mind reader, to guess that a subprogram call can be postponed. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de