{"id":20333331,"url":"https://github.com/daneelsan/brainfuckz","last_synced_at":"2026-05-30T18:31:36.282Z","repository":{"id":133848752,"uuid":"348594318","full_name":"daneelsan/brainfuckz","owner":"daneelsan","description":"A Brainfuck interpreter written in Zig","archived":false,"fork":false,"pushed_at":"2023-09-08T19:08:11.000Z","size":210,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T12:46:27.355Z","etag":null,"topics":["brainfuck","virtual-machine","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/daneelsan.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":"2021-03-17T05:49:02.000Z","updated_at":"2024-07-12T21:31:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"64a079aa-56f4-4c82-bc09-eaf3fde946e8","html_url":"https://github.com/daneelsan/brainfuckz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daneelsan/brainfuckz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fbrainfuckz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fbrainfuckz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fbrainfuckz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fbrainfuckz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daneelsan","download_url":"https://codeload.github.com/daneelsan/brainfuckz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fbrainfuckz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33705207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":["brainfuck","virtual-machine","zig"],"created_at":"2024-11-14T20:30:50.046Z","updated_at":"2026-05-30T18:31:36.277Z","avatar_url":"https://github.com/daneelsan.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brainfuckz\n\nA Brainfuck interpreter written in [Zig](https://ziglang.org/).\n\n```bash\n$ brainfuckz help\nUsage: brain [command]\n\n Commands:\n\n code [BRAIN]     Give brainfuck code to execute\n file [PATH]      Execute the code found in a .brain file\n help             Print this help message and exit\n test             Enters interactive mode\n```\n\n## Example\n\n### **code**\n\nRun a simple Brainfuck program that prints the letter 'H':\n\n```bash\n$ brainfuckz code '\u003e+++++++++[\u003c++++++++\u003e-]\u003c.'\nH\n```\n\nPrint the classic \"Hello world!\":\n\n```bash\n$ brainfuckz code '\u003e+++++++++[\u003c++++++++\u003e-]\u003c.\u003e+++++++[\u003c++++\u003e-]\u003c+.+++++++..+++.[-]\n\u003e++++++++[\u003c++++\u003e-] \u003c.\u003e+++++++++++[\u003c++++++++\u003e-]\u003c-.--------.+++\n.------.--------.[-]\u003e++++++++[\u003c++++\u003e- ]\u003c+.[-]++++++++++.'\nHello world!\n```\n\n### **file**\n\nRun one of the many Brainfuck programs stored in the `program/` subfolder:\n\n```bash\n$ brainfuckz file program/MorseTranslate.brain\nBrainfuck\n-... ..--.- ..--.- ..--.- ..--.- ..--.- ..--.- ..--.- ..--.- -...-\n```\n\nA [Mandelbrot](http://esoteric.sange.fi/brainfuck/utils/mandelbrot/) program:\n\n```bash\n$ brainfuckz file program/Mandelbrot.brain\n```\n\n![image](images/Mandelbrot.png)\n\n### **test**\n\nEnter a simple Brainfuck REPL and test simple code:\n\n```bash\n$ brainfuckz test\nbrainfuckz\u003e \u003e+++++++++[\u003c++++++++\u003e-]\u003c.\nH\nbrainfuckz\u003e\n```\n\n## Build\n\n```bash\n# Pull down this project\n$ git clone https://github.com/daneelsan/brainfuckz.git\n$ cd brainfuckz\n\n# Tested on\n$ zig version\n0.14.0\n\n# Build in ReleaseFast mode to speed up performance by \u003e10x compared to the default debug mode\n$ zig build -Doptimize=ReleaseFast\n\n# For convenience, copy the executable to the top-level directory\n$ cp zig-out/bin/brainfuckz brainfuckz\n```\n\n## Resources\n\n-   [Basics of BrainFuck](https://gist.github.com/roachhd/dce54bec8ba55fb17d3a.js)\n-   https://thorstenball.com/blog/2017/01/04/a-virtual-brainfuck-machine-in-go/\n-   http://www.bf.doleczek.pl/\n-   https://en.wikipedia.org/wiki/Brainfuck\n-   https://github.com/daneelsan/BrainVirtualMachine\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaneelsan%2Fbrainfuckz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaneelsan%2Fbrainfuckz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaneelsan%2Fbrainfuckz/lists"}