Re:WebAssembly support now shipping in all major browsers
by zurn on Tuesday November 14, 2017 @07:47AM
(#15694533)
SIMD is like the kids version of GLSL, which works today :)
[ Parent
| on HN ]
Re:WebAssembly support now shipping in all major browsers
by exDM69 on Tuesday November 14, 2017 @08:15AM
(#15694683)
Running anything with the GPU introduces a huge amount of latency, it only makes sense when you need high throughput and have large enough workloads to justify the latency. SIMD code can be interleaved with normal native code with zero latency.
And then there's the fact that WebGL is so much behind the state of the art that it's not even funny. Sticking to an old version of GL/GLSL severely limits what you can do with it.
Re:WebAssembly support now shipping in all major browsers
by baybal2 on Tuesday November 14, 2017 @10:03AM
(#15695568)
>have large enough workloads to justify the latency
Hashsum bruteforcing? It already appears to be picking up, I'm having quite frequent browser crashes these days because of shoddily written JS miners trying to do stuff on GPU
Re:WebAssembly support now shipping in all major browsers
by wereHamster on Tuesday November 14, 2017 @10:16AM
(#15695690)
> shoddily written JS
Blame the OS, graphics card drivers, or the browser, but not JS!
Re:WebAssembly support now shipping in all major browsers
by tomxor on Tuesday November 14, 2017 @07:57AM
(#15694577)
Not sure what you mean (maybe i'm missing your point) but those two things are not very comparable. GLSL is an uncompiled GPU language and SIMD is a class of CPU instructions that exploit parallelism opportunities at the block level (apposed to core level like a GPU).
Re:WebAssembly support now shipping in all major browsers
by zurn on Tuesday November 14, 2017 @09:18AM
(#15695145)
Both can be be used to accelerate the image processing application in question. GLSL is compiled on the fly to GPU instructions that exploit parallelism opportunities, but more so than SIMD because GPUs have greater internal paralllelism.
Re:WebAssembly support now shipping in all major browsers
by tomxor on Tuesday November 14, 2017 @09:39AM
(#15695340)
Yes, they share "parallelism" in the most abstract sense, but beyond that, they are completely different approaches in almost every other way.
You might try to use them to accelerate the same specific task but they have very different capabilities and performance limitations/advantages. Also one is fairly generalised and one is intended to be very domain specific, so don't share all the same types of potential application.
Re:WebAssembly support now shipping in all major browsers
by zurn on Tuesday November 14, 2017 @10:29AM
(#15695825)
I'm still not sure why you insist they are not comparable. GPU compute vs CPU SIMD is a very standard comparison and image recognition applications, like the one discussed, frequently support both.
Re:WebAssembly support now shipping in all major browsers
by tomxor on Tuesday November 14, 2017 @11:12AM
(#15696265)
Well you've added some context in which they are comparable (some types of image processing), and I agree they are comparable given that specific context. I think that probably was your point that everyone else didn't get, but your original comment was void of context and implied some level of interchangeability, but you have to keep in mind that they are used for far more than image processing (even GLSL is), and will have very different results and very different implementations for the subset of tasks that can be accelerated by both.