{"id":28630778,"url":"https://github.com/ragibasif/bitter","last_synced_at":"2025-08-17T13:05:29.413Z","repository":{"id":298198318,"uuid":"994466302","full_name":"ragibasif/bitter","owner":"ragibasif","description":"An interpreter for the Bitter esoteric programming language written in C.","archived":false,"fork":false,"pushed_at":"2025-06-18T02:57:55.000Z","size":5709,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-18T03:33:47.855Z","etag":null,"topics":["bitter","c-program","c-programming","c-programming-language","c-project","compiler","esolang","esoteric-language","esoteric-programming-language","interpreter","virtual-machine"],"latest_commit_sha":null,"homepage":"https://esolangs.org/wiki/Bitter","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/ragibasif.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,"zenodo":null}},"created_at":"2025-06-02T01:22:05.000Z","updated_at":"2025-06-18T02:57:58.000Z","dependencies_parsed_at":"2025-06-09T23:23:20.372Z","dependency_job_id":"a1406d2d-205b-4653-ad1f-fbc0ac197918","html_url":"https://github.com/ragibasif/bitter","commit_stats":null,"previous_names":["ragibasif/bitter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ragibasif/bitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragibasif%2Fbitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragibasif%2Fbitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragibasif%2Fbitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragibasif%2Fbitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragibasif","download_url":"https://codeload.github.com/ragibasif/bitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragibasif%2Fbitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270850240,"owners_count":24656470,"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-08-17T02:00:09.016Z","response_time":129,"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":["bitter","c-program","c-programming","c-programming-language","c-project","compiler","esolang","esoteric-language","esoteric-programming-language","interpreter","virtual-machine"],"created_at":"2025-06-12T13:07:59.600Z","updated_at":"2025-08-17T13:05:29.401Z","avatar_url":"https://github.com/ragibasif.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitter Interpreter in C\n\nA C implementation of the Bitter esoteric programming language - a minimalist\n`Brainfuck` variant that operates on single-bit memory cells. Project built for\n**educational and recreational purposes.**\n\n[\"Like Brainfuck - only much, much worse.\" - User:DMC, creator of Bitter](https://esolangs.org/wiki/Bitter)\n\n## Hello, World\n\nThe following Bitter source code outputs \"Hello, World!\\n\" to `stdout`:\n\n![Hello, World!\\n](./assets/hello_world.svg)\n\n![Bitter REPL Demo 00](./assets/00_demo_hello_world_repl.gif)\n\n## About Bitter\n\nBitter is a Turing-complete esoteric programming language created by [User:DMC](https://esolangs.org/wiki/User:DMC)\nthat operates on single-bit memory cells.\n\nKey features:\n\n- 1-bit memory cells\n- Only 4 core commands: `\u003c`, `\u003e`, `(`, `)`\n- 2 interpreter commands: `!`, `#`\n- Infinite, unbounded memory tape (positive direction only)\n- Memory initialized to 0\n\n## Language Commands\n\n| Command | Description                                                |\n| ------- | ---------------------------------------------------------- |\n| `\u003e`     | Move pointer right by 1 and invert the bit                 |\n| `\u003c`     | Move pointer left by 1 and invert the bit                  |\n| `(`     | If current bit is 1, continue; else jump past matching `)` |\n| `)`     | Jump back to matching `(`                                  |\n| `!`     | (Debug) Dump memory from 0 to highest data pointer reached |\n| `#`     | (Debug) Pause execution and dump memory                    |\n\n![increment and invert](./assets/inc_invert.svg)\n\n![decrement and invert](./assets/dec_invert.svg)\n\n## Installation\n\n1. Clone this repository:\n\n   ```shell\n   git clone https://github.com/ragibasif/bitter.git\n   cd bitter\n   ```\n\n2. Run `make`\n\n   ```shell\n   make all\n   ```\n\n## Usage\n\n### REPL\n\nRun the following in the command line to start the `REPL`:\n\n```shell\n./bitter\n```\n\nTo exit out of the `REPL`, enter the following:\n\n```shell\n:quit\n```\n\n### Source File\n\nRun the `./bitter` command with the `\u003cfilename\u003e.bitr` as the argument:\n\n```shell\n./bitter \u003cfilename\u003e.bitr\n```\n\n## Examples\n\n```shell\nexamples/\n├── 00_hello_world.bitr -\u003e Load memory 0 through 111 with 'Hello, World!\\n'\n├── 01_truth_machine_0.bitr -\u003e initialize data[0] = 0 and end on data[1] = 0\n└── 02_truth_machine_1.bitr -\u003e infinite loop: fill memory with 1 and dump memory\n```\n\nExample of evaluating the truth machine from the `REPL`:\n\n![REPL Truth Machine](./assets/01_repl_demo_tm0.gif)\n\nExample of evaluating the truth machine from a source file:\n\n![Source File Truth Machine](./assets/02_src_file_demo_tm0.gif)\n\nExample of evaluating the infinite loop truth machine from a source file:\n\n![Source File Infinite Loop Truth Machine](./assets/03_src_file_demo_tm1_infinite_loop.gif)\n\n## Acknowledgements\n\n- [Bitter on Esolang Wiki](https://esolangs.org/wiki/Bitter)\n- [User:DMC - Creator of Bitter](https://esolangs.org/wiki/User:DMC)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragibasif%2Fbitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragibasif%2Fbitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragibasif%2Fbitter/lists"}