Giter Club home page Giter Club logo

Comments (14)

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024 2

We have node support now, fyi!

from gpu.js.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024 1

So @cazala, we are half way there in its current form.

from gpu.js.

cazala avatar cazala commented on May 11, 2024

What I'd love to see:

from gpu.js.

PicoCreator avatar PicoCreator commented on May 11, 2024

@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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

https://www.npmjs.com/package/gpu.js just registered

from gpu.js.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

We are still working on documentation and browser minification, but short of that we are now beta ready.

from gpu.js.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

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.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

@PicoCreator & @cazala https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas is now chrome v60

from gpu.js.

robertleeplummerjr avatar robertleeplummerjr commented on May 11, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.