{"id":51038891,"url":"https://github.com/logseq/persistent-sorted-set-ocaml","last_synced_at":"2026-06-22T09:01:12.890Z","repository":{"id":366037070,"uuid":"1272978741","full_name":"logseq/persistent-sorted-set-ocaml","owner":"logseq","description":"Persistent sorted set for OCaml","archived":false,"fork":false,"pushed_at":"2026-06-20T02:15:12.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-20T02:19:29.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/logseq.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-18T05:26:15.000Z","updated_at":"2026-06-20T02:15:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/logseq/persistent-sorted-set-ocaml","commit_stats":null,"previous_names":["logseq/persistent-sorted-set-ocaml"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/logseq/persistent-sorted-set-ocaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fpersistent-sorted-set-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fpersistent-sorted-set-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fpersistent-sorted-set-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fpersistent-sorted-set-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logseq","download_url":"https://codeload.github.com/logseq/persistent-sorted-set-ocaml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fpersistent-sorted-set-ocaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34641636,"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-06-22T02:00:06.391Z","response_time":106,"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":"2026-06-22T09:01:11.845Z","updated_at":"2026-06-22T09:01:12.855Z","avatar_url":"https://github.com/logseq.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Persistent Sorted Set OCaml\n\nAn OCaml port of Logseq's persistent sorted set implementation.\n\nThe library provides a persistent ordered set data structure intended for DataScript-style indexes, where ordered iteration, range access, and immutable updates are core operations.\n\n## Goals\n\n- Preserve the behavior expected by the ClojureScript persistent sorted set implementation.\n- Provide a small OCaml API that can be used from native OCaml and js_of_ocaml.\n- Keep the implementation readable and predictable for DataScript index workloads.\n\n## Development\n\nRequirements:\n\n- OCaml 5.2.1 or newer\n- Dune 3.17 or newer\n- Node.js for js_of_ocaml smoke tests\n\nCommon commands:\n\n```sh\ndune build\ndune runtest\n```\n\nBenchmark and upstream comparison helpers live in `script/`:\n\n```sh\nbash script/benchmark_vs_cljs.sh\nbash script/diff_upstream_tests.sh\n```\n\n## Repository Layout\n\n- `lib/`: library implementation and interface\n- `test/`: native and js_of_ocaml tests\n- `bench/`: benchmark entry points\n- `script/`: benchmark and upstream comparison helpers\n- `docs/`: performance notes\n\n## Credits\n\nThis project is an OCaml port of Logseq's ClojureScript persistent sorted set work.\n\nPrimary credit goes to the upstream ClojureScript repository:\n\n- https://github.com/logseq/persistent-sorted-set\n\nThe OCaml implementation is written independently, with upstream behavior used as the compatibility reference.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogseq%2Fpersistent-sorted-set-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogseq%2Fpersistent-sorted-set-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogseq%2Fpersistent-sorted-set-ocaml/lists"}