From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: SLIB support Date: Sat, 15 Sep 2007 18:53:27 -0700 Message-ID: <87642bjrzc.fsf@raven.defaultvalue.org> References: <874pi13xer.fsf@gkar.rotty.yi.org> <87veaf3nq7.fsf@gkar.rotty.yi.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189907621 29066 80.91.229.12 (16 Sep 2007 01:53:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2007 01:53:41 +0000 (UTC) Cc: Guile Developers To: Andreas Rottmann Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Sep 16 03:53:36 2007 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 1IWjKI-0004o8-L3 for guile-devel@m.gmane.org; Sun, 16 Sep 2007 03:53:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWjKH-0000hx-SX for guile-devel@m.gmane.org; Sat, 15 Sep 2007 21:53:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWjKF-0000gT-Af for guile-devel@gnu.org; Sat, 15 Sep 2007 21:53:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWjKD-0000gH-OE for guile-devel@gnu.org; Sat, 15 Sep 2007 21:53:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWjKD-0000gE-J5 for guile-devel@gnu.org; Sat, 15 Sep 2007 21:53:29 -0400 Original-Received: from li12-156.members.linode.com ([70.85.129.156] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWjKC-0005Rv-QA for guile-devel@gnu.org; Sat, 15 Sep 2007 21:53:29 -0400 Original-Received: from omen.defaultvalue.org (localhost [127.0.0.1]) by defaultvalue.org (Postfix) with ESMTP id EDE1C90D35; Sat, 15 Sep 2007 18:53:27 -0700 (PDT) Original-Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7]) by omen.defaultvalue.org (Postfix) with ESMTP id 655273411B; Sat, 15 Sep 2007 18:53:27 -0700 (PDT) Original-Received: by raven.defaultvalue.org (Postfix, from userid 1000) id 53E311006BB; Sat, 15 Sep 2007 18:53:26 -0700 (PDT) In-Reply-To: <87veaf3nq7.fsf@gkar.rotty.yi.org> (Andreas Rottmann's message of "Wed\, 12 Sep 2007 17\:30\:40 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6 (newer, 1) 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:6798 Archived-At: Andreas Rottmann writes: > I've now prepared a patch (attached) that's hopefully good enough > for upstream use. > +(define-module (ice-9 slib) > + :export (slib:load slib:load-source defmacro:load > + implementation-vicinity library-vicinity home-vicinity > + scheme-implementation-type scheme-implementation-version > + output-port-width output-port-height array-indexes > + make-random-state > + -1+ ? >=? > + require slib:error slib:exit slib:warn slib:eval > + defmacro:eval logical:logand logical:logior logical:logxor > + logical:lognot logical:ash logical:logcount logical:integer-length > + logical:bit-extract logical:integer-expt logical:ipow-by-squaring > + slib:eval-load slib:tab slib:form-feed difftime offset-time > + software-type) > + :replace (provide provided?) > + :no-backtrace) > + > + > +(load "@SLIB_LOCATION@/init/guile.init") In the long run, or perhaps even in the short run if Aubrey Jaffer's interested in a patch and can make a fairly quick release, I wondered if we might want to go even further, i.e. change it so that the *only* thing in ice-9/slib.scm is (load-from-path "slib/guile.init") I suggest this in part because I believe SLIB already has code (which might or might not need adjustment) to handle defining the module, making the exports, etc. It's just conditionalized on the Guile version. If I recall correctly, SLIB's module related code is fairly automated and is actually part of an implementation independent module framework. So the definition in ice-9/slib.scm is probably just a duplication of effort. Given that, it seemed like it might be better to just work with Aubrey Jaffer to maintain all of the code in one place. -- Rob Browning rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel