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

Steal fractional exponents from Libra #83

Closed
erikerlandson opened this issue May 5, 2020 · 6 comments
Closed

Steal fractional exponents from Libra #83

erikerlandson opened this issue May 5, 2020 · 6 comments

Comments

@erikerlandson
Copy link
Owner

Don't try to stop me.

@zainab-ali
Copy link

Go ahead! They were pretty fun to implement.

@erikerlandson
Copy link
Owner Author

I'm interested in consuming this by way of something like fthomas/singleton-ops#140, if singleton-ops maintainers are interested

@erikerlandson
Copy link
Owner Author

erikerlandson commented Mar 28, 2021

Currently thinking of supporting rational unit exponents for scala 3, going forward.
Here is a prototype run-time and type-level implementation of Rational in Scala 3, using the new macros

https://github.com/erikerlandson/poc-coulomb-scala3/blob/59ba500f81d1f92c4a6a0f21e22921497eab84a7/coulomb/src/coulomb/infra/rational.scala

This also moves toward the possible goal of removing dependency on spire and singleton-ops

@ryan-richt
Copy link

+1 for fractional exponents! These arise frequently in using your MKS units, at least for us 🤣. Awesome library, thank you

@erikerlandson
Copy link
Owner Author

@ryan-richt I have fractional exponents working on my Scala 3 prototype, which I am hoping to get back to soon...

@erikerlandson
Copy link
Owner Author

These appear to be working well on the scala-3 branch, so I'll consider this closed by the eventual scala-3 release
https://github.com/erikerlandson/coulomb/tree/scala3

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