unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.ping.de>
Cc: djurfeldt@nada.kth.se, Dirk Herrmann <dirk@ida.ing.tu-bs.de>,
	guile-devel@gnu.org
Subject: Re: expansion, memoization, and evaluation...
Date: 05 Dec 2002 17:27:27 +0100	[thread overview]
Message-ID: <87ptsg1le8.fsf@zagadka.ping.de> (raw)
In-Reply-To: <87wumpe3be.fsf@raven.i.defaultvalue.org>

Rob Browning <rlb@defaultvalue.org> writes:

>   (call scm_add (ref x_4432) (ref y_2231))
> 
> but later, as we get smarter about flow analysis, etc. we might be
> able in some cases to generate:
> 
>   (plus (ref x_4432) (ref y_2231))
> 
> which would be *way* faster.

Just some random thoughts since I have done this in guile-lightning:
we should definitely inline fixnum arithmetic and call out of line
code only for non-fixnums or overflows.  That gives a big improvement
over just calling scm_sum all the time.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2002-12-05 16:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-04  2:41 expansion, memoization, and evaluation Rob Browning
2002-12-04  2:57 ` Mikael Djurfeldt
2002-12-04  3:10   ` Rob Browning
2002-12-04  3:31     ` Mikael Djurfeldt
2002-12-04  4:07       ` Rob Browning
2002-12-04  7:07         ` Mikael Djurfeldt
2002-12-04 21:11           ` Rob Browning
2002-12-04 21:47             ` Mikael Djurfeldt
2002-12-05  0:07               ` Rob Browning
2002-12-05 16:27                 ` Marius Vollmer [this message]
2002-12-05 17:07                   ` Rob Browning
2002-12-04  8:09   ` klaus schilling
2002-12-04 10:55     ` Mikael Djurfeldt

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/guile/

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

  git send-email \
    --in-reply-to=87ptsg1le8.fsf@zagadka.ping.de \
    --to=mvo@zagadka.ping.de \
    --cc=dirk@ida.ing.tu-bs.de \
    --cc=djurfeldt@nada.kth.se \
    --cc=guile-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.
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).