> On 22 May 2018, at 21:10, Hans Åberg <haber...@telia.com> wrote: > > >> On 22 May 2018, at 20:45, David Kastrup <d...@gnu.org> 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 _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel