* Quietening Guile compilation output
@ 2013-09-27 20:56 Peter TB Brett
2013-09-28 9:40 ` Thien-Thi Nguyen
2013-09-28 12:51 ` Ludovic Courtès
0 siblings, 2 replies; 6+ messages in thread
From: Peter TB Brett @ 2013-09-27 20:56 UTC (permalink / raw)
To: guile-user
[-- Attachment #1: Type: text/plain, Size: 664 bytes --]
Hi folks,
As my Scheme codebase gets larger, when starting my application I get
screens full of debug spew about the Guile compilation process. How can
I silence the following messages:
;;; note: source file /path/to/foo.scm
;;; newer than compiled /path/to/foo.scm.go
;;; compiling /path/to/foo.scm
;;; compiled /path/to/foo.scm.go
...while still getting the actually useful compilation warnings?
Thanks,
Peter
P.S. Bonus points if you can help me find an approach that can be used
without causing errors when the code is run under Guile 1.8...!
--
Dr Peter Brett <peter@peter-b.co.uk>
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Quietening Guile compilation output
2013-09-27 20:56 Quietening Guile compilation output Peter TB Brett
@ 2013-09-28 9:40 ` Thien-Thi Nguyen
2013-09-28 9:48 ` Peter TB Brett
2013-09-28 12:51 ` Ludovic Courtès
1 sibling, 1 reply; 6+ messages in thread
From: Thien-Thi Nguyen @ 2013-09-28 9:40 UTC (permalink / raw)
To: Peter TB Brett; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]
() Peter TB Brett <peter@peter-b.co.uk>
() Fri, 27 Sep 2013 21:56:39 +0100
As my Scheme codebase gets larger, when starting my application I get
screens full of debug spew about the Guile compilation process. How
can I silence the following messages: [...] ...while still getting
the actually useful compilation warnings?
I don't know the answer to that question, but a related question comes
to mind: Have you considered moving the compilation from application
invocation time to "build" time? I think such messages would not be so
annoying, then, and the (legitimate) warnings more welcome, too.
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Quietening Guile compilation output
2013-09-28 9:40 ` Thien-Thi Nguyen
@ 2013-09-28 9:48 ` Peter TB Brett
0 siblings, 0 replies; 6+ messages in thread
From: Peter TB Brett @ 2013-09-28 9:48 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
Thien-Thi Nguyen <ttn@gnu.org> writes:
> () Peter TB Brett <peter@peter-b.co.uk>
> () Fri, 27 Sep 2013 21:56:39 +0100
>
> As my Scheme codebase gets larger, when starting my application I get
> screens full of debug spew about the Guile compilation process. How
> can I silence the following messages: [...] ...while still getting
> the actually useful compilation warnings?
>
> I don't know the answer to that question, but a related question comes
> to mind: Have you considered moving the compilation from application
> invocation time to "build" time? I think such messages would not be so
> annoying, then, and the (legitimate) warnings more welcome, too.
Hi Thien,
Yes, I have considered it! However, the main reason I want to silence
the "noise" messages is so that I can more easily pick out the warnings,
not just for aesthetic reasons. Shifting the compilation to build time
doesn't actually solve that problem, surely?
Peter
--
Dr Peter Brett <peter@peter-b.co.uk>
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Quietening Guile compilation output
2013-09-27 20:56 Quietening Guile compilation output Peter TB Brett
2013-09-28 9:40 ` Thien-Thi Nguyen
@ 2013-09-28 12:51 ` Ludovic Courtès
2013-09-28 16:13 ` Peter TB Brett
1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2013-09-28 12:51 UTC (permalink / raw)
To: guile-user
Peter TB Brett <peter@peter-b.co.uk> skribis:
> As my Scheme codebase gets larger, when starting my application I get
> screens full of debug spew about the Guile compilation process. How can
> I silence the following messages:
>
> ;;; note: source file /path/to/foo.scm
> ;;; newer than compiled /path/to/foo.scm.go
> ;;; compiling /path/to/foo.scm
> ;;; compiled /path/to/foo.scm.go
>
> ...while still getting the actually useful compilation warnings?
I would recommend changing your package’s build system so that it
compiles and installs .go file. That way, users won’t see any such
messages.
The only exception is commands with a #!../guile shebang. For those you
can really avoid auto-compilation warnings, but it’s often OK to use the
evaluator if the script itself is small and just an entry point for the
core of your package:
#!/path/to/guile --no-auto-compile
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Quietening Guile compilation output
2013-09-28 12:51 ` Ludovic Courtès
@ 2013-09-28 16:13 ` Peter TB Brett
2013-09-28 22:12 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Peter TB Brett @ 2013-09-28 16:13 UTC (permalink / raw)
To: guile-user
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
ludo@gnu.org (Ludovic Courtès) writes:
> I would recommend changing your package’s build system so that it
> compiles and installs .go file. That way, users won’t see any such
> messages.
>
> The only exception is commands with a #!../guile shebang. For those you
> can really avoid auto-compilation warnings, but it’s often OK to use the
> evaluator if the script itself is small and just an entry point for the
> core of your package:
>
> #!/path/to/guile --no-auto-compile
>
To save me reinventing the wheel, does anybody have a recipe for doing
build-time compilation that DTRT with both Guile 1.8 and Guile 2.0?
Thanks,
Peter
--
Dr Peter Brett <peter@peter-b.co.uk>
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Quietening Guile compilation output
2013-09-28 16:13 ` Peter TB Brett
@ 2013-09-28 22:12 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2013-09-28 22:12 UTC (permalink / raw)
To: guile-user
Peter TB Brett <peter@peter-b.co.uk> skribis:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> I would recommend changing your package’s build system so that it
>> compiles and installs .go file. That way, users won’t see any such
>> messages.
>>
>> The only exception is commands with a #!../guile shebang. For those you
>> can really avoid auto-compilation warnings, but it’s often OK to use the
>> evaluator if the script itself is small and just an entry point for the
>> core of your package:
>>
>> #!/path/to/guile --no-auto-compile
>>
>
> To save me reinventing the wheel, does anybody have a recipe for doing
> build-time compilation that DTRT with both Guile 1.8 and Guile 2.0?
Yes, see <http://git.savannah.gnu.org/cgit/guile.git/tree/am/guilec>.
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-09-28 22:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27 20:56 Quietening Guile compilation output Peter TB Brett
2013-09-28 9:40 ` Thien-Thi Nguyen
2013-09-28 9:48 ` Peter TB Brett
2013-09-28 12:51 ` Ludovic Courtès
2013-09-28 16:13 ` Peter TB Brett
2013-09-28 22:12 ` Ludovic Courtès
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).