From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.devel Subject: Re: Consideration for Rust contributions in Emacs Date: Sun, 22 Jan 2023 12:05:51 +0100 Message-ID: References: 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="39791"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: emacs-devel@gnu.org To: Troy Hinckley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 22 12:06:48 2023 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 1pJYBT-000AAB-GV for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Jan 2023 12:06:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJYAr-0004G4-71; Sun, 22 Jan 2023 06:06:09 -0500 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 1pJYAp-0004Fv-Li for emacs-devel@gnu.org; Sun, 22 Jan 2023 06:06:07 -0500 Original-Received: from sonic308-17.consmr.mail.ir2.yahoo.com ([77.238.178.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJYAl-000800-35 for emacs-devel@gnu.org; Sun, 22 Jan 2023 06:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1674385557; bh=RZRu3D8IPAG7zLV5FAKvMsjXAautT3MYwJeEQdzYjU0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=lwhMx+ysRGLfFzLxm/2re82iKJKtn8ZdwGTKJs/VXILt6jp3R6GAv5x+5aVjBJGmmA2QVhVG7sNsrFjv02PUydddVg6eaNyeDS8aaPzLA7SoiTZFRYU4yjrZAGVnFBGouTsNfCIOU7+sicl0r6GIdspbM/X4OSYg/BEfedlGMsAChM85/rVpbmnjT72Z5bNx1Dxkl7QwzWsLmuRTdUXlzMTHMtw3nNjx9E8X/reN5Cg9PtuvcVI3NjSuHyvanxn2zUdVEI/rclOZQIljqN4DmfLUnnLn3ICV3U/JwE2ywYeEjFo3+BkeNIbV+OZUL1kvJlcVDzuUHnZ4WB5WOc3lSA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674385557; bh=Zd4sv7egOYvdbw3pwRZqPDzQV0Q1p/69u43PSWfDJFI=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=gu+ShFUs9qfUMgwaDGgF5oTrU5A2UrEP4w2jU0FkyWojVMqjdvyKOjtI0Hl32giFNHIOgD8ix6TKGcjFmK7V2jLoItlrVTayVnUjAN5mgRiyp+PD0f8uvZpugFWpbNmrCb20czU4C9nle49jBTFHnbNr6+u6amyzA93EesGMEtFBjElsn+tjJAbUp/DrqRtYsoP0ELmZFsMypZmtMf/0TFdID2f0mzGNJO5samSfi5Jwooti9kqygi+okFtLqt8Vtosd2jShfFpehlszbxAS0wAJaecnlVlE3g2B2mNqJ6vMqxzFDNoa6vYr0629QjTQaV8P77MC6ivK8dD2io8emA== X-YMail-OSG: .Oip0PgVM1n8R.Xz5E1PSsxQzuXn69ZHbdLbtdOrg.pfmX3BINKGAnsA0ShDB1F qAjZY0vlQehemRIljzmeZxD0jO.dY4WxHKAAY_lk4mbWzr.ziur5pjhovBN65qgW5vZaeuQZPm1r sar0rZ7Nn5jOwxoI7YE2.engTM0v.6k5fjEYxorQEJ6MbOT4B6V2Edejenwf7yf_zZjZc6cflegF Ux7G2UfcPFHBGE5SNSRD4Qf2VupN0UhZXWDx1cahcerQFlsjorNFrEG5qmLK2NSOKiXlUU.uxFR_ 2w1lUyK6twi1DBNZh7k3yPN15SWLEQkn3BsSky.q.5J0u1vENYg5KSiJav6dyptJ7Ecf8ONBlykK e4PdJjAKBZXFaKCp9DLPR_eiUmXGraLyJEpuEwTXq5JQUygFEj02pVrCAutrpoYgIzqa5eojkwBj 88SRnwwZTtLGaVlxIb0AXN78xvQB2mtbQk9zYZ3xYXa20q.aARPS8dws9ckx1O2d05GYCuAjCbDA TE4UcpYFgBWAQfixZ3tOvcgWZ9kGEZvKn9lh3g3sXghRqrhbvEg9t5Crm9ywsFwweEqKymcY6I1Y yoAn8BFR5rkxXxbYI4NzRqFu8GR_bsj8TEczTMUoX7TMkKMd1EqEewBHjQurzZzthpYF7ZxPByxR eU0h2_xHSRNAtzZjrfRdE_fgjfIXccMMWz8EjIFq3oBI6KHypSwTju3iEbQyZ_GNtptzHwPFYhEm 7H_8s94KOmTQRjcKlVtzQBSg_J9ZJ7V8irLRdQpgN.OkyhkMV7q_.QAc4FNkXbOSDOaVVgCaJJpH mC4Ynw0l4fX3UEumVkOFswRMuJ_qntOcuh4RAukD7f X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Sun, 22 Jan 2023 11:05:57 +0000 Original-Received: by hermes--production-ir2-6bd6c4cd5f-449cq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ae7f853fe2b5d8baab1f95de55683e29; Sun, 22 Jan 2023 11:05:52 +0000 (UTC) In-Reply-To: (Troy Hinckley's message of "Sat, 21 Jan 2023 15:48:28 -0700") X-Mailer: WebService/1.1.21096 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=77.238.178.145; envelope-from=mardani29@yahoo.es; helo=sonic308-17.consmr.mail.ir2.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:302600 Archived-At: Troy Hinckley writes: > I've had a discussion with several people recently about future > possibilities of Rust in GNU Emacs core. I could not find an answer to > this on the archives, so if it has been resolved previously please > point me to that thread. > > Let assume for the sake of this discussion that there was a some Rust > code that someone wanted to contribute and the maintainers wanted the > functionality it provided. What would be the consideration/objections? > Here are few that we came up with: > > 1. The Rust tool-chain is Apache licensed and so is LLVM. There is work o= n a=C2=A0GCC backend, but it is not production ready yet. Would Emacs allow= the current Rust tool-chain? > 2. LLVM (and hence Rust) support fewer targets than GCC. Are there certai= n target that LLVM doesn=E2=80=99t support that are important to Emacs? > 3. Many Rust libraries (crates) are MIT and/or Apache licensed. Do all Li= braries used by GNU Emacs need to be GPL or is it sufficient to have a GPL = compatible license? > 4. How sizable of a contribution would be needed for the maintainers > to accept Rust in Emacs core? Would auxiliary functionality be > considered (such as Rust in the Linux Kernel) or would it need to have > major impact. > 5. Concerns over having more than one core language in GNU Emacs. > 6. Concerns over using such a new language. Rust still changes at a fast = pace relative to C and it=E2=80=99s future is less certain then a more esta= blished language. > 7. Concerns over support for Rust being a distraction from other developm= ent work. > 8. I assume that FSF copyright would still be a requirement. I just bring= it up so no one else has to. > The first question to ask is if and how Rust would make the Emacs codebase better. Do you have any concrete examples of that? I don't think that the alleged benefits of Rust, even when used in small parts of new functionality, would outweigh the costs of concerns 5, 6, and 7, at least. This answer is not exclusive to Rust. I don't see any clear net benefit from using another language along with C (even C++) in Emacs core.