{"id":15010308,"url":"https://github.com/phronmophobic/clj-webgpu","last_synced_at":"2025-04-09T18:33:58.038Z","repository":{"id":248456751,"uuid":"828737207","full_name":"phronmophobic/clj-webgpu","owner":"phronmophobic","description":"A clojure wrapper for webgpu-native","archived":false,"fork":false,"pushed_at":"2024-12-28T19:05:20.000Z","size":147,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-07T07:17:10.807Z","etag":null,"topics":["clojure","gpu","gpu-computing","webgpu"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phronmophobic.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":"2024-07-15T03:00:11.000Z","updated_at":"2025-03-06T13:24:58.000Z","dependencies_parsed_at":"2024-07-15T04:24:12.571Z","dependency_job_id":"5c09db2e-1303-4d6d-8eda-adb3fc0ad353","html_url":"https://github.com/phronmophobic/clj-webgpu","commit_stats":null,"previous_names":["phronmophobic/clj-webgpu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-webgpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-webgpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-webgpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclj-webgpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phronmophobic","download_url":"https://codeload.github.com/phronmophobic/clj-webgpu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248088185,"owners_count":21045662,"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":["clojure","gpu","gpu-computing","webgpu"],"created_at":"2024-09-24T19:33:29.957Z","updated_at":"2025-04-09T18:33:58.008Z","avatar_url":"https://github.com/phronmophobic.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-webgpu\n\nWIP bindings for webgpu.\n\n## Rationale\n\nGPUs are much faster for some workloads. I want to be able to write programs that run on my mac as well as with nvidia gpus on linux. Even running the most basic compute shader with Vulkan is [really gnarly](https://github.com/mcleary/VulkanHpp-Compute-Sample/blob/master/main.cpp). \n\nWebgpu is a new cross platform option that is gaining traction and support. Some of the benefits of webgpu vs similar options are:\n\n- cross platform\n- multiple implementations (dawn, webgpu-native)\n- some compatibility with the web\n- growing ecosystem of tools, technique, documentation, and shaders\n- flexible, high level API\n\n## Deps\n\n```\ncom.phronemophobic/clj-webgpu {:git/url \"https://github.com/phronmophobic/clj-webgpu\" :git/sha \"daa0179c51c2689c3fabaef650afa1719416aa7d\"}\n;; native dependencies\ncom.phronemophobic.cljonda/webgpu-native-darwin-aarch64 {:mvn/version \"v0.19.4.1\"}\ncom.phronemophobic.cljonda/webgpu-native-linux-x86-64 {:mvn/version \"v0.19.4.1\"}\ncom.phronemophobic.cljonda/webgpu-native-darwin-x86-64 {:mvn/version \"v0.19.4.1\"}\n```\n\n## Usage\n\nSee [examples](https://github.com/phronmophobic/clj-webgpu/tree/master/examples).\n\n## Native Dependencies\n\nIn theory, these examples could run against any webgpu implemtation, but this example has only been tested with [webgpu-native](https://github.com/gfx-rs/wgpu-native), the implementation by Mozilla. The maven native binaries are just reuploads of the [releases](https://github.com/gfx-rs/wgpu-native/releases) provided by the wgpu-native github project. You can build or download the native dependencies yourself as long as the shared library is somewhere that JNA can find it. For example, in a folder specified with `:jvm-opts [\"-Djna.library.path=/path/to/folder/\"]`.\n\n## Inspiration\n\n- WebGPU is Not Just about the Web: https://youtu.be/qHrx41aOTUQ\n- https://github.com/AnswerDotAI/gpu.cpp\n\n## License\n\nCopyright © 2024 Adrian\n\nDistributed under the under Apache License v2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fclj-webgpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphronmophobic%2Fclj-webgpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fclj-webgpu/lists"}