[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should we be touching goops?
From: |
Jean Abou Samra |
Subject: |
Re: Should we be touching goops? |
Date: |
Sun, 5 Jun 2022 13:25:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
Le 04/06/2022 à 13:16, Luca Fascione a écrit :
On Sat, Jun 4, 2022 at 12:47 PM David Kastrup <dak@gnu.org> wrote:
LilyPond uses precise arithmetic.
Thanks David, just out of curiosity, where's a reference to the specific
implementation we're using?
C++ code uses the Rational type, which is implemented in
flower/rational.cc and flower/include/rational.hh. Scheme
code uses plain Guile numbers. Scheme mixes "exact" (rational)
and "inexact" (floating-point) numbers in a very lax way.
This is documented at
https://www.gnu.org/software/guile/manual/html_node/Reals-and-Rationals.html
The conversion between the two is in lily/lily-guile.cc
({from,to,is}_scm<Rational>).
The Moment type is defined in lily/moment.cc and lily/include/moment.hh.
It has two Rational members, a main part and a grace part.
Further, besides the floating point math segment, does the rest feel like
it's on target to you?
Honestly, I feel like we're making a big deal of something
that doesn't have a lot of practical ramifications for LilyPond.
Cheers,
Jean
- Re: Should we be touching goops?, (continued)
- Re: Should we be touching goops?, David Kastrup, 2022/06/03
- Re: Should we be touching goops?, Aaron Hill, 2022/06/03
- Re: Should we be touching goops?, Dan Eble, 2022/06/03
- Re: Should we be touching goops?, David Kastrup, 2022/06/03
- Re: Should we be touching goops?, David Kastrup, 2022/06/03
- Re: Should we be touching goops?, Immanuel Litzroth, 2022/06/04
- Re: Should we be touching goops?, Luca Fascione, 2022/06/04
- Re: Should we be touching goops?, David Kastrup, 2022/06/04
- Re: Should we be touching goops?, Luca Fascione, 2022/06/04
- Re: Should we be touching goops?, David Kastrup, 2022/06/04
- Re: Should we be touching goops?,
Jean Abou Samra <=
- Re: Should we be touching goops?, David Kastrup, 2022/06/05
- Re: Should we be touching goops?, Jean Abou Samra, 2022/06/05
- Re: Should we be touching goops?, David Kastrup, 2022/06/05
- Re: Should we be touching goops?, Dan Eble, 2022/06/05
- Re: Should we be touching goops?, Dan Eble, 2022/06/05
- Re: Should we be touching goops?, David Kastrup, 2022/06/05
- Re: Should we be touching goops?, Jean Abou Samra, 2022/06/05
- Re: Should we be touching goops?, Jean Abou Samra, 2022/06/05
- Re: Should we be touching goops?, David Kastrup, 2022/06/05
- Re: Should we be touching goops?, Luca Fascione, 2022/06/05