{"id":28416915,"url":"https://github.com/bamless/datastruct","last_synced_at":"2025-06-25T05:30:35.433Z","repository":{"id":294235633,"uuid":"960418460","full_name":"bamless/datastruct","owner":"bamless","description":"Testing a better way to have common data structures in c","archived":false,"fork":false,"pushed_at":"2025-05-19T13:19:56.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T07:58:51.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bamless.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,"zenodo":null}},"created_at":"2025-04-04T11:59:42.000Z","updated_at":"2025-05-19T13:20:00.000Z","dependencies_parsed_at":"2025-05-19T14:40:43.502Z","dependency_job_id":null,"html_url":"https://github.com/bamless/datastruct","commit_stats":null,"previous_names":["bamless/datastruct"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bamless/datastruct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamless%2Fdatastruct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamless%2Fdatastruct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamless%2Fdatastruct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamless%2Fdatastruct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bamless","download_url":"https://codeload.github.com/bamless/datastruct/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamless%2Fdatastruct/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261812465,"owners_count":23213504,"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-06-04T01:30:38.155Z","updated_at":"2025-06-25T05:30:35.416Z","avatar_url":"https://github.com/bamless.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing a better way to have common data structures in c\n\nQuite often, I have the need to have a flexible library that allows creation of common\ndatastructures in c, with explicit support for custom allocators and not too much under-the-hood\nmagic in order to provide a simple interface to calling code.\n\nThis is my attempt in designing a system with context allocators similar in spirit to Jai or Zig\nbut in c.\n\nAll of these will probably be merged into [extlib](https://github.com/bamless/extlib) version 2.0\n\n## Supported features for now\n\n1. Dynamic arrays\n1. Hashmaps\n1. Explicit and context allocators\n1. Temp allocator\n1. Optional no-libc support\n\n## Desiderata\n\n1. `StringBuffer` implementation for easy string creation\n1. `StringSlice` for easy manipulation of 'views' over `char*`\n1. Common macros for `assert`, `static_assert` and `unreachable` that are cross platform, and do not\n   depend on c11 features\n1. A logging system, possibly integrated with the context system already inplace for allocators\n1. Obviously, testing.\n\n## Examples\n\nPretty minimal for now, check out `./main.c`, `./threads.c` and `./wasm.c`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamless%2Fdatastruct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamless%2Fdatastruct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamless%2Fdatastruct/lists"}