{"id":24423909,"url":"https://github.com/mopp/cider","last_synced_at":"2026-02-02T14:09:44.891Z","repository":{"id":195534779,"uuid":"691817878","full_name":"mopp/cider","owner":"mopp","description":"Just hobby Fiber library written in C","archived":false,"fork":false,"pushed_at":"2024-09-07T00:39:05.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T03:07:52.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mopp.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":"2023-09-15T00:45:06.000Z","updated_at":"2024-09-07T00:39:09.000Z","dependencies_parsed_at":"2024-09-07T02:59:01.610Z","dependency_job_id":"7cb67cab-ac06-4f54-8f38-fe0181f969cb","html_url":"https://github.com/mopp/cider","commit_stats":null,"previous_names":["mopp/cider"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mopp/cider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fcider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fcider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fcider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fcider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mopp","download_url":"https://codeload.github.com/mopp/cider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fcider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260572265,"owners_count":23030039,"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":"2025-01-20T10:48:17.331Z","updated_at":"2026-02-02T14:09:39.871Z","avatar_url":"https://github.com/mopp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cider\n\nJust hobby Fiber library written in C\n\n## Examples\n\n```c\nstatic void hoge(size_t argc, void* _argv[]) {\n    log_debug(\"hoge: started. argc = %zd\", argc);\n\n    await_sleep(argc);\n    record_step(argc);\n\n    log_debug(\"hoge: returning. argc = %zd\", argc);\n}\n\nstatic void func(size_t argc, void* _argv[]) {\n    log_debug(\"func: started. argc = %zd\", argc);\n\n    log_info(\"1st await\");\n    await(async(hoge, 10, NULL));\n    log_info(\"1st awaited\");\n\n    log_info(\"2nd await\");\n    await(async(hoge, 2, NULL));\n    log_info(\"2nd awaited\");\n\n    log_debug(\"func: returning. argc = %zd\", argc);\n}\n\nint main(int argc, char* argv[]) {\n    log_info(\"Begin.\");\n\n    cider_init();\n\n    join_ciders(\n        async(hoge, 20, NULL),\n        async(func, 0, NULL));\n    assert_steps(10, 2, 20);\n\n    log_info(\"Succeeded.\");\n\n    return 0;\n}\n```\n\nSee the other tests in more details.\n\n## How to develop\n\n```console\nmake test\n\n# To execute each test file.\nmake test/example \u0026\u0026 test/example\n\nmake clean\n```\n\nNOTE: It don't aware of the change of headers.\n\n## TODOs\n\n- Add more tests\n- Improve readability\n- Add Fiber local storage\n- Introduce N Threads M Fibers model\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmopp%2Fcider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmopp%2Fcider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmopp%2Fcider/lists"}