From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: Running Compiled Guile Objects Date: Sat, 14 Dec 2024 11:33:16 +0900 Message-ID: References: <87frmroykg.fsf@free-comp-shop.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8726"; mail-complaints-to="usenet@ciao.gmane.io" Cc: hakancandar@protonmail.com, guile-user@gnu.org To: Keith Wright Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 14 03:34:13 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 1tMHyu-00027z-SP for guile-user@m.gmane-mx.org; Sat, 14 Dec 2024 03:34:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMHyI-0000i8-2g; Fri, 13 Dec 2024 21:33:34 -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 1tMHyG-0000hv-P9 for guile-user@gnu.org; Fri, 13 Dec 2024 21:33:32 -0500 Original-Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMHyE-0007l3-Il for guile-user@gnu.org; Fri, 13 Dec 2024 21:33:32 -0500 Original-Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-801c8164ef9so863007a12.1 for ; Fri, 13 Dec 2024 18:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734143609; x=1734748409; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O+L8tK2JulEOLEXUxZsuxv6wYRaPhqGvCpZOeuMP0lk=; b=NTgJrBDPO/bTdjyTSjpSmGVgSPXgyCKzr3pFJzDBYnmfQYO/oOrS+x8pjfOmqShH6p AMVQ20DZ4f9Y3FKmOL8o0u+dHtpgyM4He0n0Q02RXN4bEwbzYg3uBaUWTMnsqI+9LKNK iaSGHSWGNVA/Z5976egMdG3W4Ma7cUAAvBsGRzr4lYFk+RjA6PHmGlw8aqpjwnfv5kNM jiP35VYBkb4dY3urKt8rIne/T0vq+Ab3itM0IXQhp5pzJdu5q5MyH915l8R6QVnMh2Pm ZffUAHJZdey/wer/7GYBqLQHytgDhJHrKcKz5pasYpaSv5OXnFlnVrk9ZH6IWiYpqej2 b+5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734143609; x=1734748409; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O+L8tK2JulEOLEXUxZsuxv6wYRaPhqGvCpZOeuMP0lk=; b=DuFdrm53pftf34K+T0R1IXSmWmHdxfgurRBjHDvbHR6N5EMK7pBLDR1hf7XfpdzQEf uBleFn+dOOJRAcOaHM6q5eWeQaned8o9xUQKcGwItg149cyw1j9F9hcWYH0Amn0Adjqj 0wAOUFN90wURwdNETh2VokgXx+iS80C6WOKjOa6iDfMkdO757jDtp9k+cfDgbSXWY7MW syDKlUUCWe65d4hR97p/rRS/yiVp/W3ciaCG3RruyFLLC6GyCTy6HK6Ud1okvhzOnqBD qkFsiMnDXt4LjtgB51i0h/AcBAjUcioUQDL29KCXl5jeKLpIIpCaZGFqAsK5Kt/LmKKg 37yw== X-Forwarded-Encrypted: i=1; AJvYcCXtBYILJqyGW0+7SCJkTA6Idhn7tqo6aHuVHa1jcCGZJM8x2U2138Csqs/rO2bFvqhCCcY7lgdgl3J3@gnu.org X-Gm-Message-State: AOJu0Yy8hx8LUDMa3jKVqxYstNhUFv+bVENqapj9Znasutff9XRlNjd7 HdqzIz3NDfhM3HwfXn74zWkjfzdc2ewPbCsEN42SV5THNwfcaYQZaPPfDwKnt7AbMUVHRNxTNqP BwT7Pbv3tRKLFdnDB8Kp6nb+qHVmzpQ== X-Gm-Gg: ASbGncsBIN9RV8LzknDxNGgVTtpsWpV88J9hrrDVzAC57H8fAFF7btKpkUs13H6xB/W wFVuJIS5WbACqQmZxzIhjfBA9WXIdw2WTQHkXVg== X-Google-Smtp-Source: AGHT+IEQjtlOGGIaNpjxmG5p7+uD0HGe1MYLUqL0kiEw7ybhm6/OoTFVS9M8NO2ENCBSWyyQrRTO5HKS9MINyU+TE/w= X-Received: by 2002:a17:90b:3912:b0:2ee:463d:8e8d with SMTP id 98e67ed59e1d1-2f13ac560dfmr14770067a91.14.1734143608843; Fri, 13 Dec 2024 18:33:28 -0800 (PST) In-Reply-To: <87frmroykg.fsf@free-comp-shop.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=nalaginrut@gmail.com; helo=mail-pg1-x529.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, 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.29 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:19974 Archived-At: Hi Keith! AOT stands for "Ahead-of-Time," and in this context, it refers to the process of compiling source code directly into native machine code, allowing the program to be executed as a regular binary file without requiring a runtime interpreter. @Hakan The current .go file will be generated and loaded automatically, so one don't have to load it explicitly. To run a Guile source code, here's the document: https://www.gnu.org/software/guile/manual/html_node/Running-Guile-Scripts.html Basically, you run it as script, Guile will compile it to .go and load it. Best regards. On Sat, Dec 14, 2024, 10:14 Keith Wright wrote: > Nala Ginrut writes: > > > The current Guile is not AOT yet. > > Google says: Attack On Titan. > > > Although the object file is ELF, it's just bytecode wrapped ELF > > header. So you can't run it as a regular executable file. > > I don't think that was the question...Hakan wants to call the > Guile executable and pass it a *.go file. > > > On Sat, Dec 14, 2024, 07:35 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 >