unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-devel@gnu.org
Subject: rfc: (ice-9 accumulate)
Date: Sat, 09 Jan 2010 11:44:03 +0100	[thread overview]
Message-ID: <873a2fo8wc.fsf@ambire.localdomain> (raw)

Would there be any interest in adding (ice-9 accumulate) to Guile?

- http://www.gnuvola.org/software/guile/doc/Efficient-Accumulation.html

I can see several arguments against doing so:

- It is a thin layer around (ice-9 q) functionality; possible to
  reimplement using (ice-9 q), in fact.  When the layer is thin, i
  wonder if the usefulness is more personal (a matter of taste) than
  general.  (See e.g., ttn-do macro `FE'.)

- The interface is procedural, possibly defeating compiler optimization.
  When i wrote it, it was an exercise for hobbit.  The hope was that
  hobbit could eventually learn to optimize usage of (ice-9 accumulate)
  calls to (strength-, complexity-)reduce them to (ice-9 q) calls, where
  other data-oriented optimizations can come into play.  Perhaps that
  hope was only a non-compiler-geek dream (sounds nice but unfeasible).
  Perhaps Andy can either revive this hope or kindly kill it off now?

- There is already something in Guile.  [If so, where?  Thanks.]

Of course, the primary argument *for* adding it would be to make porting
my stuff to Guile easier.  That's a selfish argument, so take it FWIW.

thi




             reply	other threads:[~2010-01-09 10:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-09 10:44 Thien-Thi Nguyen [this message]
2010-01-09 21:55 ` rfc: (ice-9 accumulate) Andy Wingo
2010-01-11  6:05   ` Thien-Thi Nguyen
2010-01-11 13:21     ` Ludovic Courtès
2010-01-11 14:16       ` Thien-Thi Nguyen
2010-01-11 20:57       ` Andy Wingo
2010-01-11  0:48 ` Ludovic Courtès
2010-01-11  5:51   ` Thien-Thi Nguyen
2010-01-11 13:26     ` Ludovic Courtès
2010-01-11 14:34       ` Thien-Thi Nguyen
2010-01-11 20:51       ` Andy Wingo

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=873a2fo8wc.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --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).