From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wolf Newsgroups: gmane.lisp.guile.user Subject: Re: Is it possible to write program only in Guile? Date: Thu, 19 Oct 2023 13:18:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ny/XJOH8tsvzp9ul" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8723"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: tomas@tuxteam.de Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Oct 19 13:36:39 2023 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 1qtRKR-000216-4K for guile-user@m.gmane-mx.org; Thu, 19 Oct 2023 13:36:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtR2m-0001ug-QZ; Thu, 19 Oct 2023 07:18:25 -0400 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 1qtR2k-0001uS-4t for guile-user@gnu.org; Thu, 19 Oct 2023 07:18:22 -0400 Original-Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtR2h-0006cW-Ps for guile-user@gnu.org; Thu, 19 Oct 2023 07:18:21 -0400 Original-Received: by wolfsden.cz (Postfix, from userid 104) id 5BF3626DE7C; Thu, 19 Oct 2023 11:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1697714295; bh=iIafNjVtJEf6iNPWPyU8SRUYQvX7cTL6CNSBEBjSmuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=T5ETLQQ/jnP5wkksvpuWQOBJp2/obyjTQhPdl2XrZvfwZXtUAgu230RDovGSd4bgP r8EbC+7DQzl8ZERI15Ka9H8Vi24MXFrLUU0+ivVAKSDtTPHQBDqq97TB+0DB+z9K+i /DQ1tQPAZX6fp1W9JlsEgfWNMTc4eYScKdnConnElNk5UbOQweH+PhQeK+Pf7X5yeo 5Nyc7j1+zc2cS34TkC4aYGsuoB11j5vG9+TW5tSva8XO5lUbwLTMkaICA8umaIC0TE 5DSxK+GjOnFaE68EjOLttFzmA7fPajl9ondzmQMG/OLVjdimH/ZC+8Y1ufTrhEdn3j 4EEYiOF9UKHmHxNTNa/bwZ2gtg+W70+rUZHdFjtbVR0WHcNGDIBm25ZpaZ09xcnpFy wlgtdqN/Qpd2Rdw4qz5AtY7qSMa9om+Awz/tNfaeG4IQ7t6cLiMFrV5f1Y5vn2737N l2lY7QGtjbCMQqqswm+FypoMXYU+62JoUeNbE9hBZXJC+DgZ05z3GEwOfSPPvBiXd2 b2P0Vc9XRt6d3XzM4Bftn/Bu+MV53r+uLGsecA8/qMEBnPbUKCuJo78HzJUTcviTTB 1w2xH6doh6Xy/AeS0rPartU3n3VGN0OS59CVUx+6i0KPmnVarZ+w5cG8pkFxmGxj0v rRd5rjnA8SFe7QqITyx149uQ= Original-Received: from localhost (unknown [193.32.127.156]) by wolfsden.cz (Postfix) with ESMTPSA id A1B2526FE8D; Thu, 19 Oct 2023 11:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1697714294; bh=iIafNjVtJEf6iNPWPyU8SRUYQvX7cTL6CNSBEBjSmuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=geDXrqorss9geyPiTVrqQm1MBEvmG0qCOmKkDdGj4PnS5tROev+m6N688edZQ/H5s 9R5cYxEMR5aK+yjn0wT1dqoNHruSjbtziBVF2LmoVAy0sE/snsSgq5eNete2kD7wOx l4ehLihx9ZIaqj52W3QCA3wUCXmDiYyuLY+Zt2g82ZPVxbPlIPOKnDhRVqcLNYYGJy ggrqpX9fkEQFHyKcre0NLKQeGxAo7IW35Kv+pBFviZT2hD95tqPoRUAdBNqbZxPOps sejIZTwhMEzY5faNW3MW/lvcmqFfkl2XXZLl5wx9eJ/bStY3LEfwX5ZTU6q6nV76DV nmj6CYOoP1NUokHpsqUKZPpqT2MMZm1BgFnwjC1ICRmZ2MKETDSF5BhxKpixgOjUp9 mt+hhPE8UK5//1PalCvWnALEiufiRflQVjY2VMJzdcjU2wc4c1lIjkiQXFvgZhZMk3 mzaoTyrkx+ptbDi+l0CdZnoRPHOh1Wh8AE5hwA8eyulf3gfXYO7DzTf48JsUooDJ5y 5MljYVYj0hkOx+aMiM/UOi9trwQVyfU8/08yu3fl7itvW/10mY8rq5OpRyF3Q3Qbvt eOSoSAbSj85SUaACd5iXOLPxXh/LmL5h6TXDDN9miVXMkhjxDmwisGYdsjVtx9J23g ejk3JSlnEonTRWULIXlvGkzM= Original-Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id ef5e7b0f; Thu, 19 Oct 2023 11:18:14 +0000 (UTC) Mail-Followup-To: tomas@tuxteam.de, guile-user@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no 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:19287 Archived-At: --ny/XJOH8tsvzp9ul Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-10-19 06:52:40 +0200, tomas@tuxteam.de wrote: > On Wed, Oct 18, 2023 at 10:43:25AM -0400, Greg Troxel wrote: > > CToID writes: > >=20 > > > How do I distribute Guile programs to somebody who doesn't have Guile > > > installed on their system?=A0 It does not seem like Guile compiler is > > > able to produce a standalone executable. > >=20 > > The same way you distribute Java programs, python programs and perl > > programs. You ask they they install the langauge environment as part of > > your instructions >=20 > And -- at the end of the day -- C programs: libc (or equivalent) and > the runtime aren't trivial either. Unless you are doing embedded stuff. >=20 > In Linux, for example, a "C executable" (a binary compiled from C) > isn't that different from a shell script, if you squint. While in > a shell script you have that shebang line stating "I want to be > interpreted by /bin/foo", the executable says "I want to be loaded > by /lib/ld-linux.so" (the dynamic loader) or something similar. Most of the time you would do static binary with musl as a libc. That way = (and utilizing static libraries) you can produce *very* portable native programs. There of course are limitations, but often it works quite well. >=20 > Actually, AFAIK, the Guile compiler compiles down to dynamic objects > these days. But you need that pesky runtime... >=20 > It's turtles all the way down :-) >=20 > Cheers > --=20 > t --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --ny/XJOH8tsvzp9ul Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmUxEHUACgkQL7/ufbZ/ walVzhAAsH0y+wXwIRM2pTPJPH5KIq+sre5QDzCNgSNR78PW41dl2bceT0vQg4yI X/NcZv5ZpRXXou7MucWccFEJVZZ3DT13DIloJNNCtkoqSpecdP83JTQj6Y6Zq0Z4 spdx0t+cF521ghm/rN+O6lpFkb+jCumnFcu596VZgTKTSpkE6vEWHRaqIXGqO4ld Ql4aj2WJVSe3tZcJb0T51h6aibAvXycBCkMfKbLXFrZ60fh/JOaTKrCfGKyfnEeq SGCojkIO0JwAr6GKuQZjGEEVIcnBoaA7Xi4XxEvq3d8mT89XfR/OHL40smrgPawQ y0J8C0CNcMxncks8SskKXtfq4FLtNXuV8YXdnd5HEWeosdD76lfLQdnSPIA5Vup9 OzX5hrTokPU/ZZId56RYxKTT5YnAm/+qM8kwB9IsizkFDYH3qCmGy9eLJZbaXZv1 bMqX1tomn9SWJfW4TWVptb7xpKdjM7gojiY1QyjMYJd+NndM53dz73KVFQA+TFOF VgcFdQD95MFSoJOpaeSCLHMSQulTI/3CHNLBidlNzPc8eiN3OWK9D8GnDinfBOBe b5Q0bIjJWkiOzD4cYmFCyeMAorylsQ7wS3foI3YGbHPbYUL+XlfW1xDHTiCh+Bc6 4C9rKBdez2hn8OvujkwIU/sfuG2agAeD7lIN3Im9ieD3AKRweS0= =hYXu -----END PGP SIGNATURE----- --ny/XJOH8tsvzp9ul--