{"repo":"gpujs/gpu.js","free":true,"listed":false,"github":"https://github.com/gpujs/gpu.js","clone":"git clone https://github.com/gpujs/gpu.js.git","description":"GPU Accelerated JavaScript","language":"JavaScript","stars":15366,"topics":["gpu","webgl","javascript","math","gpgpu","glsl","nodejs"],"license":"MIT","category":"dev-tools","readme_excerpt":"GPU.js GPU.js is a JavaScript Acceleration library for GPGPU (General purpose computing on GPUs) in JavaScript for Web and Node. GPU.js automatically transpiles simple JavaScript functions into shader language and compiles them so they run on your GPU. In case a GPU is not available, the functions will still run in regular JavaScript. For some more quick concepts, see Quick Concepts on the wiki. New to GPU programming? Learn GPGPU in your browser — a free, hands-on course that teaches the subject itself, not just this library. See Learn GPGPU below. What is this sorcery? Creates a GPU accelerated kernel transpiled from a javascript function that computes a single element in the 512 x 512 matrix (2D array). The kernel functions are ran in tandem on the GPU often resulting in very fast computations! You can run a benchmark of this here. Typically, it will run 1-15x faster depending on your hardware. Matrix multiplication (perform matrix multiplication on 2 matrices of size 512 x 512) written in GPU.js: Browser CDN Node Typescript Click here for more typescript examples. v3 Will Be Async by Default [!WARNING] The next major version of GPU.js will make every kernel call return a Promise . This is a breaking API change: synchronous kernel calls as you write them today will not survive the v3 upgrade unchanged. Code written against mode: 'async' (new in 2.20.0) already conforms and will run on v3 unchanged — the migration guide below is six steps. This breaks the API you are using ","default_branch":null,"files":null,"tree":[],"storefront":"/r/gpujs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gpujs/gpu.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}