From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Adding a generic mathematical library Date: Tue, 16 Jul 2024 17:47:52 +0000 Message-ID: <87le21qldj.fsf_-_@posteo.net> References: <8734o9sdig.fsf@posteo.net> <87wmllqq66.fsf@posteo.net> <87plrdqnhc.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Sergey Kostyaev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 16 19:48:45 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 1sTmI8-00007M-Rz for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Jul 2024 19:48:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTmHS-000270-Ry; Tue, 16 Jul 2024 13:48:02 -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 1sTmHQ-00025C-8S for emacs-devel@gnu.org; Tue, 16 Jul 2024 13:48:00 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTmHO-0004to-CC for emacs-devel@gnu.org; Tue, 16 Jul 2024 13:48:00 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3EA94240027 for ; Tue, 16 Jul 2024 19:47:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721152073; bh=yYP+mqk0HKKGXN1Kpi/sVdZEmeisodCK7e9boD6AQyA=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:From; b=OrpiRALG5N8M7N1jzN3HUorFAuy+WUtrsva2eQ/m0Bu3ACtpJsLeBhKuijvax2zjs qcKUeJh5z/UOfZbJVg6M99Dz9OFSDN2CI5qbcKWtEVdcd0+hc95Ol69Bd6YQEiBFBh VeJy/n6Ag7DsTz0jOgCn3moCm+r4/4Q5nbSrTqOq9khWEds0JI8tpwVQ0o7uaEgU1N 80Xh+RSLw2r2DoC2lqVal/XznCg7d7tHUcYlex7GwHXSEywLIVn5SB8oJYwLcH3a+t 9bftMiWkpuw71SHT5XuhykmXR8Fdzb+UxTgXRXmNdoskgp9DHtGgvp9qZ+QnLJReNs X4XSlmBogov2w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WNmkJ4XHmz9rxK; Tue, 16 Jul 2024 19:47:52 +0200 (CEST) In-Reply-To: <87plrdqnhc.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 16 Jul 2024 17:02:23 +0000") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:321728 Archived-At: Philip Kaludercic writes: > Sergey Kostyaev writes: > >>> 16 =D0=B8=D1=8E=D0=BB=D1=8F 2024=E2=80=AF=D0=B3., =D0=B2 23:04, Philip = Kaludercic =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(= =D0=B0): >>>=20 >>> To my knowledge, there is no maths package in the core or ELPA (someone >>> correct me if I am wrong). There is calc, but IIRC it wasn't that nice >>> to use from an Elisp caller. I could imagine that just pulling out the >>> definition you gave here, renaming them from "elisa-foo" to "foo" would >>> be enough for a first daft that could be added to the core, and then to >>> ELPA as a core package. >> >> What should be the first step? > > Someone=E2=84=A2 should propose a concrete suggestion. I've rename the thread to get some more attention, and also wanted to mention, that if we do so, I think putting some thought into the design wouldn't be bad. Including an infix-notation macro and perhaps even overloaded operator support ala APL would be a nice thing to have. We'd have to weigh the cost of this kind of flexibility with performance, unless someone were to write a specialised byte-compiler. >> Best regards, >> Sergey Kostyaev >> --=20 Philip Kaludercic on peregrine