{"id":15857523,"url":"https://github.com/xtuc/fibonacci-forth","last_synced_at":"2026-02-16T22:06:35.147Z","repository":{"id":65989880,"uuid":"70127030","full_name":"xtuc/Fibonacci-forth","owner":"xtuc","description":"The Fibonacci sequence using Forth language with only two words","archived":false,"fork":false,"pushed_at":"2016-11-01T20:04:58.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T00:38:20.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Forth","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/xtuc.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":"2016-10-06T06:00:33.000Z","updated_at":"2021-12-15T22:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"38ffb547-bfff-49a3-900d-ce7cb414a496","html_url":"https://github.com/xtuc/Fibonacci-forth","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"42f6e0682dcd86e496b08b8c429777b1eef8773a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xtuc/Fibonacci-forth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2FFibonacci-forth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2FFibonacci-forth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2FFibonacci-forth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2FFibonacci-forth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtuc","download_url":"https://codeload.github.com/xtuc/Fibonacci-forth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2FFibonacci-forth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016369,"owners_count":26085828,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-10-05T20:23:50.614Z","updated_at":"2025-10-13T17:39:26.347Z","avatar_url":"https://github.com/xtuc.png","language":"Forth","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fibonacci-forth\nThe Fibonacci sequence using Forth language\n\nI used GNU Forth (https://www.gnu.org/software/gforth).\n\n## Explanations\n\nForth is a stack based language. All functions are called words.\n\n* `2dup` word duplicates `n` and `n-1` elements and put it on the top of the stack\n* `+` word takes `n` and `n-1` elements from the stack and sum them. The result goes on top of the stack.\n\n```forth\n: fib ( x1 x2 -- x1 x2 x3 )\n    2dup\n    +\n;\n```\n\nThe `fib` word sums the two last elements and put the result on the top of the stack, which is the Fibonacci sequence.\n\n## Result\n\nFirst number is the occurrence of the sequence and the second its result.\n\n![result](.github/result.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Ffibonacci-forth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtuc%2Ffibonacci-forth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Ffibonacci-forth/lists"}