* Silent guild
@ 2020-10-02 15:38 Jérémy Korwin-Zmijowski
2020-10-02 20:50 ` Aleix Conchillo Flaqué
0 siblings, 1 reply; 3+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2020-10-02 15:38 UTC (permalink / raw)
To: Guile User
Hello Guilers !
How can I configure guild to be silent. I mean, when I run a Guile
script for the first time I can see those lines on standard output :
;;; note: source file /home/jeko/Workspace/guile-
handbook/numbers/numbers-test.scm
;;; newer than compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
4.3/home/jeko/Workspace/guile-handbook/numbers/numbers-test.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /home/jeko/Workspace/guile-handbook/numbers/numbers-
test.scm
;;; note: source file ./numbers.scm
;;; newer than compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
4.3/home/jeko/Workspace/guile-handbook/numbers/numbers.scm.go
;;; compiling ./numbers.scm
;;; compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
4.3/home/jeko/Workspace/guile-handbook/numbers/numbers.scm.go
;;; compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
4.3/home/jeko/Workspace/guile-handbook/numbers/numbers-test.scm.go
Is there a way to hide them ? Or make it shorter ?
Thank in advance.
Jérémy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Silent guild
2020-10-02 15:38 Silent guild Jérémy Korwin-Zmijowski
@ 2020-10-02 20:50 ` Aleix Conchillo Flaqué
2020-10-03 6:54 ` Jérémy Korwin-Zmijowski
0 siblings, 1 reply; 3+ messages in thread
From: Aleix Conchillo Flaqué @ 2020-10-02 20:50 UTC (permalink / raw)
To: Jérémy Korwin-Zmijowski; +Cc: Guile User
On Fri, Oct 2, 2020 at 8:49 AM Jérémy Korwin-Zmijowski <
jeremy@korwin-zmijowski.fr> wrote:
> Hello Guilers !
>
> How can I configure guild to be silent. I mean, when I run a Guile
> script for the first time I can see those lines on standard output :
>
> ;;; note: source file /home/jeko/Workspace/guile-
> handbook/numbers/numbers-test.scm
> ;;; newer than compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
> 4.3/home/jeko/Workspace/guile-handbook/numbers/numbers-test.scm.go
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; or pass the --no-auto-compile argument to disable.
> ;;; compiling /home/jeko/Workspace/guile-handbook/numbers/numbers-
> test.scm
> ;;; note: source file ./numbers.scm
> ;;; newer than compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
> 4.3/home/jeko/Workspace/guile-handbook/numbers/numbers.scm.go
> ;;; compiling ./numbers.scm
> ;;; compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
> 4.3/home/jeko/Workspace/guile-handbook/numbers/numbers.scm.go
> ;;; compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-
> 4.3/home/jeko/Workspace/guile-handbook/numbers/numbers-test.scm.go
>
> Is there a way to hide them ? Or make it shorter ?
>
You can do
export GUILE_AUTO_COMPILE=0
or
guile --no-auto-compile FILE.scm
or you can make your script executable (chmod +x test.scm) and make it look
like this:
❯ cat test.scm
#!/bin/sh
# -*- scheme -*-
exec guile --no-auto-compile -l $0 -c "(apply main (cdr (command-line)))"
"$@"
!#
(define (main . args)
(display "hello"))
❯ ./test.scm
hello
all these will stop compiling your scripts to a .go file. If your scripts
are small this is usually fine.
I hope this helps.
Best,
Aleix
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-03 6:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 15:38 Silent guild Jérémy Korwin-Zmijowski
2020-10-02 20:50 ` Aleix Conchillo Flaqué
2020-10-03 6:54 ` Jérémy Korwin-Zmijowski
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).