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

Wider OMF formats #32

Open
kohlhase opened this issue Oct 2, 2017 · 3 comments
Open

Wider OMF formats #32

kohlhase opened this issue Oct 2, 2017 · 3 comments
Milestone

Comments

@kohlhase
Copy link
Member

kohlhase commented Oct 2, 2017

see OpenMath/OM3#137

@kohlhase
Copy link
Member Author

kohlhase commented Oct 5, 2017

cc: @davidcarlisle @JamesHDavenport @pdfion @lars-hellstrom

I think that having more float representations is a very good goal, but this requires a generalization that is outside the scope of Revision 2.

@JamesHDavenport
Copy link
Contributor

JamesHDavenport commented Oct 5, 2017 via email

@lars-hellstrom
Copy link
Contributor

Despite being the originator, I don't agree. Quoting myself from the original ticket:

My current suggestion, based on input from David Carlisle on the OM3 mailing list, is that rather than extending OMF to support more float formats, language should be added to the standard to clarify that the OMF element is primarily provided as a convenience (lightweight to implement, since 64-bit floats are very widely supported), and that other kinds of float should primarily be encoded as the application of an appropriate float construction symbol to the raw data (which may be encoded as an OMB element)

Float construction symbols are far more flexible — besides supporting different bitwidths, they can also provide features such as:

  • Densely packed complex floats (real and imaginary part concatenated in the same OMB).
  • Densely packed vectors of floats (elements concatenated in the same OMB).
  • Densely packed matrices of floats (ditto).

Moreover note that changing the OMF elements to support other float widths would be an OM3 change. And lots of phrasebook writers would hate it, because languages currently don't come with built-in support for floats wider than 64 bits.

Doing it via constructor symbols folds any problems into the generic "unhandled symbol" error case, which everybody already have to deal with anyway.

@kohlhase kohlhase added this to the OMNext milestone Oct 8, 2017
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

No branches or pull requests

3 participants