From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Thu, 06 Oct 2022 17:52:35 +0800 Message-ID: <87edvls2ho.fsf@yahoo.com> References: <87bkqxf1ij.fsf@tethera.net> <8335c9dkyf.fsf@gnu.org> <83tu4odez7.fsf@gnu.org> <871qrrpkgx.fsf@trouble.defaultvalue.org> <834jwnbi6c.fsf@gnu.org> <87mtafnun5.fsf@trouble.defaultvalue.org> <83sfk6ahty.fsf@gnu.org> <87v8p1aiof.fsf@melete.silentflame.com> <87v8p01lbu.fsf@yahoo.com> <83lepwvzxq.fsf@gnu.org> <871qroyog9.fsf@yahoo.com> <837d1gvt35.fsf@gnu.org> <87sfk3yl10.fsf@yahoo.com> <87o7uqtlsl.fsf@yahoo.com> <83sfk2rzjs.fsf@gnu.org> <87k05du6x0.fsf@yahoo.com> <83tu4hqxp8.fsf@gnu.org> <87ilkxs9yg.fsf@yahoo.com> <83czb5qsyk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13353"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 06 11:56:44 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogNcS-0003OJ-Po for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 11:56:44 +0200 Original-Received: from localhost ([::1]:37422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogNcR-000555-PX for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 05:56:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogNYi-0002YR-Bn for emacs-devel@gnu.org; Thu, 06 Oct 2022 05:52:52 -0400 Original-Received: from sonic317-34.consmr.mail.ne1.yahoo.com ([66.163.184.45]:38580) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogNYg-0000ge-B0 for emacs-devel@gnu.org; Thu, 06 Oct 2022 05:52:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665049965; bh=k/FA8a2s9H3NVVhLXCIWyJqByHjq5RuWhFRYtWfNaS4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=CntNvlt2da43W0N4HgarvANbFyGxfJnQgIUwf9JI57Ow+vwlu5g6h/t+L+TH55yFBUlazjDzt7Nk1BcQ5JDb2hai+IF4McakumaSv+c50+YVLhniD/09OT+F+eE9wxke+mbthgUVc4DngCoJo2plq4L1gSl0kEkHhOO7j4+CAnDMM31NrjpeL2NZhg7a0RPEP/+/AlVZCpktuC9WV03BEejydg2cAhpAVAv5DGELF2RUXFKPNClXgeaUlnKCIQbAwByP7qqVQuURpvpiFw1qvU7r4Dc6wl77wKSJwUf5l/OG2RmZUqNH+8BaaAE9y3CVuu0fzEoJLqO+UYBTgSHSEg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665049965; bh=HifVTGjWKbzChwRc5uJFSpVUIwpoNmyhYIdpU5JBia2=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=WLZ+qA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Oixao5zC .nJbjRgzZc_s88SIDO_l7fxfaG8xd.02g6Sdwt7KOXTCEQj4BXBkkvU1HZ8ygu6Su1d8bejIVif3 Q9NjtesESzfSZ9al_UA.wS0ipRfXxb3FrIBmLJHJ_r X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Thu, 6 Oct 2022 09:52:45 +0000 Original-Received: by hermes--production-sg3-cf9dc7f8d-f6dcn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a13d9792dae41b5c1e4c9954efe0130a; Thu, 06 Oct 2022 09:52:40 +0000 (UTC) In-Reply-To: <83czb5qsyk.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Oct 2022 11:03:47 +0300") X-Mailer: WebService/1.1.20702 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.45; envelope-from=luangruo@yahoo.com; helo=sonic317-34.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297082 Archived-At: Eli Zaretskii writes: > We could have such a feature, but how to implement it? If we use a > timer for that, the timer itself will drain the battery. I think display-battery-mode users (I am one such user) will not agree with that assessment. > And if defer it to the next invocation of the bytecode, we might never > compile, because who can guarantee that the laptop is on AC when some > arbitrary bytecode is executed? We could push it onto a list of files to native compile, the files in which are then compiled once we detect the laptop starts to run on AC power.