unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Alex Gramiak <agrambot@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Help with adding new setq-based bytecodes
Date: Sun, 21 Apr 2019 16:22:49 -0400	[thread overview]
Message-ID: <jwvftqbru1r.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87tver5fru.fsf_-_@gmail.com> (Alex Gramiak's message of "Sun, 21 Apr 2019 13:17:57 -0600")

>> Why is that a problem?
> It'd be annoying (to me), since it would mean searching a small vector
> of constants would be slower than searching a small list of constants.
> Only by a bit, but still.

I think your level of general happiness will be higher when you can stop
worrying about such pesky details.

> No, but at least for vector-memq, I don't think it warrants taking up
> that limited room. Also, I figured that there might be other primitives
> that weren't added as a bytecode previously due to the lack of space
> that could now be added to this secondary table. Possible candidates:

I think a more promising direction would be to speed up the funcall case
enough such that we aren't pressured to add bytecodes for those cases.

>   emacs-lisp/byte-run.el:230:1:Error: Symbol’s value as variable is void: lambda
>
>
> Is there a way to trigger the lisp debugger here?

(setq byte-compile-debug t) is probably what you're looking for
(together with (setq debug-on-error t) which I assume you're already using).

> Do you have any idea what I did wrong?

My crystal ball is not cooperating here, no, sorry.


        Stefan



      reply	other threads:[~2019-04-21 20:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-18 15:53 Help with adding an auxiliary bytecode table Alex Gramiak
2019-04-18 17:07 ` Paul Eggert
2019-04-18 20:47   ` Alex Gramiak
2019-04-21  4:11 ` Stefan Monnier
2019-04-21 19:17   ` Help with adding new setq-based bytecodes (was: Help with adding an auxiliary bytecode table) Alex Gramiak
2019-04-21 20:22     ` Stefan Monnier [this message]

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=jwvftqbru1r.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=agrambot@gmail.com \
    --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).