{"id":18454961,"url":"https://github.com/youpong/cpp-sleep-sort","last_synced_at":"2025-04-22T17:00:07.797Z","repository":{"id":70851251,"uuid":"598906411","full_name":"youpong/cpp-sleep-sort","owner":"youpong","description":"C++20 Implementation of Sleep Sort using std::thread","archived":false,"fork":false,"pushed_at":"2023-03-13T06:31:14.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T14:55:10.105Z","etag":null,"topics":["cmake","cpp","cpp20","docker","sleep-sort","std-thread"],"latest_commit_sha":null,"homepage":"https://youpong.github.io/cpp-sleep-sort/","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/youpong.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-02-08T03:19:50.000Z","updated_at":"2023-12-16T07:06:00.000Z","dependencies_parsed_at":"2024-12-25T04:41:43.633Z","dependency_job_id":"680adddf-b595-4c51-90b9-1542e933190e","html_url":"https://github.com/youpong/cpp-sleep-sort","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/youpong%2Fcpp-sleep-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fcpp-sleep-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fcpp-sleep-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fcpp-sleep-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youpong","download_url":"https://codeload.github.com/youpong/cpp-sleep-sort/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285114,"owners_count":21405295,"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":["cmake","cpp","cpp20","docker","sleep-sort","std-thread"],"created_at":"2024-11-06T08:06:41.266Z","updated_at":"2025-04-22T17:00:07.753Z","avatar_url":"https://github.com/youpong.png","language":"C++","readme":"# README.md\n[![ci](https://github.com/youpong/cpp-sleep-sort/actions/workflows/ci.yml/badge.svg)](https://github.com/youpong/cpp-sleep-sort/actions/workflows/ci.yml)\n\nThe C++20 implementation of Sleep Sort using std::thread.\n\n## Prerequisites\n\nThe following versions or newer required.\n\nFor Windows:\n* MS Visual Studio 2022\n\nFor Ubuntu, MacOS:\n* CMake 3.22\n* GNU Make-4.3\n* C++20 compliant compiler: clang-15.0.6 or g++-11.3.0\n\nOptional:\n* clang-format-15.0.6\n* Doxygen-1.9.1\n* Graphviz-2.43.0\n\n## Usage\n\n1. Generate the build system and navigate to the directory:\n\n```bash\n$ cmake -Bbuild\n```\noptoins(default):\n* BUILD\\_DOC(OFF): Build API Documents\n* ENABLE\\_FORMAT(OFF): Enable Format sources\n\nExample:\n```\n$ cmake -DBUILD_DOC=ON -DENABLE_FORMAT=ON -Bbuild\n```\n\n2. build and test:\n\nWhen `BUILD_DOC` is ON, API document is also generated.\n\n```bash\n$ cd build\n$ cmake --build . -j\n$ ctest -C Debug\n```\n\n3. Format sources anytime using `clangformat` target:\n\nrequires `ENABLE_FORMAT` is `ON`.\n\n```bash\n$ cmake --build . --target clangformat\n```\n\n## Docker\n\n1. Build Docker image:\n```bash\n$ docker build -t sleep-sort .\n```\n\n2. Run Docker container:\n```bash\n$ docker run --rm -it -v $PWD:/sleep-sort -w /sleep-sort sleep-sort\n```\n\n## References\n\n* [Go implementation](https://github.com/youpong/sleep-sort) of sleep sort.\n* zemasoft, [ClangFormat.cmake module](https://github.com/zemasoft/clangformat-cmake)\n\n## Lisence\n\nMIT\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupong%2Fcpp-sleep-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoupong%2Fcpp-sleep-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupong%2Fcpp-sleep-sort/lists"}