{"id":14967192,"url":"https://github.com/jedbrooke/pi_spigot","last_synced_at":"2026-01-21T05:03:46.996Z","repository":{"id":40557173,"uuid":"460323811","full_name":"jedbrooke/pi_spigot","owner":"jedbrooke","description":"Pi On Golem","archived":false,"fork":false,"pushed_at":"2024-05-07T05:10:39.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T18:55:59.429Z","etag":null,"topics":["bbp","cpp","golem","pi","x86-assembly"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedbrooke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-17T07:18:49.000Z","updated_at":"2024-05-07T05:10:43.000Z","dependencies_parsed_at":"2024-09-14T03:49:43.067Z","dependency_job_id":"d8477120-7828-4293-9114-b3536a31780d","html_url":"https://github.com/jedbrooke/pi_spigot","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.11538461538461542","last_synced_commit":"a0fbc4128e508adc10b28b9ad3bd25dd3eaf85d3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jedbrooke/pi_spigot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbrooke%2Fpi_spigot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbrooke%2Fpi_spigot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbrooke%2Fpi_spigot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbrooke%2Fpi_spigot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedbrooke","download_url":"https://codeload.github.com/jedbrooke/pi_spigot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbrooke%2Fpi_spigot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28627386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbp","cpp","golem","pi","x86-assembly"],"created_at":"2024-09-24T13:37:36.092Z","updated_at":"2026-01-21T05:03:46.977Z","avatar_url":"https://github.com/jedbrooke.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pi Spigot\n## a high performance pi spigot for finding far out digits of pi\n\nthis pi spigot uses high performance C++ and inline x86 asm to find far out digits of pi in base 16.\n\ncurrent performance:\n```\n50 hexits around the 1millionth hexit: 1.5s\n```\nUsage:\n```\n./pi_spigot [-f] n [range (default 50)]\n```\n`n` is the starting position to find hexits from, range is how many hexits to find\n\nthe `-f` flag will make the program output all hexits from 0 to `n`\n\n\n\n## TODO:\n - [x] figure out why it breaks after around 500mil\n - [x] implement basic [BBP formula](https://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%93Plouffe_formula)\n - [x] look into implementing [Bellard's formula](https://en.wikipedia.org/wiki/Bellard%27s_formula)\n - [x] implement custom 64bit fractional types\n    - [x] experiment with *faster* 64bit division\n - [x] **implement *enhanced* arbitrary depth fractional types for more precision**\n    - [x] addition\n    - [x] multiplication\n    - [x] division (based on multiplication with nr/gs)\n    - [x] real division with hardware `div` instruction \n    - [x] (optional side quest) experiment with generalising to arbitrary bit debth\n - [ ] parallelize with multi-threading\n   - [ ] (optional side quest) gpu accelerated version\n - [ ] speed up with `avx`\n - [ ] distribute over many systems with Golem's `yapapi` (see [POG](https://github.com/jedbrooke/pog))\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedbrooke%2Fpi_spigot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedbrooke%2Fpi_spigot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedbrooke%2Fpi_spigot/lists"}