From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Running Compiled Guile Objects Date: Sat, 14 Dec 2024 12:12:46 -0800 Message-ID: <4e7e9af7-4ec5-4935-ab5a-ebf216223fa3@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 14 21:13:28 2024 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 1tMYW0-0003EA-5v for guile-user@m.gmane-mx.org; Sat, 14 Dec 2024 21:13:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMYVc-0005Uk-PF; Sat, 14 Dec 2024 15:13:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMYVb-0005UL-Fp for guile-user@gnu.org; Sat, 14 Dec 2024 15:13:03 -0500 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMYVU-0001MD-Bz for guile-user@gnu.org; Sat, 14 Dec 2024 15:13:03 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-725f2f79ed9so2180254b3a.2 for ; Sat, 14 Dec 2024 12:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734207173; x=1734811973; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=+i6j4TCABNlC0zzvrM67O2x7C7wUbmv8qFodCeXgMY4=; b=MoXKC8aeXOdjs8J4Z+mL23KUwyLUHehS6s0F7NqAl1rQgIL5SX+Z4f8vJRJRI7qDPS vVGCaJVKD0g/kHXx8gMyfWdwuAqjI0RfFQqz2g8ZWD6g0H8VQ2LZdxr4rf4n2z+DLTmT jkz9Ew+hKOXFKzhBRORlf9nRvxAmwE1anTQ+9vrYMico8LB9PaLvM5zIK6lv8nDZwkXz yhoSwjcrbIeC7vzCv2vU01T5N4LZmRp9HtRv5cpcKo/geUuoszNmIGGjWGn/3OJQJ6j+ dWy5+td3ew4PydA30nw/pEp8t1r2nya+rTccvyRuatZ+1Op6eAP/wAhUbpTyS/oBfoXZ ZYaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734207173; x=1734811973; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+i6j4TCABNlC0zzvrM67O2x7C7wUbmv8qFodCeXgMY4=; b=WJ07e1zq/N1xH74pulGGldbIzGa+owV2XGPRYoeZoLvzOchumjKX+ygiVVtmKNwzYr jb103CG2XXWHe/0dIfldAmefPmFhWpQk/a4O0KPjXn5R+THn0u2c0lmWwH/mvfKrcrGq KOGbOePi0So4ikvR1Fio2zNwn19rW/WCcQ7wsBcpg96vS/laGaxhiirjPo8Mp7NcQ1rd ck0D6vFqK8TcNSqiz95BnTxPUIYMdhHCGZ3cKmKr5TIwX0G4ANIeVCneB4DGktcphrs3 ufHL8AYSdU1GjQbprfCTNVqQothOdrR6wYMGOGVT/baYxuZcd6E7y7Nhr1gYUnr9QXHD xhMQ== X-Gm-Message-State: AOJu0Yw0pXoUkDtdmYxyBZgDaNvKwoxM+CcK7AcGdaThyvVm4tVHKA8F lVotjaavATK7S3zr9sakXGteG0HUxQU26PbG8mJeEyjF7q8d8yix07bkRw== X-Gm-Gg: ASbGncsRobz818G085F2NQ4Z1GoS+DYlQp9Cw+9PzCfNDpDRUKiX6FiQFlL4hS2f+Rm K36ZMpXWe0SC2v0beAFIgYi6a42Mwo0W/jaQnLR8J5NQNZvxDfl8ibrFFgXM4ol1G8GLYPCSIHI lcald3WF3ApWXdh4mE1bcQ7kiywdSgBgpo7XL2FGDFhZ+BVXgZpmion2/rGXUpZ/Pn6KOhr8gLp 925nSAOBdDPGg426pWKC9WFSWUGG02baQpfRlea17IYEBbWZ5SUX2hn5EWkhMik62A9 X-Google-Smtp-Source: AGHT+IETnzsI74XtB1NnTX9RJnYj9uGcsxR+GXbO6X4wqPwu43R0c9XyhHw9ADhBpxJ7oOvd7I9o3Q== X-Received: by 2002:a05:6a00:b46:b0:725:8c0f:6fa3 with SMTP id d2e1a72fcca58-7290c2700efmr10566892b3a.22.1734207172979; Sat, 14 Dec 2024 12:12:52 -0800 (PST) Original-Received: from [192.168.2.155] (64-52-138-37.championbroadband.com. [64.52.138.37]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-801d5ae9fe6sm1591035a12.49.2024.12.14.12.12.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Dec 2024 12:12:52 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=matt.wette@gmail.com; helo=mail-pf1-x435.google.com 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, 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-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19997 Archived-At: On 12/13/24 12:34 PM, Hakan Candar via General Guile related discussions wrote: > Dear Guile Users, > > I am unable to run guile objects directly from the command line. I inspected the manual > thoroughly, however I did not see any mention of my desired action. Is it possible to execute > guile objects directly, or are they reserved for internal caching mechanism only? > > I tried the following commands with no luck: > guile3.0 example.scm.go > guile3.0 --language=bytecode example.scm.go > > Your help and interest is much appreciated. > > Thanks, > Hakan This works: $ cat hello.scm (display "hello, world\n") $ guild compile hello.scm -o hello.go wrote `hello.go' $ rm hello.scm $ guile -L . -c '(load-compiled "hello.go")' hello, world If you have other .go's maybe adding `--no-auto-compile' is useful. Matt