{"id":31921650,"url":"https://github.com/sueszli/sheaf","last_synced_at":"2025-10-13T22:49:23.004Z","repository":{"id":314974406,"uuid":"1057578015","full_name":"sueszli/sheaf","owner":"sueszli","description":"simple task dispatching primitives","archived":false,"fork":false,"pushed_at":"2025-09-28T11:13:20.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-28T13:11:35.957Z","etag":null,"topics":["coroutines","parallel-computing"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sueszli.png","metadata":{"files":{"readme":"README","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T23:34:41.000Z","updated_at":"2025-09-28T11:13:24.000Z","dependencies_parsed_at":"2025-09-16T01:20:37.973Z","dependency_job_id":"6eef793f-1144-4546-9b11-6e29cb93a5f9","html_url":"https://github.com/sueszli/sheaf","commit_stats":null,"previous_names":["sueszli/sheaf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sueszli/sheaf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fsheaf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fsheaf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fsheaf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fsheaf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sueszli","download_url":"https://codeload.github.com/sueszli/sheaf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fsheaf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017136,"owners_count":26085984,"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-10-13T02:00:06.723Z","response_time":61,"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":["coroutines","parallel-computing"],"created_at":"2025-10-13T22:48:20.634Z","updated_at":"2025-10-13T22:49:22.999Z","avatar_url":"https://github.com/sueszli.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"sheaf: task dispatching made simple\n\n     ⣀                    ⢀⡀  \n    ⣰⣿⡆               ⣄ ⢀⣴⣿⡇  \n ⢠⣄ ⣿⣿⡿ ⢀⡀           ⣸⣿ ⢸⣿⡿   \n ⠈⣿⣆⠘⠟⢀⣼⣿⠁    ⢀    ⣠⡀⢹⣿⡇⠈⣁⣤⣶⠖ \n ⣀⠙⢿⡆⢰⣿⡿⠃    ⣰⣿⡇   ⣿⣧⠈⠏⢠⣾⠿⠿⠋  \n ⢻⣷⡀⠁⠈⢁⣤⣶⠁⣴⡄⢸⣿⣿⡇   ⣿⣿⠂⣀⣠⣤⣤⡄\n ⠈⢿⣿ ⣴⣿⡿⠃ ⣿⣷ ⠟⢁⣠⣶⠇ ⠈⠁⢴⣿⡿⠟⠉  \n   ⠙ ⠛⠋⠁ ⣦⠈⢿⠃⣰⣿⡿⠏  ⣾⠆    ⣴⣿ \n    ⣿    ⣿⣷⡀ ⠋⣁⣤⡤ ⢰⡏ ⢸⣆ ⣾⣿⡿   \n    ⣿    ⢻⣿⠃⣰⣿⣿⠟ ⢀⡿  ⢿⣿⡄⠹⠛⢁⣤⡤  \n    ⣿     ⠈⡀⠛⠋⠁  ⣼⡇⢰⣆⠈⢿⠇⢠⣾⣿⠟  \n    ⣿     ⢸⠃    ⢀⣿ ⢸⣿⣆⠈ ⠋⣉⣠⡄ \n    ⣿     ⣿     ⢸⡇ ⠘⢿⡟⢀⣶⣿⡿⠋   \n    ⢻⡆   ⢸⡏     ⣾⡇  ⢀⣀⠘⠛⠉     \n    ⠘⠓   ⠘⠃     ⠛⠁  ⠘⠋        \n\n# features\n\na minimal, zero-dependency, proof-of-concept library for task dispatching in c:\n\n- pthreads for compute-heavy tasks, inspired by goroutines\n- cooperative async for io-heavy tasks, inspired by the javascript event loop\n\n# usage\n\n```\n$ tail -n +10 src/demo_go.c\n\n    static void task(u32 id) {\n        usleep((u32)((rand() % 1000) * 1000));\n        printf(\"finished task %u\\n\", id);\n    }\n\n    i32 main(void) {\n        u32 *results = malloc(4 * sizeof(u32));\n        defer({ free(results); printf(\"cleaned up\\n\"); });\n\n        go({ task(1); });\n        go({ task(2); });\n        go({ task(3); });\n\n        wait();\n        return EXIT_SUCCESS;\n    }\n\n$ make demo-go\n\n    finished task 2\n    finished task 1\n    finished task 3\n    cleaned up\n\n$ tail -n +6 src/demo_async.c\n\n    static void ping(void) {\n        for (u8 i = 0; i \u003c 2; i++) {\n            printf(\"ping\\n\");\n            async_yield();\n        }\n    }\n\n    static void pong(void) {\n        for (u8 i = 0; i \u003c 2; i++) {\n            printf(\"pong\\n\");\n            async_yield();\n        }\n    }\n\n    i32 main(void) {\n        async_spawn(ping);\n        async_spawn(pong);\n        async_run_all();\n        return EXIT_SUCCESS;\n    }\n\n$ make demo-async\n\n    ping\n    pong\n    ping\n    pong\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsueszli%2Fsheaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsueszli%2Fsheaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsueszli%2Fsheaf/lists"}