From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: guile 3 update, september edition Date: Tue, 18 Sep 2018 15:51:08 +0200 Message-ID: <87sh26j4mr.fsf@gnu.org> References: <87sh28msxt.fsf@pobox.com> <87musg79g4.fsf@gnu.org> <878t3zmegk.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1537278586 12287 195.159.176.226 (18 Sep 2018 13:49:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2018 13:49:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 18 15:49:42 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2GNo-000324-Pi for guile-devel@m.gmane.org; Tue, 18 Sep 2018 15:49:40 +0200 Original-Received: from localhost ([::1]:40490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2GPu-00056f-Qk for guile-devel@m.gmane.org; Tue, 18 Sep 2018 09:51:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2GPN-00055O-OP for guile-devel@gnu.org; Tue, 18 Sep 2018 09:51:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2GPI-0003fm-OH for guile-devel@gnu.org; Tue, 18 Sep 2018 09:51:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2GPI-0003fc-KL; Tue, 18 Sep 2018 09:51:12 -0400 Original-Received: from [193.50.110.53] (port=43386 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g2GPH-0001R7-Ky; Tue, 18 Sep 2018 09:51:12 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du =?utf-8?Q?G=C3=A9nie?= de =?utf-8?Q?l'Ann?= =?utf-8?Q?=C3=A9e?= 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <878t3zmegk.fsf@pobox.com> (Andy Wingo's message of "Tue, 18 Sep 2018 09:50:35 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19668 Archived-At: Hello, Andy Wingo skribis: > On Mon 17 Sep 2018 11:35, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >>> The threshold at which Guile will automatically JIT-compile is set from >>> the GUILE_JIT_THRESHOLD environment variable. By default it is 50000. >>> If you set it to -1, you disable the JIT. If you set it to 0, *all* >>> code will be JIT-compiled. The test suite passes at >>> GUILE_JIT_THRESHOLD=3D0, indicating that all features in Guile are >>> supported by the JIT. Set the GUILE_JIT_LOG environment variable to 1 >>> or 2 to see JIT progress. >> >> Just to be clear, does GUILE_JIT_THRESHOLD represents the number of >> times a given instruction pointer is hit? > > No. It is an abstract "hotness" counter associated with a function's > code. (I say "function's code" because many closures can share the same > code and thus the same counter. It's not in the scm_tc7_program object > because some procedures don't have these.) > > All counters start at 0 when Guile starts. A function's counters > increment by 30 when a function is called, currently, and 2 on every > loop back-edge. I have not attempted to tweak these values yet. OK, I see. Exciting times! Ludo=E2=80=99.