{"full_name":"gpujs/gpu.js","owner":"gpujs","name":"gpu.js","shard":"1","url":"https://github.com/gpujs/gpu.js","description":"GPU Accelerated JavaScript","homepage":"https://gpu.rocks","topics":["gpu","webgl","javascript","math","gpgpu","glsl","nodejs"],"tag_pages":["glsl","gpgpu","gpu","javascript","math","nodejs","webgl"],"language":"JavaScript","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/17139066?v=4","created_at":"2016-02-09T09:13:37Z","pushed_at":"2026-11-03T07:56:45Z","metrics":{"stars":15530,"forks":667,"watchers":232,"issues":631,"prs":238,"releases":121,"issues_open":64,"issues_closed":567,"prs_open":2,"prs_closed":49,"prs_merged":187,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[15522,15525,15526,15528,15529,15530,15530],"forks":[667,667,667,667,667,667,667],"watchers":[null,232,232,232,232,232,232],"issues_open":[null,64,64,64,64,64,64],"prs_open":[null,2,2,2,2,2,2]},"boards":{},"same_owner":[],"issues":[{"number":425,"title":"Compute shaders support?","comments":60,"created_at":"2019-02-25T10:20:53Z"},{"number":646,"title":"Minfied Kernel Functions Do Not Work","comments":16,"created_at":"2020-11-06T06:09:02Z"},{"number":822,"title":"WebGPU-based successor for GPUjs","comments":12,"created_at":"2023-07-04T20:25:01Z"},{"number":587,"title":"gpu.js 不能被webpack 打包使用吗","comments":10,"created_at":"2020-03-26T02:30:27Z"},{"number":507,"title":"Get WebGPU as an alternate backend","comments":10,"created_at":"2019-09-27T17:56:05Z"},{"number":414,"title":"Maybe use a Vulkan backend for node?","comments":7,"created_at":"2019-01-09T14:46:21Z"},{"number":394,"title":"Arrays in parameters and returnTypes for kernel's subfunctions - can be bigger than 4?","comments":7,"created_at":"2018-11-01T19:11:07Z"},{"number":600,"title":"Uncaught Error: argument bit ratio not found","comments":6,"created_at":"2020-04-09T17:00:12Z"}],"discussions":[],"latest_release":{"name":"2.24.1","tag":"2.24.1","published_at":"2026-09-24T02:27:03Z","body":"Kernels that subtract a negated value — `a - -b` — **now compile on every backend** instead of failing with a shader syntax error. No breaking changes.\n\n## `a - -b` no longer compiles to a decrement\n\nA negated operand was emitted with nothing between its minus sign and the one before it, so `a - -b` came out as `a--b`. GLSL, WGSL and JavaScript all read `--` as the decrement operator, and the kernel failed to build: a syntax error on the webgl, webgl2 and headless-gl backends, a WGSL parse error on webgpu, and invalid generated JavaScript on cpu. Only webasm, which has its own code generator, was unaffected.\n\nHand-written kernels rarely contain `a - -b`, but minified ones do all the time: minifiers rewrite `a + 0.95` as `a - -0.95`. That is how it surfaced in #874, where a minified path-tracing kernel failed on webgpu with `expected ')', found \"--\"`.\n\nNegated operands are now parenthesized, so the example emits `(a-(-b))`. On webgpu, negative constants are written into the shader in parentheses too, since `a - this.constants.c` with a negative `c` hit the same error.\n\n## Installing\n\n```bash\nnpm install gpu.js@2.24.1\n```\n\n```html\n<script src=\"https://unpkg.com/gpu.js@2.24.1/dist/gpu-browser.min.js\"></script>\n```\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}