{"id":16012734,"url":"https://github.com/siraben/bf","last_synced_at":"2025-07-27T06:10:14.202Z","repository":{"id":111746849,"uuid":"459475731","full_name":"siraben/bf","owner":"siraben","description":"Fast, simple brainfuck interpreter in C","archived":false,"fork":false,"pushed_at":"2024-05-05T17:46:28.000Z","size":983,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T21:41:21.989Z","etag":null,"topics":["brainfuck","c","interpreter"],"latest_commit_sha":null,"homepage":"","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/siraben.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":"2022-02-15T07:38:38.000Z","updated_at":"2024-06-16T02:41:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"dab568c5-9f1f-4bc0-b2fa-f207dc71e37c","html_url":"https://github.com/siraben/bf","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/siraben%2Fbf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siraben%2Fbf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siraben%2Fbf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siraben%2Fbf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siraben","download_url":"https://codeload.github.com/siraben/bf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885859,"owners_count":20363642,"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":["brainfuck","c","interpreter"],"created_at":"2024-10-08T14:20:51.181Z","updated_at":"2025-03-17T20:31:38.555Z","avatar_url":"https://github.com/siraben.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brainfuck interpreter in C\n\n![Mandelbrot set program](./mandel.png)\n\nThis is an interpreter for Brainfuck I initially wrote in an evening\nin C.  The interpreter is essentially as fast as it can be without\nresorting to JIT compilation, because the following optimizations were\nperformed:\n\n- precomputing jump lengths between `[` and `]`\n- precomputing runs of `+`, `-`, `\u003e`, `\u003c`\n\nIn terms of relative speedups, here's what my MacBookPro18,3 reports\n(optimizations are cumulative, so subsequent ones include previous\nones).\n\n| Optimization     | Time to render mandelbrot set (s) |\n|------------------|-----------------------------------|\n| none             | 28.57                             |\n| precompute jumps | 15.25                             |\n| precompute runs  | 7.71                              |\n| no flush on .    | 6.49                              |\n\nSee the Mandelbrot set with\n\n```ShellSession\n$ nix run github:siraben/bf \u003c(curl -s https://raw.githubusercontent.com/erikdubbelboer/brainfuck-jit/master/mandelbrot.bf)\n```\n\n## Building\nWith Nix, run `nix build github:siraben/bf`.\n\n```ShellSession\n$ gcc -O2 -o bf bf.c\n```\n\n## Tested Programs\n- Mandelbrot set\n- Hello world\n- ROT13\n- [Lost Kingdom](https://github.com/rdebath/LostKingdom) (text\n  adventure game)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiraben%2Fbf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiraben%2Fbf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiraben%2Fbf/lists"}