[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rational
From: |
Hans Åberg |
Subject: |
Re: Rational |
Date: |
Tue, 22 May 2018 21:45:03 +0200 |
> On 22 May 2018, at 21:10, Hans Åberg <address@hidden> wrote:
>
>
>> On 22 May 2018, at 20:45, David Kastrup <address@hidden> wrote:
>>
>> LilyPond's "rational" type should indeed get replaced
>> by Guile's rational types which would seriously shift the threshold
>> where things start breaking apart at the cost of efficiency.
>>
>> That's quite a lot of tedious work (I have some started patches for
>> different approaches to that) but of course if its seminal for someone's
>> _own_ work, the motivation for finishing that might be larger.
>
> Guile uses GMP internally, and it might be fairly easy to change the class
> Rational to use GMP. Have you considered that?
Actually, I wrote an C++ interface for Guile [1], which includes the numbers,
exact and inexact. The root class holds a reference to a SCM object. In Guile,
integers and rational numbers are merged, so that should probably be so in such
an interface.
1. https://web2.storegate.com/share/TN6lmp5
- Re: Microrhythm, (continued)
- Re: Microrhythm, Hans Åberg, 2018/05/14
- Re: Microrhythm, Torsten Hämmerle, 2018/05/19
- Re: Microrhythm, Torsten Hämmerle, 2018/05/19
- Re: Microrhythm, Hans Åberg, 2018/05/19
- Re: Microrhythm, metachromatic, 2018/05/22
- Re: Microrhythm, Hans Åberg, 2018/05/22
- Re: Microrhythm, Carl Sorensen, 2018/05/22
- Re: Microrhythm, David Kastrup, 2018/05/22
- Rational, Hans Åberg, 2018/05/22
- Re: Rational,
Hans Åberg <=
- Re: Rational, David Kastrup, 2018/05/22
- Re: Rational, Hans Åberg, 2018/05/22
- Re: Rational, David Kastrup, 2018/05/22
- Re: Rational, Hans Åberg, 2018/05/22
- Re: Rational, David Kastrup, 2018/05/22
- Re: Rational, Hans Åberg, 2018/05/22
- Re: Rational, David Kastrup, 2018/05/22
- Re: Rational, metachromatic, 2018/05/23
- Re: Rational, David Kastrup, 2018/05/23
- Re: Rational, Kieren MacMillan, 2018/05/23