{"id":51493239,"url":"https://github.com/unrays/tdss","last_synced_at":"2026-07-07T12:30:35.797Z","repository":{"id":359618860,"uuid":"1246856191","full_name":"unrays/tdss","owner":"unrays","description":"A C++ data-oriented registry with compile-time type mapping and cache-efficient handle-based storage.","archived":false,"fork":false,"pushed_at":"2026-05-22T19:21:41.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T20:51:02.367Z","etag":null,"topics":["ast","c-plus-plus","cache-friendly","compile-time","compiler-infrastructure","cpp","custom-allocator","data-oriented-design","dod","ecs-alternative","entity-component-system","generic-programming","high-performance","intermediate-representation","low-latency","memory-management","registry-pattern","storage-system","systems-programming","template-metaprogramming"],"latest_commit_sha":null,"homepage":"https://unrays.github.io/tdss/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unrays.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":"SECURITY.md","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":"2026-05-22T16:22:26.000Z","updated_at":"2026-05-22T19:21:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/unrays/tdss","commit_stats":null,"previous_names":["unrays/tdss"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/unrays/tdss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Ftdss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Ftdss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Ftdss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Ftdss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unrays","download_url":"https://codeload.github.com/unrays/tdss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Ftdss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35228621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"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":["ast","c-plus-plus","cache-friendly","compile-time","compiler-infrastructure","cpp","custom-allocator","data-oriented-design","dod","ecs-alternative","entity-component-system","generic-programming","high-performance","intermediate-representation","low-latency","memory-management","registry-pattern","storage-system","systems-programming","template-metaprogramming"],"created_at":"2026-07-07T12:30:33.032Z","updated_at":"2026-07-07T12:30:35.790Z","avatar_url":"https://github.com/unrays.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EXOTIC.tdss\n\nA C++ data-oriented registry with compile-time type mapping and cache-efficient handle-based storage.\nOriginally designed as the data layer of a compiler architecture, this system is general-purpose and can be used in other data-oriented systems.\n\n## Features\n\n- Compile-time type-to-storage mapping\n- Contiguous cache-friendly storage\n- Handle-based object access\n- Data-oriented architecture\n- Minimal runtime overhead\n\n## Storage Model\n\nThe underlying storage system is built around a hybrid stack/heap strategy.\n\nEach `SmartStorage\u003cT, N\u003e` is statically evaluated at compile time:\n\n- If the total storage size fits within a fixed internal threshold, data is allocated on the stack.\n- Otherwise, it falls back to heap allocation with aligned memory.\n\nThis allows predictable performance for small datasets while maintaining scalability for larger ones.\n\n## Configuration\n\n```cpp\nusing NodeDataRegistryTable = LinearTable\u003c\n    Entry\u003cNodeInstruction,         InstructionNodeData\u003e,\n    Entry\u003cNodeCallFunction,        FunctionCallNodeData\u003e,\n    Entry\u003cNodeDeclarationFunction, FunctionDeclarationNodeData\u003e,\n    Entry\u003cNodeLiteral,             LiteralNodeData\u003e,\n    Entry\u003cNodeOperation,           OperationNodeData\u003e\n\u003e;\n\nusing NodeDataRegistry = MultiStorageRegistry\u003cNodeDataRegistryTable, NodeHandleProvider, 1 \u003c\u003c 20\u003e;\n\nNodeDataRegistry registry(provider);\n```\n\nThe `MultiStorageRegistry\u003cTable, Handle, N\u003e` is a facade that aggregates multiple data domains, driven by a compile-time configuration table, into a unified internal allocation system built on top of `SmartStorage\u003cT, N\u003e` previously introduced. Additionally, it is possible to define a specific size for `MultiStorageRegistry\u003c..., N\u003e` in bytes, which is then evenly distributed across the underlying storage subsystems.\n\n## Usage\n\n```cpp\nregistry.construct(nodeLiteral, token);\nauto\u0026 literalData = registry.get(nodeLiteral);\n\nregistry.construct_for\u003cLiteralNodeData\u003e(nodeLiteral, token);\n\nregistry.construct(nodeOperation, lhs, rhs);\nauto\u0026 operationData = registry.get(nodeOperation);\n\nregistry.reset();\n```\n\n## License\n\nThis project is licensed under the Boost Software License. See the [LICENSE](LICENSE) file for details.\n\n\u003cp align=\"center\"\u003e\u003csub\u003e© Félix-Olivier Dumas 2026\u003c/sub\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funrays%2Ftdss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funrays%2Ftdss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funrays%2Ftdss/lists"}