{"id":48420066,"url":"https://github.com/ilayn/semicolon-lapack","last_synced_at":"2026-04-06T08:05:31.867Z","repository":{"id":338836486,"uuid":"1158813221","full_name":"ilayn/semicolon-lapack","owner":"ilayn","description":"C11 implementation of the venerable F77 LAPACK library","archived":false,"fork":false,"pushed_at":"2026-03-23T18:45:57.000Z","size":7488,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T14:10:31.562Z","etag":null,"topics":["blas","c","lapack","linear-algebra"],"latest_commit_sha":null,"homepage":"https://ilayn.github.io/semicolon-lapack/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilayn.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T00:07:43.000Z","updated_at":"2026-03-23T18:45:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ilayn/semicolon-lapack","commit_stats":null,"previous_names":["ilayn/semicolon-lapack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ilayn/semicolon-lapack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilayn%2Fsemicolon-lapack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilayn%2Fsemicolon-lapack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilayn%2Fsemicolon-lapack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilayn%2Fsemicolon-lapack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilayn","download_url":"https://codeload.github.com/ilayn/semicolon-lapack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilayn%2Fsemicolon-lapack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blas","c","lapack","linear-algebra"],"created_at":"2026-04-06T08:05:31.237Z","updated_at":"2026-04-06T08:05:31.857Z","avatar_url":"https://github.com/ilayn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semicolon-lapack\n\nA C implementation of LAPACK linear algebra library, removing the Fortran dependency while leveraging optimized vendor BLAS through the standard CBLAS interface.\n\n\n## Rationale\n[BLAS and LAPACK libraries](https://netlib.org/lapack) have been the foundation of numerical linear algebra for decades. Vendors have rewritten BLAS in C/Assembly for performance, but LAPACK remains in Fortran 77, and embedding Fortran into C projects brings a cascade of integration concerns, from name mangling and calling conventions to 1-based indexing and a Fortran runtime dependency. On top of that, the BLAS ecosystem is fragmented across providers (OpenBLAS, MKL, BLIS, Accelerate) each with their own symbol and linking conventions. A native C implementation built on the standard CBLAS interface sidesteps both problems.\n\nThis project is a line-by-line C translation of the reference LAPACK. Because we control the LAPACK layer code, our only external dependency is the ~150 CBLAS functions interface. This drastically reduces the ABI surface compared to projects wrapping vendor Fortran LAPACK, and makes LP64/ILP64 support a clean dual build without symbol mangling. A compile-time probe auto-detects the linked BLAS integer width (via a clever trick we learned from [libblastrampoline](https://github.com/JuliaLinearAlgebra/libblastrampoline)).\n\nIn practice, this means a full BLAS/LAPACK stack that needs only a C compiler. For example, one can build OpenBLAS with only its CBLAS option and link it against this project, and you have a complete LAPACK stack built entirely with a C compiler.\n\n## Current Status\n\nAll four precisions (double, single, complex, double-complex) are 99% translated (DMD and a few auxiliary routines are missing).\n\n\u003e [!NOTE]\n\u003e XBLAS extra-precision variants are out of scope.\n\nTests are ported from LAPACK's official test suite and fully ported (~450K parametrized test cases).\n\n\n## Disclosure\n\nThis work is heavily assisted by a paid LLM subscription with personal financing. While there is a lot of manual labor involved in porting the critical routines, a significant portion of the codebase was produced predominantly by the LLM, in particular:\n\n- some of the C code for the double precision routines,\n- porting the test code and Meson/CMocka conversion,\n- S, C, and Z precision generation from D routines (via script),\n- `.rst` file generation script,\n- generating C-style docstrings from the original Fortran comments.\n\nThis creates an obvious ethical concern and we acknowledge and share it, hence the disclosure. A lot of care has gone into ensuring the resulting C code is a mechanical translation with no algorithmic changes. If you notice something that looks like a breach of copyright, please let us know. That should not happen.\n\nThere are also intentional, human-made modifications. For example, the LU factorization in `getrf` incorporates a technique we learned from the excellent [faer](https://codeberg.org/sarah-quinones/faer) project. These are deliberate improvements, not accidental machine-generated code.\n\n\n## Dependencies\n\nA C11 compiler, [Meson](https://mesonbuild.com) \u003e= 1.1.0, and a CBLAS implementation (OpenBLAS, MKL, ...). Tests require [CMocka](https://cmocka.org) \u003e= 2.0. See the [building guide](doc/source/building.rst) for full details including BLAS vendor selection and ILP64 options.\n\n## Building\n\n```bash\nmeson setup builddir\nninja -C builddir\nmeson test -C builddir\n```\n\n## Documentation\n\n```bash\npip install -r doc/requirements.txt\ncd doc \u0026\u0026 make html\n```\n\nSee the [contributing guide](doc/source/contributing.rst) for details on the Doxygen + Sphinx pipeline.\n\n\n## License\n\nBSD-3-Clause. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filayn%2Fsemicolon-lapack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filayn%2Fsemicolon-lapack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filayn%2Fsemicolon-lapack/lists"}