Ra

Rational numbers for Java, why not?

Hacker News

Rational numbers for Java, why not?

A while back I built a science library supporting both physical and abstract dimensions. Almost immediately I discovered working with floating point numbers suck in that space and BigDecimal isn't much better in terms of managing scale wrt margin of error across calculations, Java doesn't make this easy. Rationals are in my view much better suited for science/math in that information cannot be unintentionally lost when using them. So I made a Rational for Java, and in the process _forced_ Java to work better with science and math.

Share card

Actual performance

6points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: physical, using · Missing: mac, agents, macos
78%78% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
71%71% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoStrong fit for a featured deal · Missing: plus, platform, intuitive
51%51% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
49%49% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: margin · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Im
Implementing a trackball with rational numbers38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Implementing a trackball with rational numbers

Hacker News11
Pr
Primeval Numbers52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Primeval Numbers

Hacker News25
20
2048 without numbers50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

2048 without numbers

Hacker News54
Tr
Transcendental numbers for arbitrary-length One-Time Pads46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Transcendental numbers for arbitrary-length One-Time Pads

Hacker News2
Pr
Prime numbers generator43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Prime numbers generator

Hacker News2
Fa
Factor RSA Numbers as a Game52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Factor RSA Numbers as a Game

Hacker News1
ANDRE
ANDRE59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Insights Beyond Numbers for Superior CX

Indie Hackersemployees-10-plus
ANDRE
ANDRE61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Insights Beyond Numbers for Superior CX

Indie Hackers1ai
Th
The Music of Fibonacci and Prime Numbers46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The Music of Fibonacci and Prime Numbers

Hacker News1
Prime Numbers
Prime Numbers30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Web with numbers from 1 to Million with their properties

Indie Hackers1education