{"id":18026788,"url":"https://github.com/yegor256/fibonacci","last_synced_at":"2025-03-27T01:31:25.500Z","repository":{"id":43172822,"uuid":"446860265","full_name":"yegor256/fibonacci","owner":"yegor256","description":"Fibonacci algorithm implemented in a few compilable languages in different programming flavors","archived":false,"fork":false,"pushed_at":"2025-03-14T13:23:33.000Z","size":3742,"stargazers_count":14,"open_issues_count":6,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T21:06:45.026Z","etag":null,"topics":["cpp","csharp","eiffel","fibonacci","golang","haskell","java","lisp","object-oriented-programming","oop","performance-testing"],"latest_commit_sha":null,"homepage":"https://yegor256.github.io/fibonacci/","language":"C++","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/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-01-11T14:44:47.000Z","updated_at":"2025-03-14T12:39:41.000Z","dependencies_parsed_at":"2024-05-18T13:29:27.548Z","dependency_job_id":"aca3ca5e-1943-47a6-b0fc-46d8a51a8653","html_url":"https://github.com/yegor256/fibonacci","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/yegor256%2Ffibonacci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ffibonacci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ffibonacci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Ffibonacci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/fibonacci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764704,"owners_count":20668462,"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":["cpp","csharp","eiffel","fibonacci","golang","haskell","java","lisp","object-oriented-programming","oop","performance-testing"],"created_at":"2024-10-30T08:08:03.038Z","updated_at":"2025-03-27T01:31:23.355Z","avatar_url":"https://github.com/yegor256.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fibonacci Algorithm in a Few Languages\n\n![mr. Fibonacci](https://raw.githubusercontent.com/yegor256/fibonacci/master/logo.svg)\n\n[![new](https://github.com/yegor256/fibonacci/actions/workflows/make.yml/badge.svg)](https://github.com/yegor256/fibonacci/actions/workflows/make.yml)\n\nHere we compare [Fibonacci](https://en.wikipedia.org/wiki/Fibonacci_number)\nalgorithm implemented in C++, Java, Rust, Lisp, Haskell, Eiffel, and some other\n[compiled](https://en.wikipedia.org/wiki/Compiled_language) programing languages\nin different programming styles, like object-oriented, procedural, functional,\netc. We are trying to understand which style compiles to shorter binary code and\nworks faster. If you can imagine some other way how this algorithm\ncould be implemented in C++ or other languages,\ndon't hesitate to submit a pull request.\n\nRecent results are published here:\n\n* [32nd Fibonacci number](https://yegor256.github.io/fibonacci/index.html)\n* [16th](https://yegor256.github.io/fibonacci/sixteen.html)\n* [7th](https://yegor256.github.io/fibonacci/seven.html)\n\nTo build it locally, just run:\n\n```bash\nmake\n```\n\nThe result will be in `summary.txt` file.\n\nTo analyze the quality of the code in this repo and make sure\nthere are no hidden defects, run all static analyzers and style checkers:\n\n```bash\nmake sa\n```\n\nYou need to have [Clang](https://clang.llvm.org),\n[Make](https://www.gnu.org/software/make/),\n[Rust](https://www.rust-lang.org/tools/install),\n[Common Lisp](https://lisp-lang.org/learn/getting-started/),\n[Haskell](https://www.haskell.org/),\n[GraalVM](https://www.graalvm.org/java/quickstart/),\n[Ruby](https://www.ruby-lang.org/en/documentation/installation/),\n[Go](https://go.dev/doc/install),\n[Clang-Tidy](https://clang.llvm.org/extra/clang-tidy/),\n[Clang-Format](https://clang.llvm.org/docs/ClangFormat.html),\n[cppcheck](https://github.com/danmar/cppcheck),\nand [cpplint](https://github.com/cpplint/cpplint) installed.\nIt's better to check [this file][pr] for the full list of\ndependencies.\n\n[pr]: https://github.com/yegor256/fibonacci/blob/master/.github/workflows/pr.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Ffibonacci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Ffibonacci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Ffibonacci/lists"}