{"id":16722199,"url":"https://github.com/tkluck/fizzbuzz","last_synced_at":"2026-01-02T06:50:54.236Z","repository":{"id":147863729,"uuid":"583027104","full_name":"tkluck/fizzbuzz","owner":"tkluck","description":"High-throughput FizzBuzz in Julia","archived":false,"fork":false,"pushed_at":"2023-11-19T00:18:31.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T03:32:58.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/tkluck.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,"governance":null}},"created_at":"2022-12-28T14:48:19.000Z","updated_at":"2022-12-28T14:58:02.000Z","dependencies_parsed_at":"2023-05-27T18:00:17.661Z","dependency_job_id":null,"html_url":"https://github.com/tkluck/fizzbuzz","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/tkluck%2Ffizzbuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Ffizzbuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Ffizzbuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkluck%2Ffizzbuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkluck","download_url":"https://codeload.github.com/tkluck/fizzbuzz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243733335,"owners_count":20339026,"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-10-12T22:33:58.808Z","updated_at":"2026-01-02T06:50:54.212Z","avatar_url":"https://github.com/tkluck.png","language":"Julia","readme":"# High-throughput FizzBuzz in Julia\n\nThis is a submission for [high-througput FizzBuzz codegolf][codegolf]. The\nobjective is to generate the highest throughput for FizzBuzz possible. On my\npersonal laptop, this julia script reaches ~10GiB/s, or about triple the\nthroughput of\n\n```sh\ncat /dev/zero | pv \u003e /dev/null\n```\n\nIt supports at most 16 digits, which theoretically takes about a day to reach.\nAt that point, the script terminates with an error.\n\n## Usage\n\n\n```bash\n# For seeing it in action:\njulia --threads 4 fizzbuzz.jl\n# For benchmarking the throughput:\njulia --threads 4 fizzbuzz.jl | pv \u003e /dev/null\n# For checking correctness:\ndiff \u003c( julia --threads 4 fizzbuzz.jl | head -n 10000) \u003c(\n        seq 10000 | perl -nle'\n          $_ % 15 or print \"FizzBuzz\" and next;\n          $_ % 5 or print \"Buzz\" and next;\n          $_ % 3 or print \"Fizz\" and next;\n          print'\n      )\n```\n\n## Credit\n\nI should credit ais523 for the idea to use the `vmsplice` syscall. Theirs is\ncurrently (December 2022) the fastest submission. I also took inspiration from\nother solutions to unroll the main loop by 15. The rest of the ideas are my\nown, although I'm obviously standing on the shoulders of the giants who created\nJulia.\n\n\n[codegolf]: https://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz/236630#236630\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkluck%2Ffizzbuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkluck%2Ffizzbuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkluck%2Ffizzbuzz/lists"}