News for hackers. Stuff that matters.
Re:Ask HN: New Programming Language? by singularity2001 on Wednesday January 12, 2022 @06:39PM (#29914424)

  >> Language that represent numbers as rationals
so π would be represented as π/1 or τ/2?

Also wouldn't it make comparisons quite expensive?

Re:Ask HN: New Programming Language? by scotty79 on Wednesday January 12, 2022 @09:41PM (#29916146)
I don't mind having option of purely symbolic computation but by default I don't want them.

Instead od Pi I'd prefer to have Pi(3) equal exactly 3.14, or Pi(2) equal exactly 3.1 and so on.

Since numbers would be kept as smallest numerator, denominator pair comparison would be just compaing those.