From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Zeeshan Ali (Khattak)" Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: Killing off scm_init_guile for Guile 2.0 ? Date: Wed, 21 Jan 2009 23:52:47 +0200 Message-ID: <38294b740901211352ge5c0328s53962f902470bc7c@mail.gmail.com> References: <49dd78620901151530o66a2641ax47e526d15fc09faf@mail.gmail.com> <20090116213215.YITDV.179685.root@cdptpa-web09-z02> <3ae3aa420901161736u5de528d5gc75da062fb036115@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232575018 15818 80.91.229.12 (21 Jan 2009 21:56:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 21:56:58 +0000 (UTC) Cc: Guile User , guile-devel , Neil Jerram To: linasvepstas@gmail.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 21 22:58:10 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPl5F-0006Dp-FU for guile-user@m.gmane.org; Wed, 21 Jan 2009 22:58:01 +0100 Original-Received: from localhost ([127.0.0.1]:55930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPl3x-0002sk-Rk for guile-user@m.gmane.org; Wed, 21 Jan 2009 16:56:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPl0F-0000ch-JA for guile-user@gnu.org; Wed, 21 Jan 2009 16:52:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPl0E-0000bh-IE for guile-user@gnu.org; Wed, 21 Jan 2009 16:52:50 -0500 Original-Received: from [199.232.76.173] (port=51720 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPl0D-0000b6-JE; Wed, 21 Jan 2009 16:52:49 -0500 Original-Received: from yw-out-1718.google.com ([74.125.46.158]:16798) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPl0D-0008V5-6X; Wed, 21 Jan 2009 16:52:49 -0500 Original-Received: by yw-out-1718.google.com with SMTP id 9so1691391ywk.66 for ; Wed, 21 Jan 2009 13:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=g3R/4brwo4X2lUbbWeMjZPu+SMCo7kOxPlBGqn+mjw0=; b=fDSjLPKkkeQcjB8jMVLP1xr2D+vXCbw5YV7/qKqCEVebz1iBLTPkRCecba8curSWQ+ xJbN6uyolCiAck58ZimmKN5G0uuA4P3VUQoh9mRWTkpNHy+wGpN27apZGccwyEQxbGu5 erzCfnivBPJt5jg8C8JTBlXtHJfuvtF/2qctI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=yCOdYS3TE8od4f0rzRSC+x74d6BMPblXTndg+ErIbfkDy3cfbgITbROJHIrSOKhS/q IGdGTkxcy3UemvTXhv83zrhqHXhRsJZ6D0OcVcg7wvVMYKM5r6HGoMsSAg9KqWo1Dhz0 0sS6Ew2I67B3mE+SOmcBgwC4O1f/LPHszNSso= Original-Received: by 10.90.101.17 with SMTP id y17mr3637495agb.114.1232574767390; Wed, 21 Jan 2009 13:52:47 -0800 (PST) In-Reply-To: <3ae3aa420901161736u5de528d5gc75da062fb036115@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:7079 gmane.lisp.guile.devel:8060 Archived-At: Hi! I am back (in guile world). :) On Sat, Jan 17, 2009 at 3:36 AM, Linas Vepstas wrote: > 2009/1/16 : >> ---- Neil Jerram wrote: >>> scm_init_guile has always been a bit problematic, as it requires lots >>> of heuristic and OS-dependent code to try to determine where the base >>> of the stack is. It's never been formally deprecated, but we have >>> always advised people to use scm_boot_guile or scm_with_guile if they > >> Iirc, scm_init_guile is mainly used when you do not have access to main(), for example writing a module for apache. Generally, when you want to add Guile to an already existing application that has plugins or extension modules via .so's. > > This is an excellent example of where scm_init_guile > is exactly the *wrong* function to use. The problem is, > of course, that if you scm_init_guile in some .so, > you will accidentally place the entire system into guile > mode, and not just the .so, as intended. Ok, my xchat-guile is exactly that kind of thing so i'll just replace the call to scm_init_guile with scm_with_guile before the next release. > This could be cleared up by having the docs make > the case more forcefully. Yeah makes sese! Talking of docs, seems while i had been away the reference manual has been getting some love. IIRC i wrote xchat-guile mainly by poking around headers file and asking questions on IRC. Now it will be easier for me to re-learn guile/scheme. :) -- Regards, Zeeshan Ali (Khattak) FSF member#5124