From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Diogo F. S. Ramos Newsgroups: gmane.lisp.guile.user Subject: Installing scheme only programs Date: Thu, 10 Mar 2011 03:50:29 -0300 (BRT) Message-ID: <20110310.035029.58396821684886596.diogofsr@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299739847 15713 80.91.229.12 (10 Mar 2011 06:50:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 06:50:47 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 10 07:50:40 2011 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.69) (envelope-from ) id 1PxZhi-0000bi-Jm for guile-user@m.gmane.org; Thu, 10 Mar 2011 07:50:34 +0100 Original-Received: from localhost ([127.0.0.1]:47400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxZhi-000298-6Z for guile-user@m.gmane.org; Thu, 10 Mar 2011 01:50:34 -0500 Original-Received: from [140.186.70.92] (port=46914 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxZhW-00028Q-Fp for guile-user@gnu.org; Thu, 10 Mar 2011 01:50:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxZhU-0007Rh-C0 for guile-user@gnu.org; Thu, 10 Mar 2011 01:50:21 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:34330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxZhU-0007RZ-8u for guile-user@gnu.org; Thu, 10 Mar 2011 01:50:20 -0500 Original-Received: by yxt33 with SMTP id 33so714919yxt.0 for ; Wed, 09 Mar 2011 22:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:message-id:to:subject:from:x-mailer :mime-version:content-type:content-transfer-encoding; bh=r6a1FsRB0GqO7SMlWiLDwaH8eG9+S6DTqx9d7QKRhok=; b=XY6snVbNkqestJrNM4TWwlgQD9WD9YSSj4K6KDJnM4dOwcoChn/rQVAEwoW9B55DaO yqyQkzqNb4m59pb0Hx0q/jG9QTM9+chxteEF7oX1v0txteFUYiKBbqCqTxlno33Phje0 XhO5NTcRc63Up1WPHMXWqMEVu8OSpkBSaUtAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:to:subject:from:x-mailer:mime-version:content-type :content-transfer-encoding; b=O6dltqK6m1jBBz4/PKRUignOEZHHKChVhWe22YK1QZ4+GRPQHZ7fcfy7xDFStc6CjI 33hHl+neSbPMs88xdtbO2Yj/6Rh6E24D6FJw/HcQhvUA4yAr9kTuLYpVl8Rz/4qkq7x9 noQzl5MDoVEtxIMQqqiqfDE+h6K/INQpfDfag= Original-Received: by 10.100.24.6 with SMTP id 6mr1016246anx.245.1299739819540; Wed, 09 Mar 2011 22:50:19 -0800 (PST) Original-Received: from localhost (189-68-66-173.dsl.telesp.net.br [189.68.66.173]) by mx.google.com with ESMTPS id u13sm3494616ank.3.2011.03.09.22.50.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Mar 2011 22:50:18 -0800 (PST) X-Mailer: Mew version 6.3.50 on Emacs 23.2 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.169 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:8512 Archived-At: I have a program written entirely in guile's scheme and I use autotools to distribute it. Is there a guide to distribute guile programs? I know that some languages have, but I can see any in the guile docs. My biggest concern is about the .scm files that makes up my program. For those who know autotools, I'm using pkgdata to install the files and them I use (load "/path/to/.scm") from a simple executable script. But it got me thinking that the .scm files are not exactly data. I was thinking that the 'module' facility of guile could be the solution. I install them where guile's modules are installed and use (use-modules) to load. But then again, my .scm are not exactly modules because they are not, in any way, made for general purpose use. I recently learn a technique where, during 'make', one 'cat' all the sources files together, forming a big, single executable script. Doing so, there is no need to install the .scm files, because they are all inside the same executable file. This technique needs a little care, but is definitely doable, as I did a scratch of it and it works, although I felt that the bigger file made my application take a little more time to start than separate loaded files. I didn't do any benchmark, so don't take my word on it. So, what do you guys think? Is there a proper way to distribute and install scheme only programs? -- Diogo F. S. Ramos