lilypond-devel
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]