From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: How to add Guile support to a package Date: Mon, 05 Jan 2015 18:08:11 +0100 Message-ID: <87ioglm9z8.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420477714 11087 80.91.229.3 (5 Jan 2015 17:08:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2015 17:08:34 +0000 (UTC) Cc: Guile User To: Antonio Ceballos Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 05 18:08:28 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y8B8l-0001U3-8l for guile-user@m.gmane.org; Mon, 05 Jan 2015 18:08:27 +0100 Original-Received: from localhost ([::1]:33184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8B8k-0001oB-Es for guile-user@m.gmane.org; Mon, 05 Jan 2015 12:08:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8B8c-0001o6-PA for guile-user@gnu.org; Mon, 05 Jan 2015 12:08:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8B8X-00087s-Q7 for guile-user@gnu.org; Mon, 05 Jan 2015 12:08:18 -0500 Original-Received: from hera.aquilenet.fr ([2a01:474::1]:55825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8B8X-00087k-JI for guile-user@gnu.org; Mon, 05 Jan 2015 12:08:13 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 45DF63F5F; Mon, 5 Jan 2015 18:08:12 +0100 (CET) Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jy-DtFWxiIct; Mon, 5 Jan 2015 18:08:12 +0100 (CET) Original-Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0E71DA39; Mon, 5 Jan 2015 18:08:11 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?utf-8?Q?Niv=C3=B4se?= an 223 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Antonio Ceballos's message of "Sun, 4 Jan 2015 14:47:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:474::1 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11705 Archived-At: Hi, I think the question to ask is what you want to enable with Guile. Probably you=E2=80=99ll want to export some of the functions and data types= of Chess to Scheme, which can be done using the libguile C interface. Another question is whether you want to embed Guile into Chess, or whether you want to extend Guile with Chess. In the latter case, Chess would essentially be a Scheme library. This is best because it opens for more possibilities, and makes it easier to work with the Scheme API of Chess. More info on this trade-off at . Since you want Guile to be an optional dependency, embedding may be more appropriate, though. HTH, Ludo=E2=80=99.