unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fernando Oleo Blanco <irvise_ml@irvise.xyz>
To: Philip Kaludercic <philipk@posteo.net>, emacs-devel@gnu.org
Cc: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Ada-mode to be abandoned?
Date: Sun, 07 Jan 2024 16:29:42 +0000	[thread overview]
Message-ID: <a30233a1-041d-46df-b125-e9b4101163c7@irvise.xyz> (raw)
In-Reply-To: <87a5phiap4.fsf@posteo.net>

Hi Philip and the larger Emacs community,

thank you for bringing this topic up. Stephen also posted this message 
to Ada-Lang.io [1], which have become sort of a home for the Adaists. 
Sadly nobody there seemed to be willing to take over maintainership. 
Nonetheless, I would like to say that there are still a few of us that 
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 
order for it to work. It comes with some helper scripts for that task. 
However, the experience to get it working is not as nice as with other 
packages due to the compilation step. One cannot simply install it and 
just M-x ada-mode... This nuisance is compounded by the fact that 
GNAT/GCC-Ada tends to break old code (for the better, as it becomes even 
more reliable) and ada-mode sometimes requires modern compilers to work. 
It also has some external dependencies that are installed with the 
installer script, which, imho, is not that nice...

I do not want the paragraph above to be understood as a criticism to the 
current state of things. We have what we have and that is great, but I 
want to point out major improvement points as I see them.

I personally would prefer to see a tree-sitter/pure-elisp 
implementation, which could make the maintenance burden smaller and 
improve the user experience as Stephen points out in his list. Then, as 
he also says, we have an LSP nowdays, which is nice; but a dedicated 
ada-mode is still very important.

If anybody needs help testing ada-mode, I am willing to do so as I have 
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 
very limited...

On 1/7/24 13:34, Philip Kaludercic wrote:
> 
> I recently came across this message on the ada-mode-users' mailing list:
> 
>    https://lists.nongnu.org/archive/html/ada-mode-users/2023-11/msg00000.html
> 
> 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.
> 
> 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:
> 
> --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.
> 
>     This maintains all of the ada-mode features, while reducing the
>     maintenance burden significantly.
> 
>     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---
> 
> 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.
> 
> --
> Philip Kaludercic
> 




  parent reply	other threads:[~2024-01-07 16:29 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-07 12:34 Ada-mode to be abandoned? Philip Kaludercic
2024-01-07 14:48 ` Eli Zaretskii
2024-01-07 15:21 ` Dmitry
2024-01-07 15:25   ` Eli Zaretskii
2024-01-07 15:54     ` Dmitry
2024-01-07 16:55       ` Eli Zaretskii
2024-01-08  2:14         ` Dmitry Gutov
2024-01-08  3:36           ` Eli Zaretskii
2024-01-08 12:22             ` Eli Zaretskii
2024-01-08 12:37               ` Dmitry Gutov
2024-01-08  1:45       ` Po Lu
2024-01-07 15:34   ` Daniel Mendler via Emacs development discussions.
2024-01-07 15:45     ` Alfred M. Szmidt
2024-01-07 15:58     ` Dmitry
2024-01-07 17:52     ` Stefan Kangas
2024-01-07 16:26   ` Philip Kaludercic
2024-01-07 16:48     ` Daniel Mendler via Emacs development discussions.
2024-01-07 20:36     ` Dmitry Gutov
2024-01-07 21:02       ` Daniel Mendler via Emacs development discussions.
2024-01-07 21:27         ` Stefan Kangas
2024-01-07 22:05           ` Daniel Mendler via Emacs development discussions.
2024-01-08  3:26         ` Eli Zaretskii
2024-01-07 17:46   ` Is it better to add treesitter modes to core? Stefan Kangas
2024-01-07 21:27     ` Dmitry Gutov
2024-01-08  6:15       ` Philip Kaludercic
2024-01-08 12:46         ` Dmitry Gutov
2024-01-08 12:47         ` Eli Zaretskii
2024-01-09 19:27           ` Philip Kaludercic
2024-01-09 19:54             ` Eli Zaretskii
2024-01-09 20:21               ` Philip Kaludercic
2024-01-10  3:29                 ` Eli Zaretskii
2024-01-09  5:20       ` Stefan Kangas
2024-01-09 17:50         ` Dmitry Gutov
2024-01-09 17:54           ` Dmitry Gutov
2024-01-09 18:59           ` Stefan Kangas
2024-01-09 19:51             ` Eli Zaretskii
2024-01-09 20:06               ` Dmitry Gutov
2024-01-10  6:27                 ` Stefan Kangas
2024-01-10 11:38                   ` Dmitry Gutov
2024-01-10 12:03                     ` Stefan Kangas
2024-01-10 12:14                       ` Dmitry Gutov
2024-01-10 15:11                         ` Stefan Kangas
2024-01-10 12:35                       ` Modes in generic-x.el (was: Is it better to add treesitter modes to core?) Peter Oliver
2024-01-10 13:50                         ` Eli Zaretskii
2024-01-10 13:47                       ` Is it better to add treesitter modes to core? Eli Zaretskii
2024-01-07 16:29 ` Fernando Oleo Blanco [this message]
2024-01-07 16:48   ` Ada-mode to be abandoned? Philip Kaludercic
2024-01-07 17:22     ` Fernando Oleo Blanco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a30233a1-041d-46df-b125-e9b4101163c7@irvise.xyz \
    --to=irvise_ml@irvise.xyz \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    --cc=stephen_leake@stephe-leake.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).