unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: guile-user@gnu.org
Subject: Re: run compiled (*.go) file from command line?
Date: Tue, 17 Nov 2020 16:44:55 -0800	[thread overview]
Message-ID: <14617a07-044c-34f8-2267-1e57a7f775b5@gmail.com> (raw)
In-Reply-To: <CACgrOxJ+ABouHpbO8yhe0mSjOOCufUk-0i_V63ZR5gM_zZTuwQ@mail.gmail.com>



On 11/17/20 4:08 PM, Tim Meehan wrote:
> Is it possible to run a compiled file from the command line with "guile"?
> I'm assuming that it was compiled with something like:
> guild compile --output=whatever.go whatever.scm
>
> Or is it possible to just make an executable file out of "whatever.scm"?
>
> Thx
$ cat hello.scm
(display "hello, world\n")

$ guild compile -o hello.go hello.scm
wrote `hello.go'

$ guile -c '(load-compiled "hello.go")'
hello, world





      reply	other threads:[~2020-11-18  0:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18  0:08 run compiled (*.go) file from command line? Tim Meehan
2020-11-18  0:44 ` Matt Wette [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14617a07-044c-34f8-2267-1e57a7f775b5@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).