Executable Programs with Guile Arne Babenhauserheide (06 Jul 2016 21:50 UTC)
Re: Executable Programs with Guile taylanbayirli@xxxxxx (06 Jul 2016 23:20 UTC)
Re: Executable Programs with Guile Marc Nieper-Wißkirchen (07 Jul 2016 06:24 UTC)
Re: Executable Programs with Guile Per Bothner (07 Jul 2016 06:52 UTC)
Re: Executable Programs with Guile Marc Nieper-Wißkirchen (07 Jul 2016 07:14 UTC)
Re: Executable Programs with Guile John Cowan (07 Jul 2016 11:09 UTC)
Re: Executable Programs with Guile Per Bothner (07 Jul 2016 12:30 UTC)
Re: Executable Programs with Guile John Cowan (07 Jul 2016 14:49 UTC)

Re: Executable Programs with Guile Per Bothner 07 Jul 2016 06:52 UTC


On 07/06/2016 11:24 PM, Marc Nieper-Wißkirchen wrote:

> As Taylan points out, implementations have several ways to provide a ‘compile-r7rs’. The simplest way is probably to provide a wrapper script.

In some environments any requirement for an executable as single file may be awkward.
In a Unix-like environment an option could be to concatenate a shell script stub followed
by the contents of some kind of archive.  However, to execute the program, the script might
have to uncompress the script in a temporary location, which is possible, but could be expensive.

FWIW: I was surprised to find out you can concatenate a shell script with the .jar
(Java Archive) file, and have the shell script call something like 'exec java -jar $0'.
I.e. the java command can skip the shell-script preamble when looking for the jar contents.
So that may be a possible approach for Java and other JVM-based implementations.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/