Live data from Hacker News

Gpu.js – GPU Accelerated JavaScript

gpu.rocks

21–30 of 84 posts

Re: Gpu.js – GPU Accelerated JavaScript

#21
post #3

Earlier quoted context omitted.

> Made under 24 hours for a NUS Hackers hackathon, out of 68 competing projects It's not meant to be production ready

I've been watching this project for over a year. There is quite a bit of work and care put into it. https://github.com/gpujs/gpu.js/graphs/contributors

However, I'm not claiming it's production ready, just that it's more than a weekend project.

Re: Gpu.js – GPU Accelerated JavaScript

#22
post #3

Earlier quoted context omitted.

> Made under 24 hours for a NUS Hackers hackathon, out of 68 competing projects It's not meant to be production ready

I've been watching this project for over a year. There is quite a bit of work and care put into it. https://github.com/gpujs/gpu.js/graphs/contributors

[deleted]

Re: Gpu.js – GPU Accelerated JavaScript

#26
post #19

Things like this make me fear banner ads mining bitcoins (not that they aren't already).

I'd think pegging CPU/GPU at 99% would be even more of a turn off than banner ads. Especially on mobile where it'd drain your battery.

Interesting thought though. I wonder if Windows or MacOS had some hidden process that did bitcoin mining at ~5% CPU, how much that would be worth worldwide.

Re: Gpu.js – GPU Accelerated JavaScript

#27
post #26
post #19

Things like this make me fear banner ads mining bitcoins (not that they aren't already).

I'd think pegging CPU/GPU at 99% would be even more of a turn off than banner ads. Especially on mobile where it'd drain your battery. Interesting thought though. I wonder if Windows or MacOS had some hidden process that did bitcoin mining at ~5% CPU, how much that would be worth worldwide.

Okay, Bill Gates alone is worth more than twice all the bitcoin ever mined. Apple is worth almost 20x that. So, per risk/reward, probably not a great strategy for either company. https://howmuch.net/articles/worlds-money-in-perspective.

Re: Gpu.js – GPU Accelerated JavaScript

#28
A major caveat is, it's still JavaScript so the performance vary according to the browser apart from other variables.

Benchmark on iPad Air 2 iOS 10.3.2 is close for both chrome and safari.

Safari

CPU: 6.110s ±1.9% GPU: 0.487s ±1.0% (12.55 times faster!)

Chrome 59

CPU: 4.454s ±51.8% GPU: 0.483s ±0.9% (9.22 times faster!)

Project looks promising though, congratulations to the team.

Re: Gpu.js – GPU Accelerated JavaScript

#29
post #16

I am curious, how does it get an AST from the JS, and compiles it to compute kernels?

Looks like the JS parser is created using Jison, a parser generator, and the generation of GLSL from the AST is performed in src/backend/webgl/function-node.js using a single-pass tree walk.

Re: Gpu.js – GPU Accelerated JavaScript

#30
post #19

Things like this make me fear banner ads mining bitcoins (not that they aren't already).

--- Sorry if this is too far off topic --- This makes me find it funny that the Brave browser purposefully blocks all ads by default, seemingly without much negative recourse to the end user -- not directly, anyway.

edit: Point being the browser that capitalizes off of blockchain virtual currencies/tokens would purposefully block such a sneaky device.

Companies who want to advertise through the browser's ecosystem have to purchase the company's tokens on the Ethereum public chain and the end user has to OK viewing ads on sites they visit regularly in order for those publishers to see returns and the user doesn't have to OK anything at all. The browser capitalizes off of publishers/content providers who don't want to lose ad views, and the user base grows because of the late and growing public desire for privacy and dismissal of unwanted rampant advertising that is sometimes even quite inappropriate.

----

All that said, I'm quite excited to try this out, too.

Due to my regular dev workflow in JS I'm looking forward to it being published to NPM, so it can more easily be used as a module and bundled for the odd front end project/experiment.

Post reply on HN