From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vorfeed Canal Newsgroups: gmane.lisp.guile.user Subject: Re: PHP to GUILE Date: Mon, 26 Sep 2005 23:05:41 +0400 Message-ID: <6efab23505092612053fe5b4e8@mail.gmail.com> References: <6efab235050925145055ba774c@mail.gmail.com> <87ll1k61w4.fsf@zip.com.au> <38294b7405092600273de6d37f@mail.gmail.com> <6efab23505092601173a0b89b5@mail.gmail.com> <38294b7405092610574c337f8e@mail.gmail.com> Reply-To: Vorfeed Canal NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1127761823 4537 80.91.229.2 (26 Sep 2005 19:10:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2005 19:10:23 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 26 21:10:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EJyKi-0006jc-IH for guile-user@m.gmane.org; Mon, 26 Sep 2005 21:08:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EJyKh-0001xQ-Ux for guile-user@m.gmane.org; Mon, 26 Sep 2005 15:08:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EJyJv-0001ku-9K for guile-user@gnu.org; Mon, 26 Sep 2005 15:07:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EJyJo-0001iJ-Q0 for guile-user@gnu.org; Mon, 26 Sep 2005 15:07:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EJyJo-0001fI-Bv for guile-user@gnu.org; Mon, 26 Sep 2005 15:07:16 -0400 Original-Received: from [72.14.204.200] (helo=qproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EJyII-0000GL-Af for guile-user@gnu.org; Mon, 26 Sep 2005 15:05:42 -0400 Original-Received: by qproxy.gmail.com with SMTP id e12so462760qbe for ; Mon, 26 Sep 2005 12:05:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=i5hUcdKphp5ljgmPJLTlsC2TxRW+PDC7s9Q1rCMFa0rwiZNzeLEGwS2KdNf1mzvZCBOp/ptKbFOKgnHEsmxz4QpB5hjgMMVqperg7d0u5TJDcIgLUyb3bugc/DUAciEkLR6nJ4oauSq6NzSp6GUPDC8G06IfFTy/DOZYMSs7Iu4= Original-Received: by 10.65.138.4 with SMTP id q4mr541621qbn; Mon, 26 Sep 2005 12:05:41 -0700 (PDT) Original-Received: by 10.65.100.16 with HTTP; Mon, 26 Sep 2005 12:05:41 -0700 (PDT) Original-To: guile-user@gnu.org In-Reply-To: <38294b7405092610574c337f8e@mail.gmail.com> Content-Disposition: inline X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4777 Archived-At: On 9/26/05, Zeeshan Ali wrote: > > > > I took a look. Conclusion: it's a mess. > > Your conclusion is based on your ignorance. > Possible. Care to enlighten men ? > Please at least read the log yourself first, it's not (xchat-guile > plugin-system) that guile is unable to find but the xchat's main > module that is defined inside the xchat plugin, writen in C. > Ok. And then why your plugin-system never loaded this main module instead ? > > And in this case it's easy to move plugin-system.scm to > > /usr/lib/xchat/plugins (where it belongs) since guile DOES have > > adjustable %load-path . GUILE does NOT have something similar for > > native libraries. That's the problem. > > plugin-system is NOT an xchat plugin but a guile module that the > xchat-guile plugin uses. Ok. No problem. If this "is NOT an xchat plugin" but simple guile module then it usable without xchat, right ? This means (use-modules (xchat-guile plugin-system)) works, right ? Oops. It does not. Conclusion: it's NOT guile module but part of xchat module. It's written in scheme but it does not make it guile module. Just like the fact that your guile.so is written in C does not make it C library. > Since it's a guile module, IMHO it doesn't belong in directory for xchat = plugins. > But it's NOT guile module - my simple test proved it. That's the problem. Let's take a look on lilypond: /usr/share/lilypond/2.6.3/ps - postscript helper routines /usr/share/lilypond/2.6.3/scm - guile modules /usr/share/lilypond/2.6.3/tex - tex macroses Sane ? Sane: it does not matter if it's in scheme and interpereted by guile interpereter or in tex and interpreted by etex - if it's unusable outside of lilypond it does not belong to /usr/share/guile and/or /usr/share/texmf. Now xchat and xchat-guile. /usr/lib/xchat/plugins/perl.so - ok, xchat<->perl glue /usr/lib/xchat/plugins/xas.pl - xchat plugins written in perl /usr/lib/xchat/plugins/guile.so - ok, xchat<->guile glue /usr/share/guile/site/xchat-guile/plugin-system.scm - WTF ? Why the hell part of xchat<->guile glue code does in default guile %load-path ? Is it usable outside of xchat ? If yes - then how exactly it's usable ? If not - then why it's not in /usr/lib/xchat/plugins or /usr/lib/xchat/guile or something like that ? > 2. Since guile doesn't allow you to 'unplug' modules on the run, I had > to do some trick to make it work, which makes it a bit complicated, > but it's not a mess. :) I was not reffering to plugin-system.scm contents but to it's place in filesystem. It's a mess. May be it's unavoidable mess, I do not know (I fail to see why it's unavoidable but who knows) - but it's a mess nonetheless.Simple question: can I install two different versions of xchar with two different versions of xchat-guile glue code ? Answer: no - we'll get clash in /usr/share/guile/site/xchat-guile/plugin-system.scm. And why that happened ? Since this file does not belong to /usr/share/guile/site directory in first place but was put there anyway. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user