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

Investigate more possible backends #5

Open
chipshort opened this issue Nov 4, 2022 · 1 comment
Open

Investigate more possible backends #5

chipshort opened this issue Nov 4, 2022 · 1 comment

Comments

@chipshort
Copy link
Owner

chipshort commented Nov 4, 2022

Here are some more possible backends, I found:

simple-soft-float
rug # uses mpfr under the hood
softfloat-wrapper / softfloat-sys # uses berkeley softfloat under the hood
dashu-float # arbitrary base and has much higher precision than we actually need, so probably not interesting
astro-float # arbitrary precision
https://github.com/huonw/float # haven't checked yet, but is very old and has deprecated dependency
amplify_apfloat # looks like a fork of rustc_apfloat, has more downloads on crates.io

Note on C libraries

rug and softfloat-wrapper would be great candidates if we could get the underlying c libraries to compile on wasm, since they are widely known and battle proven. mpfr might be somewhat problematic for some projects because of GPL, but a note on that somewhere should be fine. I have tried getting a wasm project to compile with them, but had no luck until now.

@chipshort
Copy link
Owner Author

I've had some success converting the Berkeley SoftFloat library to Rust using c2rust and a small shell script to clean up, so that's also an option.

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

1 participant