{"id":13992199,"url":"https://github.com/sdiehl/numpile","last_synced_at":"2025-04-06T03:09:52.774Z","repository":{"id":26233838,"uuid":"29680638","full_name":"sdiehl/numpile","owner":"sdiehl","description":"A tiny 1000 line LLVM-based numeric specializer for scientific Python code.","archived":false,"fork":false,"pushed_at":"2022-01-02T21:55:16.000Z","size":66,"stargazers_count":409,"open_issues_count":5,"forks_count":52,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-30T02:07:30.427Z","etag":null,"topics":["compiler","ipython-notebook","jit","llvm-tutorial","numba","python","specializer","tutorial"],"latest_commit_sha":null,"homepage":"http://dev.stephendiehl.com/numpile/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdiehl.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}},"created_at":"2015-01-22T13:44:56.000Z","updated_at":"2025-03-18T13:38:59.000Z","dependencies_parsed_at":"2022-09-13T10:00:43.785Z","dependency_job_id":null,"html_url":"https://github.com/sdiehl/numpile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdiehl%2Fnumpile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdiehl%2Fnumpile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdiehl%2Fnumpile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdiehl%2Fnumpile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdiehl","download_url":"https://codeload.github.com/sdiehl/numpile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"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":["compiler","ipython-notebook","jit","llvm-tutorial","numba","python","specializer","tutorial"],"created_at":"2024-08-09T14:01:52.051Z","updated_at":"2025-04-06T03:09:52.736Z","avatar_url":"https://github.com/sdiehl.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"Numpile\n-------\n\nA tiny 1000 line LLVM-based numeric specializer for scientific Python code.\n\nYou really shouldn't use this for anything serious, it's just to demonstrate how\nyou might build one of these things from scratch. There's a lot of untapped\npotential and low hanging fruit around *selective embedded JIT specialization*\nfor array expression languages in the SciPython space.\n\nInstalling\n----------\n\nNumpile requires ``numpy`` and ``llvmlite`` (the latter includes needed\nLLVM libraries). You can either try to install them using your OS package\nmanager, or alternatively, using ``pip``:\n\n```bash\n$ pip install llvmlite\n$ pip install numpy\n```\n\nUsage\n-----\n\n```python\nimport numpy as np\nfrom numpile import autojit\n\n\n@autojit\ndef dot(a, b):\n    c = 0\n    n = a.shape[0]\n    for i in range(n):\n        c += a[i] * b[i]\n    return c\n\n\na = np.arange(100, 200, dtype='int32')\nb = np.arange(300, 400, dtype='int32')\nresult = dot(a, b) \nprint(result)\n```\n\nLicense\n-------\n\nReleased under the MIT License.\nCopyright (c) 2015, Stephen Diehl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdiehl%2Fnumpile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdiehl%2Fnumpile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdiehl%2Fnumpile/lists"}