legacy icon indicating copy to clipboard operation
legacy copied to clipboard

Real32

Open Skyb0rg007 opened this issue 11 months ago • 1 comments

Description

Single precision IEEE floating point numbers often have sufficient precision for many applications, and are used in many binary formats. Additionally, SML/NJ stores Real64.real values as pointers, and the 32-bit variant could potentially have an unboxed representation for additional speed and space savings (on 64-bit installations).

Half-precision IEEE floating point numbers can sometimes be useful as a binary storage format (ex. CBOR), and the 16-bit brain floating point format has support on some processors and is used in some AI applications. These are also options to support (at least for serialization/deserialization to Real64).

Real32 is currently supported by MLton, MLj, and SML.NET.

Skyb0rg007 avatar Mar 12 '24 23:03 Skyb0rg007