Ilya Zakharevich on Thu, 12 Sep 2024 16:27:23 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Serialization of PARI data as a way of IPC


My impression is that when PARI is used as a library inside larger
heterogeneous-aggregation projects, they use
stringization/destringization of PARI data as a way of inter-library
communication.  This goes through binary↔decimal conversion.

This is very expensive (when PARI uses O(width) code).  However, since
PARI does not support C99’s hex floating point values, there is no
simpler way.¹⁾

   ¹⁾ This is why I do not use stringification in Math::Pari for IPC.

See
     https://en.wikipedia.org/wiki/IEEE_754#Hexadecimal_literals

Yours,
Ilya