From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: Sv: Emacs ffi Date: Mon, 19 Aug 2024 12:38:59 +0000 Message-ID: References: <86jzgjfwqp.fsf@gnu.org> <87sev78arx.fsf@gmail.com> <86le0z89u1.fsf@gnu.org> <87o75v87n1.fsf@gmail.com> <86frr786k7.fsf@gnu.org> <86frr66s0o.fsf@gnu.org> <86a5hb65tv.fsf@gnu.org> <86cym7w7bh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DU2PR02MB1010992F2EB8DF10B5F87F51D968C2DU2PR02MB10109eu_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Christopher Dimech , Eli Zaretskii , "acorallo@gnu.org" , "suhailsingh247@gmail.com" , "gerd.moellmann@gmail.com" , "nicolas@n16f.net" , "emacs-devel@gnu.org" To: Joel Reicher , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 19 14:45:05 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 1sg1ku-0002ex-BH for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Aug 2024 14:45:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sg1kS-0006Y4-9r; Mon, 19 Aug 2024 08:44:36 -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 1sg1fh-00064V-M4 for emacs-devel@gnu.org; Mon, 19 Aug 2024 08:39:41 -0400 Original-Received: from mail-am6eur05olkn2104.outbound.protection.outlook.com ([40.92.91.104] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg1ff-0002P7-K4; Mon, 19 Aug 2024 08:39:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nwXT47Oi4KDouezJTFEyRNQWTQhY3grH/x4I1jYYzBBINfoIDfy0QM8YtntjcLdTSMXWa3of7wzJw+g3rgX3ZOpiMhApG90BFDawBAZ/HYEn1UOz3Tod7Sf4xeSHnv9GG32Qyq9YUkkAS7HEiusc25FYrfjV0ZqeVUFdnk1pEUSAsE0rYsgfTgP5pGsGhUOWegqCDsK3HKXIqIJubul3W3IXTTQqgxMvZplNyAwPzrerxgxdUDGKW5sAycXQ+zZNDzhrJsnXqcKhpFZmiumTchOvuHs/7dis2XslGodEnE693GxSVugMYKAXrcK+qVWD3qCvmHeDH+mWy+yS4o1bcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+1g56yegQiix0CIGHLsQhenZHyT4AMw0L6puBeLqIUU=; b=S2CnayzfRp7lHbC00G6X+SEiSDRLkP8yKTcL+Y7dp/r9tpT0AIK1HqU6IUjdRKSyyPKVsUyV+ZkhPBkQ1IK8FIJkO6pSaeyA8X6tuzgJjzditRXH1EZG9x435IqT07kWe5pNk8LY54JCQOsXIlEwoazA6DVkLMsQwhPo2O7BX385K7SRACltxKLeBLbDiu1FTjsPwyXetHltTpCV4zAZkwShe0a7qaHwpKhTNrL73h1a8sk5JX3XoPhxx7v7/K2vZ/I8pZhzekuhQu4TjkVo51TdDsLzMPpnytdTxazncS+rxQFSWMcoE0X8Y0eEVG3+ilwq/cKU+fKbzODRn4Ogag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+1g56yegQiix0CIGHLsQhenZHyT4AMw0L6puBeLqIUU=; b=DkYxLWXGENXRYhiWP+waWJpPj9K3A4+RtUVZzvf50gzubGbNe8HPdLyEkNNbEUNOwl3wpSZIbZiBmSYUD/TyZOokyT3w6sEBvyasCodw87vlB401h187DPGWqyVNYadF7G9vc+aQrA8D3w8yLh17jQdZMP5pXz4IJeIZNlqAVRIthq09Un2F17Rn6QGTZx6EfCiWvrHMh6N1i513mjOi+FYrVWkpMny+FTAJJtZBSR5/vLPztaBgquONxL2a+CMBN8SzAbgsHR4GSleiPW/3L5S5N//l0Y40xWl1oySF0bYl3wWheiRtbOIxvnuMkOz1lzZJ76cGMyXZ2UPlMhdR1g== Original-Received: from DU2PR02MB10109.eurprd02.prod.outlook.com (2603:10a6:10:497::14) by PA4PR02MB6576.eurprd02.prod.outlook.com (2603:10a6:102:f9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.20; Mon, 19 Aug 2024 12:38:59 +0000 Original-Received: from DU2PR02MB10109.eurprd02.prod.outlook.com ([fe80::f3c9:d4cb:290:d487]) by DU2PR02MB10109.eurprd02.prod.outlook.com ([fe80::f3c9:d4cb:290:d487%4]) with mapi id 15.20.7875.019; Mon, 19 Aug 2024 12:38:59 +0000 Thread-Topic: Emacs ffi Thread-Index: AQHa71JCNpDm2UdEFkuF7yZa8tKq7rIozksAgAGC8CmAABS7AIAAkr29gAAx74CAAEeKAIAAEydegAMFTGc= In-Reply-To: <86cym7w7bh.fsf@gmail.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [gTqSz8Iol5xt2FkLLq0fFZMNJPtgvd9t] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU2PR02MB10109:EE_|PA4PR02MB6576:EE_ x-ms-office365-filtering-correlation-id: fe64bd1c-4d49-450a-257a-08dcc04be61c x-microsoft-antispam: BCL:0; ARA:14566002|19110799003|15030799003|15080799003|8060799006|461199028|3412199025|440099028|102099032; x-microsoft-antispam-message-info: hhN9meJ5Dc8uV0iNYG+HlhvzciaG6CbbZU7HcttBOe546WKjLhHAMeJioDWsNoRJbr+IvGQ1bfEQH06pbIH/W95C/hIXr2Grt5zoei3YjLWchQLN3s/IT5YJuM36Acafilu5x70sHuSk+NhY22GCQ8sFYNLcrg+UKgVEWCmB/nHS4Uwdj9nhMxUyPx4pJSBBh0qdsnT4Bv3Q1aQWWCvtEn72ZX7nPPmx4bnIIytM5+Xw78TLM8fHHwGgTc55dfsxA8FYO/xeP+yXAtJzDM/xsg0KDWEIzymrVaTQ6brp1Zm4obrkUJsHrqK/fUUZV7o/ghSfOrfVF/Wdn7DEBj59cv9c/vcqcKfU0YcaceCPz9I9kEWJ2lesmSzCRivkR6f3TolpqaMc3XfHXGSCTrlUqKm9G8JysyQEq+gNANO1j/f58MmdsBf8sB+dMK1mab7kdCHfJ4qXnGd5bIz/4RVzNJLpek2u8oh9iZE5R7AydLRFDNtagL8pNgOMKuLfnomcbR+JlYNJXSH4jc4yi0qxCcA9MpKCzQCtOplmxlZjRv8SuXs4ASIeKaTNvLoFZdZlFNdXp+vcwxvcR+qlp4LbgrYOQ+/VUI8Q1C+y5APBznaZu1xLQGbzQmYaEzHbgeFvE617hgKyh6mevFSNKX4D4zTMa74kYdowod8Mxa2ZmnYYCC/hUUfTRRUpa0cK5JAzEZ7ZjqFsy4gTCdpZ1wJhVg== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Tjha6GfOY/C7AkyEUwbLgD1XtVFaX14M5WYKRTakLZ+BXvEK65EMY8RZW7?= =?iso-8859-1?Q?mSCfzr1+h4yBnXJBx2JI2ZBVIG4dJyTNicpxINr3kg74k41ZmIOhUxpeeO?= =?iso-8859-1?Q?fpoEWus3OskIwpTpPaIKGgxKutGiWOnvm1N7oiNFuq/GFyc/u8o6vI8ULt?= =?iso-8859-1?Q?iZIkRDm3Q0HYOEGZYG7nqKfes9ZP7Fd+TNhrE34qLYq60u+F4n+6zIS42o?= =?iso-8859-1?Q?WViRjp5pPFiKyl2s7TfLds7VC83fkfrOQlKXmOdy0IzstMrWdHjvL5XmDU?= =?iso-8859-1?Q?iKzWJO7WQ8dWQ6uTUf+j37EAfBj29Z5ILXEDK4yTMi6B9oYmADPwxV5spJ?= =?iso-8859-1?Q?tq8dorZFdLuN9ZSFRWPsaZynOJJL4hOw8v/8/3PA5yyk03Fhq7vc2k4HKb?= =?iso-8859-1?Q?yFv7CLOpFGRe0LFW9016Yz+o/xEai6rdjFNq+oSSI9C0Y9qGMMZRKwPr1/?= =?iso-8859-1?Q?Hcxl6lCUjqampgaSo9G7k21XP1v2FcEVeC5o3dHmEc0JYRXs68aekSn69N?= =?iso-8859-1?Q?qhtqhxXlNRDqPygwo45OnQvERUTSzwiUVPHG7vfIzjvpv3Rk0Qvf31AYVX?= =?iso-8859-1?Q?EJEPYLunWYp3L5+IFj3ypiuUZK0sL16ceKSs1X0NXltifiMcYQhTU7nzIc?= =?iso-8859-1?Q? X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-bcc80.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU2PR02MB10109.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: fe64bd1c-4d49-450a-257a-08dcc04be61c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2024 12:38:59.5155 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR02MB6576 Received-SPF: pass client-ip=40.92.91.104; envelope-from=arthur.miller@live.com; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 19 Aug 2024 08:44:33 -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:322916 Archived-At: --_000_DU2PR02MB1010992F2EB8DF10B5F87F51D968C2DU2PR02MB10109eu_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Joel Reicher writes: > Stefan Kangas writes: > >> Christopher Dimech writes: >> >>> Incorporating a mathematical library into Emacs, based on Calc, is not = just >>> feasible but highly beneficial. >> >> I think we all agree that a general purpose mathematical library would b= e >> interesting. The point is that the specifics of how it is implemented >> matters. > > "Interesting" is different to "useful", and I think this is why the > implementation is unclear, because the requirements of a library can only= be > made clear by a multiplicity of consumers. Exactly the reason I suggested FFI in the very first place. "Mathematics" a= re a broad term. Someone will want a linear algebra library, someone will want symbolic manipulations, statistics, analysis, theorem provers and so on. Th= ere are lots of mathematical libraries that could be useful to Emacs users in different areas, since Emacs is used in some many different places by diffe= rent people. > What packages, other than Calc, would make use of such a library? (That's= not > rhetorical; I don't pretend to have an overview of all such packages.) > >> If you think basing it on Calc is the best way forward, then I invite yo= u to >> get started. > > It needs to be based on potential consumers. If Calc is the only consumer= , then > a library does not make sense yet. But that's not to say an FFI wouldn't = improve > Calc's implementation. If that's the issue, then it's a discussion that d= iffers > from one about library. As an alternative, it would be interesing to have everything in Lisp, no do= ubt about that one. Imagine if Macsyma was available for Elisp. Maxima is the G= PL alternative, but it is all very uncommon CommonLisp, unfortunately. Perhaps Calc could be brought to those levels, but I believe the amount of = the work and doubling on the implementation of something that already exists in= form of loadable C libraries, would not be trivial. ________________________________ Fr=E5n: Joel Reicher Skickat: den 17 augusti 2024 16:30 Till: Stefan Kangas Kopia: Christopher Dimech ; Eli Zaretskii ; a= corallo@gnu.org ; suhailsingh247@gmail.com ; gerd.moellmann@gmail.com ; nicolas@= n16f.net ; arthur.miller@live.com ; emacs-devel@gnu.org =C4mne: Re: Emacs ffi Stefan Kangas writes: > Christopher Dimech writes: > >> Incorporating a mathematical library into Emacs, based on Calc, >> is not just feasible but highly beneficial. > > I think we all agree that a general purpose mathematical library > would be interesting. The point is that the specifics of how it > is implemented matters. "Interesting" is different to "useful", and I think this is why the implementation is unclear, because the requirements of a library can only be made clear by a multiplicity of consumers. What packages, other than Calc, would make use of such a library? (That's not rhetorical; I don't pretend to have an overview of all such packages.) > If you think basing it on Calc is the best way forward, then I > invite you to get started. It needs to be based on potential consumers. If Calc is the only consumer, then a library does not make sense yet. But that's not to say an FFI wouldn't improve Calc's implementation. If that's the issue, then it's a discussion that differs from one about library. Regards, - Joel --_000_DU2PR02MB1010992F2EB8DF10B5F87F51D968C2DU2PR02MB10109eu_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Joel Reicher <joel.reicher@gmail.com> writes:

> Stefan Kangas <stefankangas@gmail.com> writes:
>
>> Christopher Dimech <dimech@gmx.com> writes:
>>
>>> Incorporating a mathematical library into Emacs, based on Calc= , is not just
>>> feasible but highly beneficial.
>>
>> I think we all agree that a general purpose mathematical library w= ould be
>> interesting.  The point is that the specifics of how it is im= plemented
>> matters.
>
> "Interesting" is different to "useful", and I thin= k this is why the
> implementation is unclear, because the requirements of a library can o= nly be
> made clear by a multiplicity of consumers.

Exactly the reason I suggested FFI in the very first place. "Mathemati= cs" are a
broad term. Someone will want a linear algebra library, someone will want
symbolic manipulations, statistics, analysis, theorem provers and so on. Th= ere
are lots of mathematical libraries that could be useful to Emacs users in
different areas, since Emacs is used in some many different places by diffe= rent
people.

> What packages, other than Calc, would make use of such a library? (Tha= t's not
> rhetorical; I don't pretend to have an overview of all such packages.)=
>
>> If you think basing it on Calc is the best way forward, then I inv= ite you to
>> get started.
>
> It needs to be based on potential consumers. If Calc is the only consu= mer, then
> a library does not make sense yet. But that's not to say an FFI wouldn= 't improve
> Calc's implementation. If that's the issue, then it's a discussion tha= t differs
> from one about library.

As an alternative, it would be interesing to have everything in Lisp, no do= ubt
about that one. Imagine if Macsyma was available for Elisp. Maxima is the G= PL
alternative, but it is all very uncommon CommonLisp, unfortunately.

Perhaps Calc could be brought to those levels, but I believe the amount of = the
work and doubling on the implementation of something that already exists in= form
of loadable C libraries, would not be trivial.

Fr=E5n: Joel Reicher <jo= el.reicher@gmail.com>
Skickat: den 17 augusti 2024 16:30
Till: Stefan Kangas <stefankangas@gmail.com>
Kopia: Christopher Dimech <dimech@gmx.com>; Eli Zaretskii <= eliz@gnu.org>; acorallo@gnu.org <acorallo@gnu.org>; suhailsingh247= @gmail.com <suhailsingh247@gmail.com>; gerd.moellmann@gmail.com <g= erd.moellmann@gmail.com>; nicolas@n16f.net <nicolas@n16f.net>; arthur.miller@live.com <arthur.miller@live.com>; emacs-devel@gnu.org= <emacs-devel@gnu.org>
=C4mne: Re: Emacs ffi
 
Stefan Kangas <stefankangas@gmail.com> write= s:

> Christopher Dimech <dimech@gmx.com> writes:
>
>> Incorporating a mathematical library into Emacs, based on Calc, >> is not just feasible but highly beneficial.
>
> I think we all agree that a general purpose mathematical library
> would be interesting.  The point is that the specifics of how it =
> is implemented matters.

"Interesting" is different to "useful", and I think thi= s is why
the implementation is unclear, because the requirements of a
library can only be made clear by a multiplicity of consumers.

What packages, other than Calc, would make use of such a library?
(That's not rhetorical; I don't pretend to have an overview of all
such packages.)

> If you think basing it on Calc is the best way forward, then I
> invite you to get started.

It needs to be based on potential consumers. If Calc is the only
consumer, then a library does not make sense yet.

But that's not to say an FFI wouldn't improve Calc's
implementation. If that's the issue, then it's a discussion that
differs from one about library.

Regards,

        - Joel
--_000_DU2PR02MB1010992F2EB8DF10B5F87F51D968C2DU2PR02MB10109eu_--