{"id":17796460,"url":"https://github.com/rvantonder/hack_parallel","last_synced_at":"2026-02-13T14:44:59.015Z","repository":{"id":141621911,"uuid":"145194948","full_name":"rvantonder/hack_parallel","owner":"rvantonder","description":"The core parallel and shared memory library used by Hack, Flow, and Pyre","archived":false,"fork":false,"pushed_at":"2021-02-27T23:15:43.000Z","size":455,"stargazers_count":41,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T22:04:36.288Z","etag":null,"topics":["map-reduce","ocaml","parallel","shared-memory"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvantonder.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}},"created_at":"2018-08-18T06:08:43.000Z","updated_at":"2024-11-04T23:37:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"87df2f5f-ce52-4846-ab48-43033109569f","html_url":"https://github.com/rvantonder/hack_parallel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rvantonder/hack_parallel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvantonder%2Fhack_parallel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvantonder%2Fhack_parallel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvantonder%2Fhack_parallel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvantonder%2Fhack_parallel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvantonder","download_url":"https://codeload.github.com/rvantonder/hack_parallel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvantonder%2Fhack_parallel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272620876,"owners_count":24965621,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"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":["map-reduce","ocaml","parallel","shared-memory"],"created_at":"2024-10-27T11:45:48.879Z","updated_at":"2026-02-13T14:44:53.986Z","avatar_url":"https://github.com/rvantonder.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\nThis library contains the core parallel and shared memory components used in [Hack](https://github.com/facebook/hhvm/tree/master/hphp/hack), [Flow](https://github.com/facebook/flow), and [Pyre](https://github.com/facebook/pyre-check). \nThe internals of these components are little known outside of these projects, yet stand to benefit the OCaml community more generally, both\nfor practical use and educational purposes.\n\nThis library extracts the core components, wraps them in a tidier interface, and builds with dune. It is a personal best effort\nand offered 'as-is': there is no promise of maintenance, and no official support or affiliation with the projects and/or companies \nsupporting the projects above.\n\nThe code contains potentially leftover and irrelevant functions (again, best effort), and do not necessarily have the most recent upstream changes of corresponding modules. This is especially the case for\nmodules in [procs](https://github.com/rvantonder/hack-parallel/tree/master/src/procs) and [heap](https://github.com/rvantonder/hack-parallel/tree/master/src/heap) (cf. respective [procs](https://github.com/facebook/hhvm/tree/master/hphp/hack/src/procs) and [heap](https://github.com/facebook/hhvm/tree/master/hphp/hack/src/heap) in Hack). Pull requests for\nupstream changes to these files are welcome. The files in the current library are current as of around mid-2018.\n\n# Install and Example\n\nHack_parallel is available on opam:\n\n- Note: this is only available for opam 2. See [how to install opam 2](https://opam.ocaml.org/doc/Install.html).\n\n```\nopam install hack_parallel\n```\n\nPlease see the example project here to get a feel for the interface: https://github.com/rvantonder/hack-parallel-example\n\n# Some more details\n\nThe design decisions behind the parallel architecture and shared memory are best explained by this [video](https://www.youtube.com/watch?v=uXuYVUdFY48\u0026t=0s\u0026list=WL\u0026index=28)\nand this part of the [documentation](https://github.com/rvantonder/hack-parallel/blob/master/src/heap/hh_shared.c#L10-L76).\nYou can ignore the scary `THIS CODE ONLY WORKS WITH HACK`--the code does work generally, but you have to keep in mind the\nrestrictions on memory operations as explained in the rest of the file. The motivation behind the shared memory implementation is similar to [ancient](http://git.annexia.org/?p=ocaml-ancient.git;a=blob;f=README.txt;h=e2d9103d5f1820f89e5fd9e18f245cc330e8b29d;hb=HEAD). \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvantonder%2Fhack_parallel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvantonder%2Fhack_parallel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvantonder%2Fhack_parallel/lists"}