{"id":13824729,"url":"https://github.com/lukechampine/geiger","last_synced_at":"2025-04-13T08:40:58.119Z","repository":{"id":57487622,"uuid":"201975947","full_name":"lukechampine/geiger","owner":"lukechampine","description":"A Geiger counter for allocations","archived":false,"fork":false,"pushed_at":"2020-09-17T14:55:03.000Z","size":10,"stargazers_count":276,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T18:02:15.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/lukechampine.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}},"created_at":"2019-08-12T17:16:16.000Z","updated_at":"2025-03-05T03:46:01.000Z","dependencies_parsed_at":"2022-08-29T11:21:30.666Z","dependency_job_id":null,"html_url":"https://github.com/lukechampine/geiger","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/lukechampine%2Fgeiger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fgeiger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fgeiger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechampine%2Fgeiger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukechampine","download_url":"https://codeload.github.com/lukechampine/geiger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248686058,"owners_count":21145413,"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":[],"created_at":"2024-08-04T09:01:08.242Z","updated_at":"2025-04-13T08:40:58.098Z","avatar_url":"https://github.com/lukechampine.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"geiger\n------\n\n[![GoDoc](https://godoc.org/github.com/lukechampine/geiger?status.svg)](https://godoc.org/github.com/lukechampine/geiger)\n[![Go Report Card](http://goreportcard.com/badge/github.com/lukechampine/geiger)](https://goreportcard.com/report/github.com/lukechampine/geiger)\n\n```\ngo get lukechampine.com/geiger\n```\n\nInspired by [this tweet](https://twitter.com/laserallan/status/1159571592332087296).\nJust call `go geiger.Count()` at the top of your `main` function. Don't worry, if\nyou start tasting metal, you're probably just delusional.\n\nThis package is in a pretty unpolished state. ~~First of all, it emits a constant\ntone, not a series of clicks like a real Geiger counter, because I couldn't\nfigure out how to get the `beep` package to click the way I wanted.~~ (EDIT: [fixed, thanks @klauspost!](https://github.com/lukechampine/geiger/pull/1)) Second, the\npackage itself incurs a non-zero number of allocations per second (~100 on\nMacOS, presumably different on other platforms) which throws off the reading.\nThird, it's completely unconfigurable: you can't adjust the \"sensitivity,\" and\nyou can only measure the number of objects allocated per second (as opposed to,\ne.g., the number of *bytes* allocated per second).\n\nStill, I think the general idea of \"use sound to alert the programmer that\nthey're doing something stupid\" has merit. If enough people agree, maybe we can\nwork together to refine it into an actually useful tool.\n\n### Troubleshooting\n\nThis package uses [beep](https://github.com/faiface/beep) to play audio. If you\ncan't hear anything, please check the `beep` issue tracker (and open issues there,\nif necessary) rather than on this repo. I know basically nothing about audio\ninterfaces, so I'm not going to be able to help you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechampine%2Fgeiger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechampine%2Fgeiger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechampine%2Fgeiger/lists"}