[HN Gopher] CasNum
___________________________________________________________________
CasNum
Author : aebtebeten
Score : 105 points
Date : 2026-03-07 20:43 UTC (2 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| 0x0mer wrote:
| Thanks for posting, means a lot! :) I'd be happy to know how you
| stumbled upon it
| lagrange77 wrote:
| > CasNum (Compass and straightedge Number) is a library that
| implements arbitrary precision arithmetic using compass and
| straightedge constructions. Arbitrary precision arithmetic, now
| with 100% more Euclid. Featuring a functional modified Game Boy
| emulator where every ALU opcode is implemented entirely through
| geometric constructions.
|
| Awesome :D
| 0x0mer wrote:
| Thank you! :)
| ggm wrote:
| F.A.Q Q: buT cAN iT rUn dOOm? A: It can't really
| "run" anything, its a number. Q: Is it fast?
| A: Define "fast". If you mean "faster than copying Euclid by
| hand", then yes, dramatically. Q: Why did you make
| this? A: I wanted arbitrary precision arithmetic, but I
| also wanted to feel something.
|
| I can relate. Expecially the 3rd one.
| 0x0mer wrote:
| Haha thank you! I'm glad to hear!
| random_duck wrote:
| I have no idea what is going on here...
| mtsolitary wrote:
| https://en.wikipedia.org/wiki/Constructible_number
| tingletech wrote:
| Cool. I just learned of compass and straight edge calculations
| from this video on doubling a cube
| https://www.youtube.com/watch?v=96LbF8nn05c from Ben Syversen's
| channel a couple of months ago
| ko2026 wrote:
| Coolest thing I've seen in a while Well done!
| 0x0mer wrote:
| Thank you! :)
| brcmthrowaway wrote:
| Was Claude used?
| 0x0mer wrote:
| The only part of the code that was written by AI is the
| graphics window visualizing the constructions (i.e., the
| points, lines and circles) and I used codex
| mtsolitary wrote:
| Tried to use it to solve a quintic equation and it didn't work :(
| 0x0mer wrote:
| Sadly this feature request was denied by Abel-Ruffini :(
| danilor wrote:
| This is so nice!!
|
| I'm wondering how hard would it be to extend it to include the
| whole game state plus all the ROM into the plane at the same
| time, and have it compute the next step from that!
| 0x0mer wrote:
| That's a good question :)
|
| I was wondering about this myself, it feels and probably is
| possible, and I have some ideas on how to do it. Though, on the
| one hand it would be cool if the entire GB was emulated using
| compass-and-straightedge, but OTOH, it would be less "pure" and
| a little more "forced" than just simulating the ALU, if you get
| what I mean.
|
| One idea I had is trying to draw the graphics of the game using
| compass-and-straightedge constructions (i.e., using circles and
| lines to draw approximately the GB graphics)
| tsoukiory wrote:
| Je ne comprends pas l'englay
| flir wrote:
| Well that's just lovely.
| user3939382 wrote:
| Why is GitHub asking me for a login to view a public repo link?
| What is this LinkedIn now?
___________________________________________________________________
(page generated 2026-03-07 23:00 UTC)