unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* rfc: (ice-9 accumulate)
@ 2010-01-09 10:44 Thien-Thi Nguyen
  2010-01-09 21:55 ` Andy Wingo
  2010-01-11  0:48 ` Ludovic Courtès
  0 siblings, 2 replies; 11+ messages in thread
From: Thien-Thi Nguyen @ 2010-01-09 10:44 UTC (permalink / raw)
  To: guile-devel

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




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-01-11 20:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-09 10:44 rfc: (ice-9 accumulate) Thien-Thi Nguyen
2010-01-09 21:55 ` 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

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).