Rational in std deprecation

Hello!
I wanted to implement a Rational number in order to mess around with some concepts, and I was surprised there used to be a Rational implementation on std in 0.14. I also see there is a comment regarding changing it to use it’s own allocator instead of using two Ints.
Okay, my questions are:

  1. Why this got dropped? Any plans to bringing it back? (did some PR digging but did not find anything) Was it just due to suboptimal performance by storing two Ints?
  2. Now that master is explicitly rejecting the managed variants, is BigInt going to suffer this same fate? Idk if this redesing also applies to the Int type.
  3. If this were to be implemented again (might look into it) which would be the correct approach? I assume it’s not to have it’s own allocator for sure, but also not holding two BigInt again. Is maybe storing a Limb on there?

Thank you and have a nice day :))

1 Like
1 Like

thanks m8! so it does not exist anymore because all internal logic that was rellevant to the compiler is into math.big.int?

1 Like