Implementing C23 _Float16 in ImportC

Walter Bright newshound2 at digitalmars.com
Tue Jan 14 22:14:01 UTC 2025


On 1/14/2025 12:33 AM, ryuukk_ wrote:
> Why should it be a "runtime" module?

If it is to be part of the core language, that's where it goes.

> 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/

The interesting thing is not the existence of the types. It's how they are 
implemented. The X86_64 architecture does not support a 16 bit floating point type.



More information about the Digitalmars-d mailing list