all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: indirect threading for bytecode interpreter
Date: Thu, 17 Sep 2009 21:20:31 +0200	[thread overview]
Message-ID: <m2hbv1l6o0.fsf@gmail.com> (raw)
In-Reply-To: m3ab0tldsb.fsf@fleche.redhat.com

* Tom Tromey [2009-09-17 18:46+0200] writes:

> This patch implements indirect threading for the Emacs bytecode
> interpreter.  It uses a GNU C extension, and falls back to the current
> switch-based code if Emacs is compiled with some other compiler.

According to the usual Forth terminology
http://en.wikipedia.org/wiki/Threaded_code
your patch implements token threading not indirect threading.

[Indirect threading uses pointers (to Forth-style "word headers") which
 contain the address of the machine code.  There are no such pointers in
 your patch.  At the machine code level, token threaded code uses a
 "token" as index in a table.  That's what your code is doing.  Unlike
 token threaded code, indirect threaded code is typically not position
 independent.]

Despite that, a few years ago somebody has already proposed that 
http://lists.gnu.org/archive/html/emacs-devel/2004-05/msg00095.html
and it wasn't deemed worthwhile back then.

Helmut





  parent reply	other threads:[~2009-09-17 19:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-17 16:46 indirect threading for bytecode interpreter Tom Tromey
2009-09-17 18:21 ` Stefan Monnier
2009-09-17 19:20 ` Helmut Eller [this message]
2009-09-17 19:38   ` Tom Tromey
2009-09-17 20:41     ` Helmut Eller
2009-09-17 21:06       ` Tom Tromey
2009-09-17 22:48         ` Helmut Eller
2009-09-18  0:59         ` Stefan Monnier
2009-09-18  2:59           ` Tom Tromey
2009-09-17 20:43     ` Stefan Monnier
2009-09-17 20:57       ` Tom Tromey
2009-09-18 19:15 ` Dan Nicolaescu
2009-09-18 20:26   ` Tom Tromey
2009-09-21  1:58     ` Dan Nicolaescu
2009-09-21  3:17       ` Tom Tromey
2009-09-21 13:13         ` Stefan Monnier
2009-09-21 13:21           ` David Kastrup
2009-09-21 13:47             ` joakim
2009-09-21 14:46             ` Stefan Monnier
2009-09-21 14:27           ` Tom Tromey

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

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

  git send-email \
    --in-reply-to=m2hbv1l6o0.fsf@gmail.com \
    --to=eller.helmut@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.