unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Installing scheme only programs
@ 2011-03-10  6:50 Diogo F. S. Ramos
  2011-03-10  9:57 ` Tristan Colgate-McFarlane
  2011-03-10 10:34 ` Thien-Thi Nguyen
  0 siblings, 2 replies; 12+ messages in thread
From: Diogo F. S. Ramos @ 2011-03-10  6:50 UTC (permalink / raw)
  To: guile-user

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-03-13  0:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10  6:50 Installing scheme only programs Diogo F. S. Ramos
2011-03-10  9:57 ` Tristan Colgate-McFarlane
2011-03-10 17:42   ` Diogo F. S. Ramos
2011-03-10 10:34 ` Thien-Thi Nguyen
2011-03-10 17:46   ` Diogo F. S. Ramos
2011-03-11  2:18     ` nalaginrut
2011-03-11  4:50       ` dsmich
2011-03-11  4:57         ` Diogo F. S. Ramos
2011-03-11  5:24           ` nalaginrut
2011-03-11  9:16     ` Thien-Thi Nguyen
2011-03-11 12:53   ` Ludovic Courtès
2011-03-13  0:59     ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).