From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: [ffi] Re: as for Calc and the math library Date: Wed, 14 Aug 2024 11:36:32 +0530 Message-ID: References: <864j7qhup6.fsf@gnu.org> <87a5hi0yts.fsf@valhala.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27867"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:/iXqVa61qY1XbDDQvtJSnJXeFuY= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 14 08:31:26 2024 Return-path: Envelope-to: ged-emacs-devel@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 1se7Xa-00075R-5F for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Aug 2024 08:31:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1se7Wy-00006E-Mb; Wed, 14 Aug 2024 02:30:48 -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 1se7A9-0001tJ-PH for emacs-devel@gnu.org; Wed, 14 Aug 2024 02:07:13 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1se7A8-0007IX-3K for emacs-devel@gnu.org; Wed, 14 Aug 2024 02:07:13 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1se7A4-0003qf-CS for emacs-devel@gnu.org; Wed, 14 Aug 2024 08:07:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 14 Aug 2024 02:30:46 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322733 Archived-At: * Madhu : Wrote on Wed, 14 Aug 2024 10:59:23 +0530: > * Nicolas Martyanoff <87a5hi0yts.fsf@valhala.localdomain> : > Wrote on Mon, 12 Aug 2024 13:23:27 +0200: > >> Eli Zaretskii writes: >> >>>> From: arthur miller Date: Mon, 12 Aug 2024 >>>> 05:30:08 +0000 Even better, given people proper FFI so they can >>>> import and use any of the tens or hundreds of quality math >>>> libraries available. I forgot to mention, this was also already possbible and being done For example (also has examples using emacs-ffi) https://github.com/jkitchin/emacs-modules >>> Not going to happen, and you know it. >>a Naïve question, why? I had this problem not so long ago because I >>wanted to bind libpq, and I had to abandon the whole idea because >>dealing with dynamic modules was way too inconvenient. >> Having something similar to Common Lisp FFIs would make it trivial. > There is a workable promising start, with a single lisp module from > Tromey: > https://github.com/tromey/emacs-ffi > I have a clone on gh (user enometh), but I haven't found the time to > polish it up enough to post