News for hackers. Stuff that matters.
Re:Turbo.js – GPGPU made simple by macawfish on Saturday November 05, 2016 @03:43AM (#12878633)
Seems cool... but it doesn't work for me!

> Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out. Please report your browser (+ version) and hardware configuration to us, so we can try to fix this. Deviation was 0.33731377391086426.

I'm on linux 4.7 + chromium 53 with Intel 4000 graphics

Re:Turbo.js – GPGPU made simple by michwill on Saturday November 05, 2016 @04:12AM (#12878721)
Same for me. Linux/Chromium or Linux/Firefox
Re:Turbo.js – GPGPU made simple by minxomat on Saturday November 05, 2016 @04:16AM (#12878734)
Hi, please report any issues to the repo at http://github.com/turbo/js. The more hardware combo test data I have, the sooner I can debug these faults. If you have any friends with exceptionally weird configs, please get them to test, too :-)

BTW: If you get the "Ah snap" error, there is some diagnostic data in the console. Please include that in any issue report. Cheers.

Re:Turbo.js – GPGPU made simple by Cyph0n on Saturday November 05, 2016 @09:07AM (#12879603)
Small note: I'd recommend naming the repo `turbo` or `turbojs`, instead of just `js`.
Re:Turbo.js – GPGPU made simple by Robin_f on Monday November 07, 2016 @03:33AM (#12889649)
Yes, checking out the repository in a folder named js is less than helpful.
Re:Turbo.js – GPGPU made simple by deadcast on Saturday November 05, 2016 @12:38PM (#12880485)
Yeah I got that error as well. I'm using IceCat 38.8.0 on Trisquel 7.0 with a geforce 8400gs.
Re:Turbo.js – GPGPU made simple by problems on Saturday November 05, 2016 @02:31AM (#12878470)
> In fact you're using it right now

Thanks, I could tell when my fan spun up when I loaded the page and my browser lagged.

Re:Turbo.js – GPGPU made simple by ris on Saturday November 05, 2016 @11:31AM (#12880143)
I thought something exciting had been done here but it's been a long time since "GPGPU" meant "kernels written in GLSL".
Re:Turbo.js – GPGPU made simple by andreapaiola on Saturday November 05, 2016 @04:16AM (#12878737)
Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out. Please report your browser (+ version) and hardware configuration to us, so we can try to fix this. Deviation was 0.3373333334457129.

console:

Values are: 0.00900000031106174 and 1.0210000006482005

---------------------

Chrome on Ubuntu on Intel NUC

Re:Turbo.js – GPGPU made simple by minxomat on Saturday November 05, 2016 @04:19AM (#12878742)
Please report to http://github.com/turbo/js. I can't track issues on HN.
Re:Turbo.js – GPGPU made simple by franciscop on Saturday November 05, 2016 @04:54AM (#12878827)
Well you are here, what I did in the past when some of my projects got into HN is just copy/paste those reports in the issue tracker in Github. A bit of work but I got great reports in HN that didn't want to waste.
Re:Turbo.js – GPGPU made simple by andreapaiola on Saturday November 05, 2016 @04:55PM (#12881844)
Now it's fixed, good work!
Re:Turbo.js – GPGPU made simple by sdrothrock on Saturday November 05, 2016 @01:40AM (#12878362)
I'm confused -- there's a section mentioning a benchmark, but I can't find the results anywhere on the page. Chrome 54 on macOS 10.12.1.

There are sections for "PURE JAVASCRIPT" and "JAVASCRIPT & TURBO.JS", but they only display a triangle/circle illustration.

Re:Turbo.js – GPGPU made simple by jeseufchrist on Saturday November 05, 2016 @01:42AM (#12878367)
Open the console and look for errors?
Re:Turbo.js – GPGPU made simple by sdrothrock on Saturday November 05, 2016 @01:51AM (#12878386)
I thought about it, but there's not really much I can do.

testData is undefined on line 28 of benchmark.js.

Re:Turbo.js – GPGPU made simple by alphaneuron on Saturday November 05, 2016 @01:56AM (#12878394)
Sounds like WebGL didn't initialize. Do other WebGL demos work in your browser? If yes, I'd report this issue to the dev.
Re:Turbo.js – GPGPU made simple by msimpson on Saturday November 05, 2016 @10:25AM (#12879880)
Great work minxomat, and under 200 LOC as well.
Re:Turbo.js – GPGPU made simple by evan_ on Saturday November 05, 2016 @02:16AM (#12878432)
weird:

> Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out. Please report your browser (+ version) and hardware configuration to us, so we can try to fix this. Deviation was 0.673000000262012.

Latest Chrome on a macbook air. Looks like at least one other person has had this issue, I'll report my experience as well. https://github.com/turbo/js/issues/1

Re:Turbo.js – GPGPU made simple by macawfish on Saturday November 05, 2016 @03:35AM (#12878610)
Yeah, I'm getting this too.
Re:Turbo.js – GPGPU made simple by bradknowles on Saturday November 05, 2016 @12:32AM (#12878188)
Does it really do anything on mobile?

Anyone got some example results they can share with us, including hardware/OS/software you're running and what kind of speed up was found?

Re:Turbo.js – GPGPU made simple by alphaneuron on Saturday November 05, 2016 @12:46AM (#12878231)
It works on my Note 3, but not on my S7. The N3 results are about 1.5/3.0 for me. Though wildly varying between runs.

Edit: It works on my windows PCs (even in a qemu KVM instance using the std vga, but of course the emulated GPU is slower). However, it doesn't seem to like any browser on linux.

Re:Turbo.js – GPGPU made simple by qiqitori on Saturday November 05, 2016 @02:54AM (#12878523)
With regards to Linux (though Android's Chrome has chrome://flags and chrome://gpu as well, so maybe some of this applies as well):

It didn't work for at first, but I got it to show me the "Ah snap! There was no error compiling the test kernel or running it, but the numbers don't check out." message at least. By changing the deviation var to e.g. 0 in the debugger you can also force it show you the results (JS: 0.56, JS&Turbo.js: 1.74), but I don't know if those results mean anything.

Steps to maybe fix:

Does e.g. glxgears work?

On Chrome, check the following two pages:

chrome://flags/ <-- I enabled "Override software rendering list", "Experimental canvas features", "WebGL Draft Extensions" but don't know if all of those are necessary. Better change them back later.

chrome://settings <-- Advanced -> System -> Use hardware acceleration when available

chrome://gpu/ <-- Check if WebGL is enabled, etc. (also check log messages at the bottom)

My graphics hardware is a positively ancient Intel 965GM. (On Windows on a much faster CPU and using Intel HD Graphics 4000, I get JS: 1.28, JS&Turbo.js: 3.82.)

Re:Turbo.js – GPGPU made simple by alphaneuron on Saturday November 05, 2016 @02:58AM (#12878526)
Reading the benchmark script, and the explanation of it at github, I think the deviation is there to account for floating point artifacts. I.e. where JS = 0.01499.. and GPU = 0.01500.., that's fine, but if the numbers (read results from the fractal function) are deviating more, that's an error.

Edit: Actually, "(JS: 0.56, JS&Turbo.js: 1.74)" seems to be a valid result from what I've seen. May just be that the chosen deviation value is an unfortunate edge case.

Re:Turbo.js – GPGPU made simple by pmontra on Saturday November 05, 2016 @09:12AM (#12879625)
On Android it works in Opera and it doesn't in Firefox.
Re:Turbo.js – GPGPU made simple by homero on Saturday November 05, 2016 @05:32AM (#12878932)
Works great on note 4 and v20
Re:Turbo.js – GPGPU made simple by minxomat on Saturday November 05, 2016 @05:36AM (#12878940)
Nice!
Re:Turbo.js – GPGPU made simple by Robin_f on Monday November 07, 2016 @03:34AM (#12889653)
Works fine here Chrome on Debian. Seems really cool, but the amount of people here that are saying it doesn't work is worrisome..
Re:Turbo.js – GPGPU made simple by ooqr on Saturday November 05, 2016 @07:57AM (#12879367)
As for many others, this does not work for me, yet I'm eager to try this.
Re:Turbo.js – GPGPU made simple by erpellan on Saturday November 05, 2016 @07:01AM (#12879170)
frameBufferStatus was false. frameBufferStatus.message is undefined.

if (!frameBufferStatus) throw new Error('ERROR: (fatal): ' + frameBufferStatus.message);

Chrome on Windows 10 + AMD R9/280.