{"id":16971781,"url":"https://github.com/juancarlospaco/dik","last_synced_at":"2025-03-21T20:16:51.684Z","repository":{"id":151515504,"uuid":"364960163","full_name":"juancarlospaco/dik","owner":"juancarlospaco","description":"Table implemented as optimized sorted hashed dictionary for heterogeneous values","archived":false,"fork":false,"pushed_at":"2022-01-26T21:13:12.000Z","size":65,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"nim","last_synced_at":"2025-01-26T14:48:41.480Z","etag":null,"topics":["dictionary","hashmap","nim","nim-lang"],"latest_commit_sha":null,"homepage":"https://juancarlospaco.github.io/dik","language":"Nim","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/juancarlospaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e"]}},"created_at":"2021-05-06T15:41:40.000Z","updated_at":"2024-11-18T19:16:55.000Z","dependencies_parsed_at":"2023-05-18T21:45:16.377Z","dependency_job_id":null,"html_url":"https://github.com/juancarlospaco/dik","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/juancarlospaco%2Fdik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fdik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fdik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fdik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlospaco","download_url":"https://codeload.github.com/juancarlospaco/dik/tar.gz/refs/heads/nim","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244860610,"owners_count":20522466,"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":["dictionary","hashmap","nim","nim-lang"],"created_at":"2024-10-14T00:54:39.014Z","updated_at":"2025-03-21T20:16:51.676Z","avatar_url":"https://github.com/juancarlospaco.png","language":"Nim","funding_links":["https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e"],"categories":[],"sub_categories":[],"readme":"# Dik\n\nTable implemented as optimized sorted hashed dictionary,\nsame size and API as a Table, 0 dependencies, ~300 lines.\n\nGet items by index or `BackwardsIndex` or `Slice` or `string`,\ndestructor, resize in-place, `toSeq`, `pretty`, Heterogeneous values, tests for everything.\n\nDocumentation, Tests, Examples: https://juancarlospaco.github.io/dik\n\n![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Madoqua_kirkii_-_female_%28Namutoni%29.jpg/1200px-Madoqua_kirkii_-_female_%28Namutoni%29.jpg)\n\n![](https://img.shields.io/github/languages/top/juancarlospaco/dik?style=for-the-badge)\n![](https://img.shields.io/github/languages/count/juancarlospaco/dik?logoColor=green\u0026style=for-the-badge)\n![](https://img.shields.io/github/stars/juancarlospaco/dik?style=for-the-badge \"Star faster-than-csv on GitHub!\")\n![](https://img.shields.io/github/languages/code-size/juancarlospaco/dik?style=for-the-badge)\n![](https://img.shields.io/github/issues-raw/juancarlospaco/dik?style=for-the-badge \"Bugs\")\n![](https://img.shields.io/github/issues-pr-raw/juancarlospaco/dik?style=for-the-badge \"PRs\")\n![](https://img.shields.io/github/last-commit/juancarlospaco/dik?style=for-the-badge \"Commits\")\n![](https://github.com/juancarlospaco/dik/actions/workflows/build.yml/badge.svg?branch=nim)\n\n\n# Benchmark\n\n| Operation | `Table`          | `Dik`               |\n|-----------|------------------|---------------------|\n| `del()`   | 974 microseconds | 301 microseconds    |\n| `clear()` | 5 milliseconds   | 150 microseconds    |\n| `add()`   | 418 microseconds | 250 microseconds    |\n| `get()`   | 242 microseconds | 220 microseconds    |\n\n`Table` is not ordered and does not return `Option[T]`, so it is just an approximation for development.\n\n[source](https://github.com/juancarlospaco/dik/blob/nim/benchmark.nim)\n\n\n# FAQ\n\n- Whats the name ?.\n\n[Dik](https://en.wikipedia.org/wiki/Dik-dik) is a Dict.\n\n\n# Stars\n\n![](https://starchart.cc/juancarlospaco/dik.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fdik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlospaco%2Fdik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fdik/lists"}