google-research / google-research/dex-lang
Add more number types
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
Following up on #191
It would be useful to have a few more number types.
In particular it would be useful to have Rational numbers and 128 bit integers.
Calculating grid-coefficients for higher-order finite differencing[using `Rational{Int128}` for intermidiate values before converting to `Float64` at the end](https://github.com/JuliaDiff/FiniteDifferences.jl/pull/65) gained me several orders of magnitude in accuracy;
and presumably has other applications.
And I know people working in astronomy like there rediculously high precision floats because of working at different scales.
I suggest:
- [ ] Rational numbers
- [ ] Int128
- [ ] BigInt ([GMP](https://gmplib.org/) equiv)
- [ ] BigFloat ([MPFR](https://www.mpfr.org/) equiv)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading issue #191 and reviewing the linked FiniteDifferences.jl example to understand the requested numeric use cases. The checklist defines completion: support Rational numbers, Int128, BigInt, and BigFloat, with GMP and MPFR noted as equivalents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100