unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* run compiled (*.go) file from command line?
@ 2020-11-18  0:08 Tim Meehan
  2020-11-18  0:44 ` Matt Wette
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Meehan @ 2020-11-18  0:08 UTC (permalink / raw)
  To: guile-user

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


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

* Re: run compiled (*.go) file from command line?
  2020-11-18  0:08 run compiled (*.go) file from command line? Tim Meehan
@ 2020-11-18  0:44 ` Matt Wette
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Wette @ 2020-11-18  0:44 UTC (permalink / raw)
  To: guile-user



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





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

end of thread, other threads:[~2020-11-18  0:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18  0:08 run compiled (*.go) file from command line? Tim Meehan
2020-11-18  0:44 ` Matt Wette

unofficial mirror of guile-user@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guile-user/0 guile-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-user guile-user/ https://yhetil.org/guile-user \
		guile-user@gnu.org
	public-inbox-index guile-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.lisp.guile.user
	nntp://news.gmane.io/gmane.lisp.guile.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git