Printing floating points
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Jan 27 02:17:52 UTC 2021
On Wed, Jan 27, 2021 at 12:15:41AM +0000, Joseph Rushton Wakeling via Digitalmars-d wrote:
> On Tuesday, 26 January 2021 at 16:25:54 UTC, Berni44 wrote:
> > The paper states 104KB for doubles (can be compressed on the expense
> > of slowing everthing down).
>
> It also notes that "the size could be halved to 52 kB with no
> performance impact".
>
> For comparison, a simple "Hello, World!", built with optimizations and
> stripped, comes to about 700 kB. Even allowing that the 128-bit table
> (which will support 80-bit reals) is going to be larger, is this
> really an issue on modern machines?
>
> The only circumstances I can see it mattering is in very low-resource
> embedded use-cases where D stdlib is unlikely to be viable anyway.
If there was a way to make these tables pay-as-you-go, I'd vote for it.
Adding 104KB or 52KB even if the code never once formats a float, is not
ideal, though granted, in this day and age of cheap, high-capacity RAM
not really a big issue.
T
--
May you live all the days of your life. -- Jonathan Swift
More information about the Digitalmars-d
mailing list