<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii" -->

---
title: GitHub - 0x0mer/CasNum | daily.dev
description: CasNum is a Python library that implements arbitrary precision arithmetic using compass and straightedge geometric constructions. Numbers are represented as...
canonical: https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - 0x0mer/CasNum | daily.dev
og:description: CasNum is a Python library that implements arbitrary precision arithmetic using compass and straightedge geometric constructions. Numbers are represented as...
og:url: https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii
og:image: https://api.daily.dev/og/posts/iCNzM15Ii.png
og:image:alt: GitHub - 0x0mer/CasNum
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - 0x0mer/CasNum

**[Hacker News](https://daily.dev/sources/hn)** · 6 min read · 0 upvotes · 0 comments

## Summary

CasNum is a Python library that implements arbitrary precision arithmetic using compass and straightedge geometric constructions. Numbers are represented as points on a plane, and all arithmetic and logical operations (add, multiply, divide, AND, OR, XOR) are performed through classical Euclidean constructions. As a proof of concept, the library is integrated into a modified PyBoy Game Boy emulator, replacing Python's native int so every ALU opcode runs entirely through geometric constructions. The result is a functional (if extremely slow) emulator capable of running Pokémon Red, with a ~15-minute boot time and ~0.5–1 FPS after caching. Performance is managed via Python's lru_cache. The project is openly described as a novelty built for the experience rather than practical use.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/0x0mer/CasNum>

## Similar posts on daily.dev

- [Running Pokémon With A Compass And Straightedge](https://daily.dev/posts/running-pok-mon-with-a-compass-and-straightedge-31slmat8g) · Hackaday · 51 upvotes · 1 comments
- [Build This Open-Source Graphics Calculator](https://daily.dev/posts/build-this-open-source-graphics-calculator-yvem96nzj) · Hackaday · 0 upvotes · 0 comments
- [Python Numbers Every Programmer Should Know](https://daily.dev/posts/python-numbers-every-programmer-should-know-dbwyosyik) · Planet Python · 4 upvotes · 0 comments
- [A Neighborhood of Infinity: "What does it take to be a hero?" revisited](https://daily.dev/posts/a-neighborhood-of-infinity-what-does-it-take-to-be-a-hero-revisited-g1vdxjbot) · Planet Haskell · 0 upvotes · 0 comments
- [GitHub - robertcprice/nCPU: nCPU: model-native and tensor-optimized CPU research runtimes with organized workloads, tools, and docs](https://daily.dev/posts/github---robertcprice-ncpu-ncpu-model-native-and-tensor-optimized-cpu-research-runtimes-with-organ-vczbswk1u) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub - 0x0mer/CasNum","url":"https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii"},"datePublished":"2026-03-07T22:36:13.676Z","dateModified":"2026-03-07T22:36:35.338Z","description":"CasNum is a Python library that implements arbitrary precision arithmetic using compass and straightedge geometric constructions. Numbers are represented as...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/23c267358fc0bd0c426199f2f90b95d5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/23c267358fc0bd0c426199f2f90b95d5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github---0x0mer-casnum-icnzm15ii","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"GitHub - 0x0mer/CasNum"}]}
```

