{"id":16788581,"url":"https://github.com/mna/nimhash","last_synced_at":"2026-02-25T01:36:33.247Z","repository":{"id":21450781,"uuid":"24769166","full_name":"mna/nimhash","owner":"mna","description":"experiment with the nim language","archived":false,"fork":false,"pushed_at":"2014-10-03T19:16:14.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T13:45:40.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nimrod","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/mna.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}},"created_at":"2014-10-03T18:29:11.000Z","updated_at":"2014-10-03T18:29:32.000Z","dependencies_parsed_at":"2022-08-21T13:40:28.850Z","dependency_job_id":null,"html_url":"https://github.com/mna/nimhash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mna/nimhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fnimhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fnimhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fnimhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fnimhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mna","download_url":"https://codeload.github.com/mna/nimhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fnimhash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29808003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"ssl_error","status_checked_at":"2026-02-24T22:43:18.536Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-13T08:18:21.349Z","updated_at":"2026-02-25T01:36:33.216Z","avatar_url":"https://github.com/mna.png","language":"Nimrod","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nimhash\n\nSimple command-line app that recursively walks a directory (provided as argument) and computes the md5 hash of each file. Just to get a feel for [nim][] and its concurrency story.\n\nRunning this on an Intel Chromebook on the Nimrod/lib source directory gives this:\n\n```\nreal 0m0.457s\nuser 0m0.816s\nsys  0m0.035s\n```\n\nA similar implementation in Go gives this (that arguably does more, as it checks for errors):\n\n```\nreal 0m0.061s\nuser 0m0.050s\nsys  0m0.011s\n```\n\nRunning on the whole nim repo (C sources included) yields those results:\n\nNimrod:\n\n```\nreal 0m35.995s\nuser 1m1.480s\nsys  0m4.163s\n```\n\nGo:\n\n```\nreal 0m5.315s\nuser 0m2.188s\nsys  0m5.873s\n```\n\nOf course I probably got a ton of things wrong in nim as this is my first go at it. As I understand it, nim's `threadpool` library uses OS threads instead of \"green\"/lightweight m:n threads, so that may explain part of it.\n\n[nim]: http://nim-lang.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmna%2Fnimhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmna%2Fnimhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmna%2Fnimhash/lists"}