Comments (14)
We have node support now, fyi!
from gpu.js.
So @cazala, we are half way there in its current form.
from gpu.js.
What I'd love to see:
- Node.js and WebWorker support (maybe via gl package and OffscreenCanvas a la WebMonkeys?)
-
Typed Arrays supportOops, already done in f9b66e4
from gpu.js.
@cazala : Sadly OffscreenCanvas is firefox only, perhaps when it become more "accepted" we will relook at that.
Node.js support is already being looked into
from gpu.js.
I've identified a number of areas that can really improve performance, and would answer a number of issues (some opened by me) to support node and es6 syntax. Is there interest in pull requests? If so I can open one when done.
from gpu.js.
Also, I notice that the cpu mode really just uses canvas, shouldn't that be a secondary fallback, if you wanted to use pure cpu, there shouldn't be the following levels:
- gpu
- canvas fallback
- cpu fallback
I've probably misread the code.
from gpu.js.
Looking over the source, I see how we attach programs to the gpu via createKernel, but what if we optionally simplified the instantiation to something like:
var gpu = new GPU((A, B) => {
var sum = 0;
for (var i=0; i<512; i++) {
sum += A[this.thread.y][i] * B[i][this.thread.x];
}
return sum;
}).dimensions([512, 512]);
from gpu.js.
You'll probably hate it, and I hope I didn't step on anyones toes, but I went ahead and committed in my fork here which embraces node, es6, and a number of refactors to simplify architecture. I'd like to see this library reach 1.0 very soon, hopefully you can see this is an effort to assist in that regard: https://github.com/gpujs/gpu.js/compare/master...robertleeplummerjr:experimental-node-es6?expand=1
from gpu.js.
https://www.npmjs.com/package/gpu.js just registered
from gpu.js.
Since there has not been any release (that I'm aware of) I'd like to see if we can do a once over on the api before release, and do the initial release with the version that is advancing in the develop
branch, which will initially be cpu only for node, but both cpu and gpu for browser. Sense there hasn't been any releases yet, this gives us an opportunity to refine the api early, and ensure we start off without having to support a lot of the experimentals that were introduced early on. Any takers or rejectors?
from gpu.js.
We are still working on documentation and browser minification, but short of that we are now beta ready.
from gpu.js.
Today's after-work progress got us full on beta. Release will be imminent for beta, and fixes for other browsers will be next step.
from gpu.js.
@PicoCreator & @cazala https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas is now chrome v60
from gpu.js.
@cazala you mentioned things you'd like to see:
Node.js and WebWorker
Node.js is handled, WebWorkers will need to be handled in a later release in a later issue if there is still interest.
v1 has been released: https://github.com/gpujs/gpu.js/releases/tag/1.0.0
from gpu.js.
Related Issues (20)
- Support large file MD5 calculation through GPU.
- setTactic and tactic are missing in kernel
- Textures - read and write HOT 1
- Graphical output canvas is affected by a separate kernel HOT 2
- Handle WithStatement for kernels
- Output 1D Unknown-Length Array from 2D Known-Length Array HOT 3
- API reference is not available
- Is this project dead? HOT 2
- Cant access Full API Reference page
- Detecting Y-axis orientation for post-processing
- Graphical option with ImageData doesn't work in WebWorker
- I am running into this issue.
- m2max, macos: 13.2.1, when i run "npm i gpu.js" throw an error HOT 3
- Nigh unstoppable memory leaks from repeated application of immutable pipelined textures (Texture.delete() does not seem to work) HOT 3
- How to determine the maximum grid size? HOT 1
- Chrome 113 with WebGPU breaks GPU.js HOT 12
- Installation instructions are wrong HOT 1
- WebGPU-based successor for GPUjs HOT 7
- Somewhere of the output image get blur
- Cannot handle transpiled imported function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpu.js.