newCTFE Status November 2018

kinke noone at nowhere.com
Sat Dec 8 15:42:16 UTC 2018


On Saturday, 8 December 2018 at 10:04:19 UTC, rikki cattermole 
wrote:
> On 08/12/2018 1:32 PM, Stefan Koch wrote:
>> And another exciting news item, newCTFE is going to support 
>> cross-platform floating-point as soon as I got around to 
>> re-implementing, the qemu fork of softfloat-2.
>
> D..Does that mean that root/ctfloat.d is being replaced?
>
> https://issues.dlang.org/show_bug.cgi?id=18810

That would be a bad idea. As I said somewhere a year ago or so, 
newCTFE should probably just rely on `real_t` providing the 
required operations (custom operators etc.). The host needs to 
store compile-time FP values in a format suited for the target, 
and that's where a `real_t` (for the full front-end, not just 
CTFE) comes in.

GDC already uses a software `real_t` AFAIK; LDC will eventually 
too, probably based on https://www.mpfr.org/.


More information about the Digitalmars-d mailing list