{"id":16649938,"url":"https://github.com/datamine/rubeef","last_synced_at":"2025-12-28T04:10:58.113Z","repository":{"id":86599570,"uuid":"69430375","full_name":"Datamine/Rubeef","owner":"Datamine","description":"Brainfuck interpreter written in Ruby","archived":false,"fork":false,"pushed_at":"2016-10-05T07:16:42.000Z","size":4200,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T06:46:25.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Datamine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-28T05:54:12.000Z","updated_at":"2016-10-03T22:27:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"488fa5fc-6573-4d59-bdb4-7a0b6abd5848","html_url":"https://github.com/Datamine/Rubeef","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/Datamine%2FRubeef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FRubeef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FRubeef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamine%2FRubeef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Datamine","download_url":"https://codeload.github.com/Datamine/Rubeef/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243224579,"owners_count":20256728,"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":[],"created_at":"2024-10-12T09:14:19.959Z","updated_at":"2025-12-28T04:10:58.065Z","avatar_url":"https://github.com/Datamine.png","language":"Python","readme":"## Brainfuck interpreter in Ruby\n\nRun with `ruby brainfuck-interpreter.rb \u003cpath to your bf script here\u003e`\n\nSome tests included, use `./runtest.sh \u003cpath to bf script in testscripts\u003e` to run the\nruby interpretation against one of the reference interpreters.\n\n## Interesting things I learned:\n\nIf you process input using `require 'io/console'` and `STDIN.getch`, the enter/return\nkey (at least on OS X) is parsed as ASCII 13. If you use `STDIN.read(1)`, it's parsed\nas ASCII 10. Same in python for `sys.stdin.read(1)`. This threw me off while trying\nto handle input properly. Most bf scripts seem to be written to accommodate only \nASCII 10 as a newline indicator, not ASCII 13 as well (and feeding in one when the \nscript expects the other can result in all kinds of strange bugs).\n\n## Caveats:\n\nThe canonical BF interpreter is really only meant to support 8-bit cells.\nI did not put a size restriction on my cells, though it would be easy to do so.\n\n## Credits:\n\n- Python reference versions from https://github.com/pablojorge/brainfuck\n- Test scripts from that repository as well, except for the following:\n- `squares.bf` by [Daniel B Cristofani](http://www.hevanet.com/cristofd/brainfuck/)\n- `a.bf` and `multiply.bf` from [LearnXinYminutes](https://learnxinyminutes.com/docs/bf/). Note that `multiply.bf` doesn't seem to work at the command line. It works in this [bf visualizer](https://fatiherikli.github.io/brainfuck-visualizer/#), so I'm not sure what's up with that.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamine%2Frubeef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamine%2Frubeef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamine%2Frubeef/lists"}