{"id":15926543,"url":"https://github.com/christianparpart/actor-model","last_synced_at":"2025-03-24T14:32:40.270Z","repository":{"id":145095471,"uuid":"152812721","full_name":"christianparpart/actor-model","owner":"christianparpart","description":"C++17 Actor Model header-only library","archived":false,"fork":false,"pushed_at":"2025-02-19T07:21:43.000Z","size":67,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T03:54:37.338Z","etag":null,"topics":["actor-model","cplusplus","cplusplus-17","library"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/christianparpart.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":"2018-10-12T22:11:57.000Z","updated_at":"2025-02-23T03:00:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"5133bba8-db83-4cd6-8cbb-ca217a18f8ab","html_url":"https://github.com/christianparpart/actor-model","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/christianparpart%2Factor-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianparpart%2Factor-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianparpart%2Factor-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianparpart%2Factor-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christianparpart","download_url":"https://codeload.github.com/christianparpart/actor-model/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289768,"owners_count":20591130,"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":["actor-model","cplusplus","cplusplus-17","library"],"created_at":"2024-10-06T22:41:07.896Z","updated_at":"2025-03-24T14:32:40.256Z","avatar_url":"https://github.com/christianparpart.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++17 Actor Model header-only library\n\nThis is a C++17 header-only Actor Model library. It was written purely out of fun.\n\n### Example\n\n```cpp\n#include \u003cactor/actor.hpp\u003e\n#include \u003ccstdlib\u003e\n#include \u003ciostream\u003e\n\nint main()\n{\n    auto logger = actor::Actor([](actor::Receiver receiver) {\n        for (actor::Message\u0026 mesg : receiver)\n            mesg.match\u003cstring\u003e([](string const\u0026 s) { std::cout \u003c\u003c \"LOG(str): \" \u003c\u003c s \u003c\u003c '\\n'; })\n                .match\u003cint\u003e([](int val) { std::cout \u003c\u003c \"LOG(num): \" \u003c\u003c val \u003c\u003c '\\n'; })\n                .match\u003cbool\u003e([](bool val) { std::cout \u003c\u003c \"LOG(bool): \" \u003c\u003c boolalpha \u003c\u003c val \u003c\u003c '\\n'; })\n                .otherwise([] { std::cout \u003c\u003c \"LOG(?): Unhandled!\\n\"; });\n    });\n\n    logger \u003c\u003c std::string(\"Hello, World\");\n    logger \u003c\u003c 42;\n    logger \u003c\u003c true;\n    logger \u003c\u003c 2.81;\n\n    return EXIT_SUCCESS;\n}\n```\n\n### References\n\n* https://www.brianstorti.com/the-actor-model/\n* https://www.justsoftwaresolutions.co.uk/threading/all-the-worlds-a-stage.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianparpart%2Factor-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianparpart%2Factor-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianparpart%2Factor-model/lists"}