{"id":27867922,"url":"https://github.com/rootmos/lua-bigint","last_synced_at":"2025-05-04T22:55:36.312Z","repository":{"id":288488229,"uuid":"968282499","full_name":"rootmos/lua-bigint","owner":"rootmos","description":"A small arbitrary precision integer Lua library","archived":false,"fork":false,"pushed_at":"2025-05-04T20:08:03.000Z","size":353,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-04T22:55:32.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rootmos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-17T20:09:41.000Z","updated_at":"2025-04-28T06:51:40.000Z","dependencies_parsed_at":"2025-04-18T10:32:46.790Z","dependency_job_id":"5895fb76-3fe1-4954-838c-3f9194dfe457","html_url":"https://github.com/rootmos/lua-bigint","commit_stats":null,"previous_names":["rootmos/lua-bigint"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Flua-bigint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Flua-bigint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Flua-bigint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Flua-bigint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootmos","download_url":"https://codeload.github.com/rootmos/lua-bigint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252411824,"owners_count":21743613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-05-04T22:55:35.907Z","updated_at":"2025-05-04T22:55:36.303Z","avatar_url":"https://github.com/rootmos.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-bigint\n[![Tests](https://github.com/rootmos/lua-bigint/actions/workflows/tests.yaml/badge.svg)](https://github.com/rootmos/lua-bigint/actions/workflows/tests.yaml)\n\nA small arbitrary precision integer Lua library,\nwith an [exhaustive test suite](tests/src) using Haskell's\n[QuickCheck](https://hackage.haskell.org/package/QuickCheck)\nand [HsLua](https://hackage.haskell.org/package/hslua).\n\n## Example\n```lua\nlocal N = require(\"bignat\")\n\nlocal a = N.fromstring(\"78840069980359889583804398923873743190317791505792283599345825435746711\")\nlocal b = N.fromstring(\"6952646245343968493900761108507\")\nlocal c = N.fromstring(\"8177365527942\")\nlocal d = N.fromstring(\"364781755081040559817863568837659573725854950265808819869491980\")\nlocal f = 7319870\n\nprint((a - b + 0)//c + ((d//2)*2)*f)\n```\n```\n2670155025574697618046118568329646385071709964952686972394605618273230\n```\n\n## Try it out\nDownload [bignat.lua](https://github.com/rootmos/lua-bigint/releases/latest/download/bignat.lua)\nfrom the [latest](https://github.com/rootmos/lua-bigint/releases/latest) release\nand chuck it into Lua:\n```sh\nlua -l N=bignat -e 'print(N.build_info)'\n```\n\n### Or grab the latest pre-release using [`gh`](https://cli.github.com/manual/gh_release)\n```sh\ngh release download \"$(gh release list --json tagName --jq '.[0].tagName')\" --pattern bignat.lua\n```\n\n### Or build from the source\n```\n./mk-dist \u0026\u0026 ls dist\n```\n\n### Or use the development scripts\nThe [`run`](run) and [`repl`](repl) scripts:\n* download and verify the Lua version specified in the [`deps/lua/lua.json`](deps/lua/lua.json) file,\n* [builds](deps/lua/build) both 32 and 64 bit versions and select which depending on the `LUA_BITS` environment variable,\n* and adds the [`src`](src) directory to Lua's `package.path`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Flua-bigint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootmos%2Flua-bigint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Flua-bigint/lists"}