Implementing C23 _Float16 in ImportC

ryuukk_ ryuukk.dev at gmail.com
Tue Jan 14 08:33:38 UTC 2025


On Tuesday, 14 January 2025 at 06:13:04 UTC, Walter Bright wrote:
> _Float16 is new in C23 Appendix H.11-6
>
> https://github.com/dlang/dmd/issues/20516
>
> For the moment, I submitted a PR with a workaround:
>
> https://github.com/dlang/dmd/pull/20699
>
> Amazingly, some years ago I implemented 16 bit floats in D:
>
> https://github.com/DigitalMars/sargon/blob/master/src/sargon/halffloat.d
>
> Would anyone like to put halffloat.d into Druntime and make it 
> our implementation of _Float16?

Why should it be a "runtime" module?

Obviously you know better than most of us, but does it feel good 
to have to import a module for such thing, is it compelling for 
people looking for an alternative to C?

What the young competition doing?

https://ziglang.org/documentation/master/#Primitive-Types
https://odin-lang.org/docs/overview/#basic-types
https://c3-lang.org/language-overview/types/





More information about the Digitalmars-d mailing list