From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Hans_=C3=85berg?= Newsgroups: gmane.lisp.guile.user Subject: Re: C++ Foreign Function Interface Date: Fri, 11 Mar 2016 18:09:47 +0100 Message-ID: References: <87a8m6nqm4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1457716217 7169 80.91.229.3 (11 Mar 2016 17:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 17:10:17 +0000 (UTC) Cc: guile-user@gnu.org To: Arun Isaac Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Mar 11 18:10:06 2016 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 1aeQZh-0000R3-KH for guile-user@m.gmane.org; Fri, 11 Mar 2016 18:10:05 +0100 Original-Received: from localhost ([::1]:56775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQZg-0004kg-TO for guile-user@m.gmane.org; Fri, 11 Mar 2016 12:10:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQZX-0004kW-WD for guile-user@gnu.org; Fri, 11 Mar 2016 12:09:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeQZU-0006d0-QN for guile-user@gnu.org; Fri, 11 Mar 2016 12:09:55 -0500 Original-Received: from v-smtpout2.han.skanova.net ([81.236.60.155]:50795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeQZU-0006cq-Jf for guile-user@gnu.org; Fri, 11 Mar 2016 12:09:52 -0500 Original-Received: from [10.0.1.4] ([217.208.169.99]) by cmsmtp with SMTP id eQZQa9W8u1jYHeQZQakwwK; Fri, 11 Mar 2016 18:09:50 +0100 In-Reply-To: <87a8m6nqm4.fsf@gmail.com> X-Mailer: Apple Mail (2.3124) X-CMAE-Envelope: MS4wfDFQ/T1fbyR8Ml5XhJiSlkmH+iFJ1ipt/r6CIwXDYAIebBiLO9EvSKIrSN6l01NU02TCL20iv1dbtZKoII2tC+C1+ea/OIp6u2UcYtsVNqIzxGfFYpwC 8BILwmRB90jE5L1I7bx8VOayckU9nd9Y6QaXBV+D+HT7yv2kPojAJQQBDjVLv86WI8XaYame7O+5OZI4ASOnpy9lyW4Bb5LlZkU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 81.236.60.155 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:12470 Archived-At: > On 10 Mar 2016, at 19:18, Arun Isaac = wrote: > Is there any foreign function interface for C++ shared libraries in > Guile? Can I somehow use the C FFI for this? Is there any = documentation > for this? You will have to write it yourself. It has been discussed before on this = list [1]. I wrote a sample [2], though, Guile, being dynamically typed, = does not have a C++ distinction statically typed between integers and = rational numbers. 1. https://lists.gnu.org/archive/html/guile-user/2015-01/msg00016.html 2. = https://secure2.storegate.com/Shares/Home.aspx?ShareID=3D56659ce2-127e-455= e-ba1f-e6cbc82ba973