unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Daniel Colascione <dancol@dancol.org>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: [PATCH, RFC] Macros expansion changes, robust symbol macros, and constant propagation
Date: Wed, 18 Sep 2013 08:49:20 -0400	[thread overview]
Message-ID: <jwvk3iei9g3.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <523903BD.5000302@dancol.org> (Daniel Colascione's message of "Tue, 17 Sep 2013 18:37:01 -0700")

>>>> +(defun byte-optimize-do-constant-propagation (let-form)
> By the way: why do we have byte-optimize forms _and_ compiler macros?

Partly/largely for historical reasons.  But note that there's more to it
than that: I tried to unify them by moving the byte-opt processing to
macroexpand-all time, but it has the downside that you then get
"spurious" warnings that are much harder to silence (e.g. "a" is unused
after optimizations but not before optimizations, and those
optimizations depend on the Emacs that compiles the code, so fixing the
warning without breaking the code on other Emacsen becomes tricky).


        Stefan



  reply	other threads:[~2013-09-18 12:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 16:33 [PATCH, RFC] Macros expansion changes, robust symbol macros, and constant propagation Daniel Colascione
2013-09-17 21:52 ` Stefan Monnier
2013-09-17 23:43   ` Daniel Colascione
2013-09-18  1:37     ` Daniel Colascione
2013-09-18 12:49       ` Stefan Monnier [this message]
2013-09-18  3:06     ` Stefan Monnier
2013-09-18  5:34       ` Daniel Colascione
2013-09-18  6:14         ` Daniel Colascione
2013-09-19 22: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=jwvk3iei9g3.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dancol@dancol.org \
    --cc=emacs-devel@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).