From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.user Subject: Re: Silent guild Date: Fri, 2 Oct 2020 13:50:47 -0700 Message-ID: References: <938c5d2e40884e9072c6090c4282fc2d3cb97687.camel@korwin-zmijowski.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9580"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: =?UTF-8?Q?J=C3=A9r=C3=A9my_Korwin=2DZmijowski?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Oct 02 22:51:32 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOS1c-0002O4-0Z for guile-user@m.gmane-mx.org; Fri, 02 Oct 2020 22:51:32 +0200 Original-Received: from localhost ([::1]:44184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOS1a-0007Xn-Vf for guile-user@m.gmane-mx.org; Fri, 02 Oct 2020 16:51:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOS18-0007W5-8Z for guile-user@gnu.org; Fri, 02 Oct 2020 16:51:02 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:42343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOS16-0000Lg-HO for guile-user@gnu.org; Fri, 02 Oct 2020 16:51:01 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id j2so3091621eds.9 for ; Fri, 02 Oct 2020 13:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7TYXtfOWkxUp4FRPwf4wts4rYu3k1o/KwZSLyx3dJyc=; b=IMQ8/czfG6N79x6Xcv0UGaOCbaUjPoB+LSn9lWJFGn0sys0Z1PiutbFb2tx+fJtYGJ 5RqSpwReazf8NN3P8E1zRX03J3FS9DDthofdC9iLhakA70eZodJc18ModE6e6QuYwWqO 09K5lHlyGDJDGJYyi++6lyAkZEDREeDbWqi4VpeoWclOV5fEGefyerh2MFuSiOeTlVpg uPGOyHWEXzLNTlVdkCkk82tDl6NN7w9wH87LKJfnSjT1rxsSOTyBrbgN047pBKH0RftS pS7q37NAnT210RhoD/iXOXssdmokV0PaF1WKkAgwEPafTQFkC/OcGBSJPM6QqNtTI1mt xzVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7TYXtfOWkxUp4FRPwf4wts4rYu3k1o/KwZSLyx3dJyc=; b=KJZZ1tH9vjlpkx13SqJ9gi9zOjQRnh1ipu95CQacnpdxn3rg9IxPaK0d+YLr0ZuExP oJWjZuUbsVO/zhyvGh+AsaZlSN9g7lW5X4ReawpOpNRDlxdnq+hELyYltibyOAlB6rRY 6ET1PtYHJ4nomNuCjOkVmTzbv+XPVaf03Kl/SCmk+el/TuqiyUO4RN1C2Em3ZYdFgcrX znYr5fBVyGo7UYjmZRfC59iUJZLTEfO7Eqp0lzmHwOf2tlQiCGIl6JwdCLtoYDSjg31u bYKZLF/9g4RVH9lFlY1yYiDf0RCvt6WJZ1eFTPRWLX200wScQqeAscBcTJNAKZPUC1Y/ CFng== X-Gm-Message-State: AOAM531LXQG2rqeY2PEPwj7+I/LfhrW4FtpSDDfbtrXjl1dqx8hfnkWg bplSVyAG6/q1DbjUSDy+zV8N2CvJmuUUsq717ws= X-Google-Smtp-Source: ABdhPJxvRZIWt+BV1OvtT49eO/nC5vDd+oHzVxjyZEUsu2tZeU/wGPQR+dF1jpgoyZBTKBUw23PCQZC8QHipz/MZy6c= X-Received: by 2002:a50:ed02:: with SMTP id j2mr4679071eds.137.1601671858397; Fri, 02 Oct 2020 13:50:58 -0700 (PDT) In-Reply-To: <938c5d2e40884e9072c6090c4282fc2d3cb97687.camel@korwin-zmijowski.fr> Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=aconchillo@gmail.com; helo=mail-ed1-x52a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16954 Archived-At: On Fri, Oct 2, 2020 at 8:49 AM J=C3=A9r=C3=A9my 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=3D0 > ;;; 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=3D0 or guile --no-auto-compile FILE.scm or you can make your script executable (chmod +x test.scm) and make it look like this: =E2=9D=AF cat test.scm #!/bin/sh # -*- scheme -*- exec guile --no-auto-compile -l $0 -c "(apply main (cdr (command-line)))" "$@" !# (define (main . args) (display "hello")) =E2=9D=AF ./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