From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: Matrix or array operations library Date: Thu, 27 Dec 2018 06:38:45 -0800 Message-ID: <20181227143844.GA21970@joshua.dnsalias.com> References: <0124a907-fd07-21dc-ba70-49a7ce4daf29@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1545922344 10362 195.159.176.226 (27 Dec 2018 14:52:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 14:52:24 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 27 15:52:20 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcX1H-0002af-Qi for guile-user@m.gmane.org; Thu, 27 Dec 2018 15:52:19 +0100 Original-Received: from localhost ([127.0.0.1]:53449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcX3O-0007Dk-B0 for guile-user@m.gmane.org; Thu, 27 Dec 2018 09:54:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcWoO-000350-6f for guile-user@gnu.org; Thu, 27 Dec 2018 09:39:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcWoK-0006ot-7T for guile-user@gnu.org; Thu, 27 Dec 2018 09:39:00 -0500 Original-Received: from sonic307-9.consmr.mail.gq1.yahoo.com ([98.137.64.33]:34722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcWoJ-0006n0-VV for guile-user@gnu.org; Thu, 27 Dec 2018 09:38:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1545921533; bh=HJybFiSdr4oXsOFcLKox8nk5QDZHFuiL6hD7smKTr40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=HRqK0yoqXnQ0hJ6pV0hIZx1T7TlY2UmW0Kb66I5iPip10CMjX1gzwWCYxmzYLetSxVzfSsGzCXMvK+XhcFJH7snsTDwb2CCs+mx4s4ZeFqcpHuTqUFvuQJSGkeVkuunHIT8rTcd0g1KmzBMpRVZvC5XXuKowNpU4LaHl2dMUWb0QIFkIgTHADFgAnls5Yz8tKShMTl2WS1QpFy7HvxL38o0yIJzYZ6Y5VQohwQDOuIRrBYttAYGmgk9HQ6GbihLdMLgpiW4qsBAkT7ExlnS3meBQAy6QTB9nmBESpE6YoZZef0GEfLSc9kyXVkYtbkkK1CUBqiJqQ9bm37skWRR10w== X-YMail-OSG: HP.sLSoVM1ld6HMcrLSY.zslOkpY1xSSOHODz24X.rBL.sPf5nLL1F6nsN777MU 5vceZLdw6AQ76jWtAyq5HGrhsbhgm0YJyoItYJwdtDl0.JQs8w0GBJ9nVh3oTLIZEJg9fN586h12 jn6J4NCmujh.83mjkhi4hbLoBnj552og1.vNuGwsAOSXtCCT_yByayCGOXIdSmsFBgMGhfbpWhvD 7Gf2jFA3SW_E8F1K7xVrOqRiVf69QvcrljzuYy_uu.z64Vn0eVkiMFIj2NU0GwxLfGUAg2qbiQ9B L95ca2fBud77pA2c43IZLa0DGja.eWqn6FfDOHWAHYt7Nodsr.qQFpuQIniBC9.mpH9yQ_n_isKe _gWP4IQy92BzyRclB7LNRPkhrIiG0yP142L6qDHGpvoY.Hn_1xK1rc2Seuh5Ejc7EDA7emXfAJv4 dotM_wMBhtf6fKyAzDagJ8bIxfij9Mg2ZJouAyQbLQc_rqRS64jWNYEYHr8Zbo.0p5EgL7_Ne7eU sCMIYG80ywZs6f9XZyEgsuBincFUzqwh8e38HCU4MRpISkMNjG6FNp9AxNsyFrEZkvWVE96BdSQn PfwhSS5H4wD4GFe2aZf7JdBUCu0IfHKIwv5xNJ45DjiJDT36o7.mcFEK_1mHCzhR7_S1fyQBj1V5 gy9S4QgwMwhblOl6VWnSN6iK9ZJL6IWdh9zAowAeQlJdF1DpcIuyqAX7OIXROCt7B84jubfgUj07 m0g1GNN90MScObeKOpArt9g1Qgkhean2_q_JoqlbaN5OE3MpoSJFLhJaGMytHSyBpDC_XSvuFuFH guwn0fQzJabNc64Q16FkIKkzhTBfyh8G.9.SapVUvc Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Thu, 27 Dec 2018 14:38:53 +0000 Original-Received: from 162-197-224-133.lightspeed.irvnca.sbcglobal.net (EHLO joshua.dnsalias.com) ([162.197.224.133]) by smtp406.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID cef6ccb63729949e75c6b6c00bed6399; Thu, 27 Dec 2018 14:38:51 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 98.137.64.33 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:15154 Archived-At: On Thu, Dec 27, 2018 at 06:20:10AM -0800, Matt Wette wrote: > > (Q1) Can you explain what the advantage of the method you linked to is, > > in comparison to doing something like > > https://www.gnu.org/software/guile/manual/html_node/Dynamic-FFI.html ? > > The advantage of the FFI Helper is time. It takes minutes to generate > a ffi-module and seconds to compile to Guile Scheme. It takes > significantly more time to code by hand. While coding by hand gets you > something that is probably more palatable, using the FH can cover more > ground. As someone who has spent a lot of time coding bindings by hand, I can suggest that one should always start with a tool like ffi-helper or SWIG and then patch over any rough spots in scheme. Unfortunately, some C libraries are very uncooperative and do require C bindings, but I think for most, ffi-helper and then a scheme library that cleans up the bindings is the way to begin. -Mike