{"id":19789623,"url":"https://github.com/webfreak001/cyclic","last_synced_at":"2026-03-02T09:34:21.437Z","repository":{"id":146626129,"uuid":"114177842","full_name":"WebFreak001/cyclic","owner":"WebFreak001","description":"one-time allocation fixed memory nogc array implementation using a cyclic stack/malloc'd array with high efficiency putBack \u0026 putFront","archived":false,"fork":false,"pushed_at":"2017-12-19T21:33:26.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T14:48:12.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","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/WebFreak001.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":"2017-12-13T23:03:07.000Z","updated_at":"2024-11-09T20:28:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"eaa26142-a198-4eba-b980-7136f569c37e","html_url":"https://github.com/WebFreak001/cyclic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/WebFreak001/cyclic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fcyclic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fcyclic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fcyclic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fcyclic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebFreak001","download_url":"https://codeload.github.com/WebFreak001/cyclic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fcyclic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29997213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":[],"created_at":"2024-11-12T06:34:05.285Z","updated_at":"2026-03-02T09:34:21.393Z","avatar_url":"https://github.com/WebFreak001.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cyclic\n\none-time allocation fixed memory nogc array implementation using a cyclic stack/malloc'd array with high efficiency putBack \u0026 putFront.\n\nThis is basically just a normal array without allocations and instead of having a continous stream of memory it can be cut off once.\n\nOptimal for a dequeue with fairly reliable (but not guaranteed nor safe) multi-threaded access.\n\n```d\n// stack array, taking up to 4kb by default\nCyclicArray!int array;\nassert(array.length == 0);\narray ~= 5;\nassert(!array.empty);\nassert(array.front == 5);\nassert(array[0] == 5);\narray ~= [4, 3];\n\nassert(array == [5, 4, 3]);\n\n// same efficiency as insertBack/put/concat\narray.insertFront(5);\n\n// heap array using std.container.Array with 16 elements\nauto heapArray = CyclicArray!(int, 0)(16);\n\n// custom memory using Array\nauto myArray = Array!int(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);\nauto customArray = CyclicArray!(int, 0)(myArray[0 .. 6]);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfreak001%2Fcyclic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfreak001%2Fcyclic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfreak001%2Fcyclic/lists"}