unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark Weaver <mark_weaver_45@yahoo.com>
To: Andy Wingo <wingo@pobox.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel <guile-devel@gnu.org>
Subject: Re: [PATCH] New division operators, and optimization for fractions
Date: Sat, 12 Feb 2011 14:38:38 -0800 (PST)	[thread overview]
Message-ID: <550130.66509.qm@web114103.mail.gq1.yahoo.com> (raw)
In-Reply-To: <m3tyg89aw4.fsf@unquote.localdomain>

[-- Attachment #1: Type: text/plain, Size: 2277 bytes --]

Okay, I see what I need to do.  I'll change the API as you suggest, and make an internal wrapper function for SCM_WTA_DISPATCH_2 that unpacks the values object returned from GOOPS and returns the values via the SCM* output parameters.  I should be able to do this by Monday.

      Thanks,
        Mark


--- On Sat, 2/12/11, Andy Wingo <wingo@pobox.com> wrote:

From: Andy Wingo <wingo@pobox.com>
Subject: Re: [PATCH] New division operators, and optimization for fractions
To: "Mark Weaver" <mark_weaver_45@yahoo.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>, "guile-devel" <guile-devel@gnu.org>
Date: Saturday, February 12, 2011, 9:54 PM

Hi Mark,

On Sat 12 Feb 2011 22:03, Mark Weaver <mark_weaver_45@yahoo.com> writes:

> I really hope you decide to at least apply the first patch for 2.0.
> They are very useful operators, and also they make the existing
> floor/ceiling/truncate/round operators a whole lot faster when applied
> to fractions.  I worked very hard to get them ready for 2.0, and I
> really hope you reconsider.

Ludovic and I really appreciate your work on the numerics side of Guile.
It is wonderful to have someone as careful as you are in this area.  And
it is obvious that this was not only careful work, it was a lot of it.

But do you really want these in, as they are?  Look at the C API here:

  SCM scm_round_divide (SCM, SCM)

It would be better if it were:

  void scm_round_divide (SCM, SCM, SCM*, SCM*)

But it's not, because of our bad multiple-values story.  If we are able
to reach the more appropriate API in the future, we'll have to give it
yet another name (because the right name is taken).  Obviously we
couldn't do that for 2.0, because hey, that's Wednesday.  But we can do
it for 2.0.1.

If you really want this API for 2.0.0, I think we can probably do it,
because this is your area.  But I would like to ask you to consider what
it will be like working with this API in two years, or in five.  If it's
still what you want, let me know, and I will merge it and the other
patches.  (I'm not concerned about the SCM_INTERNAL values hack because
it can always be removed.).  Otherwise, we have time to talk about it
for 2.0.1 :-)

Peace,

Andy
-- 
http://wingolog.org/



      

[-- Attachment #2: Type: text/html, Size: 2990 bytes --]

  reply	other threads:[~2011-02-12 22:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <595618.30923.qm@web114107.mail.gq1.yahoo.com>
2011-02-12 21:54 ` [PATCH] New division operators, and optimization for fractions Andy Wingo
2011-02-12 22:38   ` Mark Weaver [this message]
     [not found] <860989.4731.qm@web114104.mail.gq1.yahoo.com>
2011-02-12 20:19 ` Andy Wingo
2011-02-13 14:55   ` Mark H Weaver
2011-02-14 19:44     ` Andy Wingo
2011-02-10 23:42 Mark H Weaver
2011-02-12 11:55 ` Andy Wingo
2011-02-14 13:56   ` Ken Raeburn
2011-02-14 18:17     ` Mark H Weaver
2011-02-15 10:38 ` Ludovic Courtès
2011-02-15 11:43   ` Mark H Weaver
2011-02-15 14:49     ` Ludovic Courtès

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=550130.66509.qm@web114103.mail.gq1.yahoo.com \
    --to=mark_weaver_45@yahoo.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=wingo@pobox.com \
    /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).