From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fernando Oleo Blanco Newsgroups: gmane.emacs.devel Subject: Re: Ada-mode to be abandoned? Date: Sun, 07 Jan 2024 16:29:42 +0000 Message-ID: References: <87a5phiap4.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="23058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake To: Philip Kaludercic , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 07 17:31:18 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 1rMW3K-0005gl-Cd for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jan 2024 17:31:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMW2V-00083g-Jg; Sun, 07 Jan 2024 11:30:19 -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 1rMW2R-000833-No for emacs-devel@gnu.org; Sun, 07 Jan 2024 11:30:17 -0500 Original-Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMW2N-0001o2-Mc for emacs-devel@gnu.org; Sun, 07 Jan 2024 11:30:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irvise.xyz; s=protonmail; t=1704645002; x=1704904202; bh=UCTj4BO4DdULqu8lvDQhrmUMX/DrgN4bygjhCv3exr8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=VJD5GPOiVYtAmkpNNpogs0+p1xmp9s0NynkvlAifKisdTKi3qnWijFpiweFk66w2x XplNzRHJLc+PY6wGEF4i3QDJ7ALf19Y3sRhj0UQOybICg+tiCUjizqnvPHzS1jhG1y jKdThKNj4KCriwMIX5wZokyyy7aj4zHQF1Dft6xWt6H/ebHis6I4TBQobtTj6YbyKK vG4i9d7uTheTwBRUaUs9zLgC5IDUGHUJGptdsDOuIzWBVR87mrqGxvT6PXCloqJven PnQXu0h70GQlslYU4qzEKg8usAMB6ADWKaQ57SxSe+UWxgyTWI42wPNhBhtsbN6wZe AcDsfjt1DdAgQ== In-Reply-To: <87a5phiap4.fsf@posteo.net> Feedback-ID: 37218277:user:proton Received-SPF: pass client-ip=185.70.43.17; envelope-from=irvise_ml@irvise.xyz; helo=mail-4317.proton.ch X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, 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-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:314696 Archived-At: Hi Philip and the larger Emacs community, thank you for bringing this topic up. Stephen also posted this message=20 to Ada-Lang.io [1], which have become sort of a home for the Adaists.=20 Sadly nobody there seemed to be willing to take over maintainership.=20 Nonetheless, I would like to say that there are still a few of us that=20 do use this mode and we are glad that we have it :) If I am allowed to express my personal opinion here... ada-mode, as it currently stands, requires compiling some Ada code in=20 order for it to work. It comes with some helper scripts for that task.=20 However, the experience to get it working is not as nice as with other=20 packages due to the compilation step. One cannot simply install it and=20 just M-x ada-mode... This nuisance is compounded by the fact that=20 GNAT/GCC-Ada tends to break old code (for the better, as it becomes even=20 more reliable) and ada-mode sometimes requires modern compilers to work.=20 It also has some external dependencies that are installed with the=20 installer script, which, imho, is not that nice... I do not want the paragraph above to be understood as a criticism to the=20 current state of things. We have what we have and that is great, but I=20 want to point out major improvement points as I see them. I personally would prefer to see a tree-sitter/pure-elisp=20 implementation, which could make the maintenance burden smaller and=20 improve the user experience as Stephen points out in his list. Then, as=20 he also says, we have an LSP nowdays, which is nice; but a dedicated=20 ada-mode is still very important. If anybody needs help testing ada-mode, I am willing to do so as I have=20 done a couple of times. Best regards, Fernando Oleo Blanco [1] https://forum.ada-lang.io/t/gnu-emacs-ada-mode-passing-the-torch/518 P.S: I am not volunteering as my time and knowledge of the subject are=20 very limited... On 1/7/24 13:34, Philip Kaludercic wrote: >=20 > I recently came across this message on the ada-mode-users' mailing list: >=20 > https://lists.nongnu.org/archive/html/ada-mode-users/2023-11/msg00000.= html >=20 > Stephen (the maintainer, in the CC's) indicates that he would like to > retire from maintenance, which might mean that the package could become > abandon-ware. >=20 > One note he makes is that the current implementation could be > simplified, by just using tree-sitter, instead of the approach that > makes use of a custom parser: >=20 > --8<---------------cut here---------------start------------->8--- > 2) Drop the wisitoken parser generator and runtime, use tree-sitter > instead. This requires writing a wrapper for tree-sitter to match > the wisitoken syntax-tree API; then the current wisi indentation > code can be used. >=20 > This maintains all of the ada-mode features, while reducing the > maintenance burden significantly. >=20 > I believe the tree-sitter error correction is less powerful than > wisitoken, but it would be interesting to see if that matters in > practice. > --8<---------------cut here---------------end--------------->8--- >=20 > What I am wondering, is if this simplification were to take place, if it > would be possible to add ada-mode (or ada-ts-mode in that case) back to > the core? I would be glad to help out, since I've been interested in > working with Ada for a while but never got it to work, I have just been > struggling with understanding how `treesit-font-lock-rules' is supposed > to be used, so some help would be appreciated. >=20 > -- > Philip Kaludercic >=20