Have you taken a look at WebCL? (http://www.khronos.org/webcl/) If I understand correctly what you want to do, WebCL is precisely it. Apparently there is a project underway to bring this to webkit and chromium (https://code.google.com/p/webcl/).
Hope this helps, Dmitry On Wed, Apr 3, 2013 at 11:43 PM, norm rubin <[email protected]> wrote: > ops, left off my question > > All of these appear to have some pros and cons, Does anyone have a > suggestion of which option is better? > > > On Wednesday, April 3, 2013 5:40:49 PM UTC-4, norm rubin wrote: >> >> I'm working out how to add some amount of gpu support to javascript, >> ideally this would work in the browser (chrome) >> to get the gpu to execute I need to do some analysis on the ast, to >> generate some gpu code, and to call a c interface to put the code into >> execution >> A lot of the analysis I need is already in v8 but not exposed as an >> interface >> >> As I understand it, I could do one of the following: >> 1) modify v8, and build a special version of chromium >> >> 2) not modify v8 at all (write code to generate the ast, do the analysis >> and code generation in javascript) and use npapi to call the c code >> 3) write an extension in which has its own embedded copy of my modified >> v8) >> 4) some other scheme that I don't know about >> >> >> >> >> -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
