From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: compiler dep on r6rs Date: Thu, 27 Jan 2011 14:28:05 +0100 Message-ID: <87pqricw7u.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296134915 23988 80.91.229.12 (27 Jan 2011 13:28:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 13:28:35 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jan 27 14:28:31 2011 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.69) (envelope-from ) id 1PiRtj-0006MQ-4i for guile-devel@m.gmane.org; Thu, 27 Jan 2011 14:28:27 +0100 Original-Received: from localhost ([127.0.0.1]:43347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiRth-0005iM-KS for guile-devel@m.gmane.org; Thu, 27 Jan 2011 08:28:25 -0500 Original-Received: from [140.186.70.92] (port=47684 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiRtR-0005gl-BK for guile-devel@gnu.org; Thu, 27 Jan 2011 08:28:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiRtQ-0005qS-3j for guile-devel@gnu.org; Thu, 27 Jan 2011 08:28:09 -0500 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:17421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiRtP-0005pp-UY for guile-devel@gnu.org; Thu, 27 Jan 2011 08:28:08 -0500 X-IronPort-AV: E=Sophos;i="4.60,386,1291590000"; d="scan'208";a="74405327" Original-Received: from unknown (HELO nixey) ([193.50.110.208]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 27 Jan 2011 14:28:06 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?iso-8859-1?Q?Pluvi=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Andy Wingo's message of "Thu, 27 Jan 2011 11:55:36 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:11358 Archived-At: Hello! Andy Wingo writes: > On Tue 07 Dec 2010 11:33, Andy Wingo writes: > >> The new R6RS support is great. However we are currently pulling in (rnrs >> base) into the set of modules needed by the compiler, because (language >> assembly compile-bytecode) uses open-bytevector-output-port, and the >> ports impl gained a dep on base. >> >> Is there any way that we can remove this dependency? It will speed up >> bootstrap and the pause as the first expression at the REPL is >> compiled. > > How about we move most of the procedures that are defined in C via > scm_init_r6rs_ports to (ice-9 binary-ports). Then (rnrs io ports) can > still be a r6rs module, and low-level code can avoid pulling in r6rs. A potential problem is that (rnrs io ports) uses bytevectors, defined in (rnrs bytevectors), so we would perhaps need an (ice-9 bytevectors) as well[*], and a new node in the manual for each, etc. Is the only problem of the current solution that compilation of Guile itself is slower? (Which is a real problem, but I=E2=80=99m trying to get = the big picture.) Thanks, Ludo=E2=80=99. [*] (rnrs io ports) doesn=E2=80=99t import (rnrs bytevectors), but it may s= eem slightly inconsistent to have (ice-9 binary-ports) and not (ice-9 bytevectors).