unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Option to create statically linked binaries
@ 2021-12-29 17:29 Sai Karthik
  2021-12-29 19:27 ` James Crake-Merani
  2021-12-29 19:52 ` [EXT] " Thompson, David
  0 siblings, 2 replies; 6+ messages in thread
From: Sai Karthik @ 2021-12-29 17:29 UTC (permalink / raw)
  To: guile-user


[-- 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 --]

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

* Re: Option to create statically linked binaries
  2021-12-29 17:29 Option to create statically linked binaries Sai Karthik
@ 2021-12-29 19:27 ` James Crake-Merani
  2021-12-29 20:08   ` Keith Wright
  2021-12-29 19:52 ` [EXT] " Thompson, David
  1 sibling, 1 reply; 6+ messages in thread
From: James Crake-Merani @ 2021-12-29 19:27 UTC (permalink / raw)
  To: Sai Karthik; +Cc: guile-user

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)



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

* Re: [EXT] Option to create statically linked binaries
  2021-12-29 17:29 Option to create statically linked binaries Sai Karthik
  2021-12-29 19:27 ` James Crake-Merani
@ 2021-12-29 19:52 ` Thompson, David
  2021-12-29 21:22   ` tomas
  1 sibling, 1 reply; 6+ messages in thread
From: Thompson, David @ 2021-12-29 19:52 UTC (permalink / raw)
  To: Sai Karthik; +Cc: Guile User

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



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

* Re: Option to create statically linked binaries
  2021-12-29 19:27 ` James Crake-Merani
@ 2021-12-29 20:08   ` Keith Wright
  2021-12-30  6:28     ` Sai Karthik
  0 siblings, 1 reply; 6+ messages in thread
From: Keith Wright @ 2021-12-29 20:08 UTC (permalink / raw)
  To: James Crake-Merani; +Cc: guile-user, kskarthik

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".



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

* Re: [EXT] Option to create statically linked binaries
  2021-12-29 19:52 ` [EXT] " Thompson, David
@ 2021-12-29 21:22   ` tomas
  0 siblings, 0 replies; 6+ messages in thread
From: tomas @ 2021-12-29 21:22 UTC (permalink / raw)
  To: guile-user

[-- 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 --]

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

* Re: Option to create statically linked binaries
  2021-12-29 20:08   ` Keith Wright
@ 2021-12-30  6:28     ` Sai Karthik
  0 siblings, 0 replies; 6+ messages in thread
From: Sai Karthik @ 2021-12-30  6:28 UTC (permalink / raw)
  To: Keith Wright, James Crake-Merani; +Cc: guile-user


[-- 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 --]

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

end of thread, other threads:[~2021-12-30  6:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-29 17:29 Option to create statically linked binaries Sai Karthik
2021-12-29 19:27 ` James Crake-Merani
2021-12-29 20:08   ` Keith Wright
2021-12-30  6:28     ` Sai Karthik
2021-12-29 19:52 ` [EXT] " Thompson, David
2021-12-29 21:22   ` tomas

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).