[-- Attachment #1.1.1: Type: text/plain, Size: 345 bytes --] Hello everyone! I'm new to guile. I am exploring the language since a couple of days. It would be nice to have option to produce such binaries for programs built using guile (like with golang & some more langs). Was this topic already discussed here before? Interested to know about your thoughts. -- https://kskarthik.gitlab.io/ [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3185 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --]
On 21/12/29 10:59pm, Sai Karthik wrote: > Hello everyone! I'm new to guile. I am exploring the language since a couple > of days. It would be nice to have option to produce such binaries for > programs built using guile (like with golang & some more langs). > > Was this topic already discussed here before? Interested to know about your > thoughts. > > -- > https://kskarthik.gitlab.io/ Hi, I'm not sure what you're referring to when you say 'such binaries'. Are you referring to Guile bytecode? If so, you can use the following command: guild compile your-code.scm But unless I'm mistaken, Guile does this automatically. In any case, please let us know what you mean as it'll make it easier for us to help you. I'll link this manual page on the subject below in case its of any use to you. https://www.gnu.org/software/guile/manual/html_node/Compilation.html (Apologies if you recieved this email twice; I accidentally sent it to just you instead of the whole list)
Hi Sai,
On Wed, Dec 29, 2021 at 1:14 PM Sai Karthik <kskarthik@disroot.org> wrote:
>
> Hello everyone! I'm new to guile. I am exploring the language since a
> couple of days. It would be nice to have option to produce such binaries
> for programs built using guile (like with golang & some more langs).
That is not possible. Guile is currently dependent upon having a
bytecode interpreter installed on the machine that is running Guile
programs. The good news is that native compilation is something that
the Guile maintainers have planned for the future, which would enable
things like self-contained binaries.
- Dave
James Crake-Merani <james@jamescm.co.uk> writes: > On 21/12/29 10:59pm, Sai Karthik wrote: >> Hello everyone! I'm new to guile. I am exploring the language since a couple >> of days. It would be nice to have option to produce such binaries for >> programs built using guile (like with golang & some more langs). > I'm not sure what you're referring to when you say 'such binaries'. I had the same confusion, until I noticed the header. Subject: Option to create statically linked binaries -- Keith PS: I think Dave has already answered: "No, not yeT".
[-- Attachment #1: Type: text/plain, Size: 893 bytes --] On Wed, Dec 29, 2021 at 02:52:20PM -0500, Thompson, David wrote: > Hi Sai, > > On Wed, Dec 29, 2021 at 1:14 PM Sai Karthik <kskarthik@disroot.org> wrote: > > > > Hello everyone! I'm new to guile. I am exploring the language since a > > couple of days. It would be nice to have option to produce such binaries > > for programs built using guile (like with golang & some more langs). > > That is not possible. Guile is currently dependent upon having a > bytecode interpreter installed on the machine that is running Guile > programs. The good news is that native compilation is something that > the Guile maintainers have planned for the future, which would enable > things like self-contained binaries. On top of that, GNU libc is (at least in parts, libnss I think) dynamically linked anyway, AFAIK. My hunch is that Guile's core depends on GNU libc. Cheers -- t [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #1.1.1: Type: text/plain, Size: 1023 bytes --] Sorry for not able to phrase my thoughts into words properly. Yes, I mean able to create native binaries out of guile programs, Just like how in is done with Golang, where program binary includes go runtime & gc. And, good to know that the team has it in on the roadmap & I personally feel that it is a very good feature to have. On 30/12/21 01:38, Keith Wright wrote: > James Crake-Merani <james@jamescm.co.uk> writes: > >> On 21/12/29 10:59pm, Sai Karthik wrote: >>> Hello everyone! I'm new to guile. I am exploring the language since a couple >>> of days. It would be nice to have option to produce such binaries for >>> programs built using guile (like with golang & some more langs). > >> I'm not sure what you're referring to when you say 'such binaries'. > > I had the same confusion, until I noticed the header. > > Subject: Option to create statically linked binaries > > -- Keith > > PS: I think Dave has already answered: "No, not yeT". -- https://kskarthik.gitlab.io/ [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3185 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --]