unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Andrea Corallo <akrl@sdf.org>
Cc: Rocky Bernstein <rocky@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: Correct line/column numbers in byte compiler messages [Was: GNU is looking for Google Summer of Code Projects]
Date: Fri, 20 Mar 2020 19:18:46 +0000	[thread overview]
Message-ID: <20200320191846.GA5255@ACM> (raw)
In-Reply-To: <xjf36a4axek.fsf@sdf.org>

Hello, Andrea.

On Thu, Mar 19, 2020 at 20:43:15 +0000, Andrea Corallo wrote:
> Alan Mackenzie <acm@muc.de> writes:

> > "More precise line numbers" is a misconstruction, even though I've used
> > such language myself in the past.  Line numbers don't come from a
> > physical instrument which measures with, say +-1% accuracy.  CORRECT
> > line (and column) numbers are what we need.

> > You will recall that the output of correct line/column numbers for byte
> > compiler messages is a solved problem.  I solved it and presented the
> > fix in December 2018.  This fix was rejected because it made Emacs
> > slightly slower.

> > In the 3½ years I've been grappling with this problem, I've tried all
> > sorts of things like "fat cons cells".  They don't work, and can't work.
> > They can't work because large chunks of our software chew up and spit
> > out cons cells with gay abandon (I'm talking about the byte compiler and
> > things like cconv.el here).  More to the point, users' macros chew up and
> > spit out cons cells, and we have no control over them.  So whilst we
> > could, with a lot of tedious effort, clean up our own software to
> > preserve cons cells (believe me, I've tried), this would fail in users'
> > macros.

> > Since then I've worked a fair bit on creating a "double" Emacs core, one
> > core being for normal use, the other for byte compiling.  There's a fair
> > amount of work still to do on this, but I know how to do it.  The problem
> > is that I have been discouraged by the prospect of having this solution
> > vetoed too, since it will make Emacs quite a bit bigger.

> > I don't think it is fair to give this problem to a group of summer
> > coders.  It is too hard a problem, both technically and politically.


> Hi Alan,

> Sorry I'm new to Emacs development, where can be found the code of your
> attempt?  Is it in a feature branch?

It's in the branch scratch/accurate-warning-pos.  The commit which
converted the unfinished work to a bug fix was:

    commit 2e04ddadab266d245a3bd0f6c19223ea515bdb90
    Author: Alan Mackenzie <acm@muc.de>
    Date:   Fri Nov 30 14:55:48 2018 +0000

        Sundry amendments to branch scratch/accurate-warning-pos.

(except, I think it still outputs two positions for each warning
message: the traditional one, and the new correct one).

> Thanks

>   Andrea

> -- 
> akrl@sdf.org

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2020-03-20 19:18 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-19 15:10 GNU is looking for Google Summer of Code Projects Rocky Bernstein
2020-03-19 17:35 ` Stefan Monnier
2020-03-19 17:56   ` Andrea Corallo
2020-03-19 18:05     ` Andrea Corallo
2020-03-19 18:19     ` Rocky Bernstein
2020-03-19 21:26     ` Stefan Monnier
2020-03-19 21:45       ` Andrea Corallo
2020-03-19 23:07         ` Rocky Bernstein
2020-03-19 20:34   ` Correct line/column numbers in byte compiler messages [Was: GNU is looking for Google Summer of Code Projects] Alan Mackenzie
2020-03-19 20:43     ` Andrea Corallo
2020-03-20 19:18       ` Alan Mackenzie [this message]
2020-03-21 11:22         ` Andrea Corallo
2020-03-21 15:30           ` Correct line/column numbers in byte compiler messages Alan Mackenzie
2020-03-21 16:28             ` Andrea Corallo
2020-03-21 18:37               ` Andrea Corallo
2020-03-21 20:19                 ` Alan Mackenzie
2020-03-21 21:08                   ` Andrea Corallo
2020-03-21 23:39                     ` Andrea Corallo
2020-03-22 11:26                   ` Alan Mackenzie
2020-03-19 20:56     ` Correct line/column numbers in byte compiler messages [Was: GNU is looking for Google Summer of Code Projects] Rocky Bernstein
2020-03-19 22:05       ` Stefan Monnier
2020-03-20 19:25       ` Alan Mackenzie
2020-03-19 21:41     ` Stefan Monnier
2020-03-19 22:09       ` Stefan Monnier
2020-03-20 20:10       ` Alan Mackenzie
2020-03-20 21:23         ` Rocky Bernstein
2020-03-20 21:27         ` Clément Pit-Claudel
2020-03-20 23:46           ` Stefan Monnier
2020-03-20 21:30         ` Stefan Monnier

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=20200320191846.GA5255@ACM \
    --to=acm@muc.de \
    --cc=akrl@sdf.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rocky@gnu.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).