{"id":16115602,"url":"https://github.com/byron/plusone","last_synced_at":"2025-04-06T08:36:49.587Z","repository":{"id":66230051,"uuid":"43200845","full_name":"Byron/plusone","owner":"Byron","description":"An experiment to experience differences between Java and Rust","archived":false,"fork":false,"pushed_at":"2015-09-26T15:11:25.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T14:17:18.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Byron.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":"2015-09-26T10:06:16.000Z","updated_at":"2015-09-26T14:54:22.000Z","dependencies_parsed_at":"2023-02-20T00:30:49.193Z","dependency_job_id":null,"html_url":"https://github.com/Byron/plusone","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/Byron%2Fplusone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Fplusone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Fplusone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Byron%2Fplusone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Byron","download_url":"https://codeload.github.com/Byron/plusone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457727,"owners_count":20941905,"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-09T20:19:15.502Z","updated_at":"2025-04-06T08:36:49.563Z","avatar_url":"https://github.com/Byron.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"An experiment to see the differences when trying to solve a simple problem, *adding one to all numbers given as arguments*, with Java and Rust.\n\nOne obvious difference is the amount of code needed:\n\n```bash\n$ tokei -s code -e benches .\n# curated output\n--------------------------------------------------------------------------------------------------\nLanguage                  Files           Total          Blanks        Comments            Code\n--------------------------------------------------------------------------------------------------\nJava                          3              53              11               0              42\nRust                          2              32               5               0              27\n--------------------------------------------------------------------------------------------------\n```\n\nAnother one might be that Rust clearly is less wordy, denser, and *possibly* easier to grasp.\n\nIn any case, rust is doing the work *far more efficiently*.\n\nSimple benchmarking is easy to do in Rust, yet I was unable to get it to work using *JMH* in IntelliJ after an hour. It certainly doesn't mean much, except for showing that such a task is not too intuitive and easily done with my java toolchain.\nBecause of that, the Rust micro-benchmark stands without comparison.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyron%2Fplusone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyron%2Fplusone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyron%2Fplusone/lists"}