Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec text guidance for implementors #13

Open
phoddie opened this issue Nov 26, 2024 · 0 comments · May be fixed by #14
Open

spec text guidance for implementors #13

phoddie opened this issue Nov 26, 2024 · 0 comments · May be fixed by #14

Comments

@phoddie
Copy link

phoddie commented Nov 26, 2024

Implementing float16 support is somewhat challenging because compiler support for 16-bit IEEE floating point is not yet universal. Moddable encountered this building for certain embedded targets and Windows. We solved this for XS by following Mozilla's example of adapting code from the excellent Half-precision floating-point library library.

In some cases ECMA-262 provides notes to implementors, particularly for floating point operations. These are some examples:

Given the uneven status of native compiler 16-bit IEEE floating point support, it would be helpful to include such a note in the spec text of this proposal.

(This is somewhat related to #12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant