From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Daniel_Llorens_del_R=EDo?= Newsgroups: gmane.lisp.guile.devel Subject: autocompile issues Date: Fri, 15 Jan 2010 18:51:35 +0100 Message-ID: <6CB3F55D-7CE9-406B-883A-BBE7B86594A3@bluewin.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263600522 31695 80.91.229.12 (16 Jan 2010 00:08:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2010 00:08:42 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jan 16 01:08:35 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVwDS-0005ts-5v for guile-devel@m.gmane.org; Sat, 16 Jan 2010 01:08:34 +0100 Original-Received: from localhost ([127.0.0.1]:41047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVwDS-0000Ep-Ua for guile-devel@m.gmane.org; Fri, 15 Jan 2010 19:08:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVqKp-0003EP-Tc for guile-devel@gnu.org; Fri, 15 Jan 2010 12:51:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVqKk-00037c-LN for guile-devel@gnu.org; Fri, 15 Jan 2010 12:51:47 -0500 Original-Received: from [199.232.76.173] (port=43358 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVqKk-00037T-Ed for guile-devel@gnu.org; Fri, 15 Jan 2010 12:51:42 -0500 Original-Received: from tr17.bluewin.ch ([195.186.18.84]:50712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVqKk-0005GI-3A for guile-devel@gnu.org; Fri, 15 Jan 2010 12:51:42 -0500 Original-Received: from [10.23.3.21] (128.179.67.121) by tr17.bluewin.ch (The Blue Window 8.5.119.018.5.119.01) (authenticated as dll) id 4B3CE608008B7BE6 for guile-devel@gnu.org; Fri, 15 Jan 2010 17:51:39 +0000 X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-Mailman-Approved-At: Fri, 15 Jan 2010 19:08:30 -0500 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9886 Archived-At: =09 Hello, I'm having some problems with autocompilation in the latest Guile. First, scm_primitive_load_path() triggers autocompilation but =20 scm_primitive_load() does not. Looking at libguile/load.c and =20 9591a2b016c5c11d2cd92ff0d43cd511f28bc07f, this seems intentional, but =20= I can't see the logic of it. Programs that were using =20 scm_primitive_load() with 1.8 will suffer with this behavior, since =20 the interpreter in 1.9 is much slower. Second, if I load a file with scm_primitive_load_path() and that file =20= has (use-modules (mod mod)), (mod mod) is not autocompiled. However, =20 if the compiled file exists, it is used. The same line in the REPL =20 does trigger autocompilation. It seems that this happens because %load-should-autocompile is turned =20= on (or not) in scm_shell(), and it is always false before. It might be reasonable to apply --autocompile and --no-autocompile in =20= scm_shell(), but shouldn't GUILE_AUTO_COMPILE at least be in effect =20 from the very beginning? Or at least before loading any user file. =20 If I try to define scm_loc_load_should_autocompile from =20 GUILE_AUTO_COMPILE in [scm_init_load()], however, some of the tests =20 in bit-operations.test fail, and I have not looked into that=85 Thanks, Daniel