I have some data analysis code that processes an input file and outputs HTML and/or SVG. It is C++ and CPU-intensive.
I would like to create a browser plugin so that my code can be used without leaving the browser. Google's Native Client framework and the Pepper API sound interesting but perhaps is a little too restrictive. From a Native Client module is it possible to do the following via Pepper?
Output HTML or SVG back to the browser. Is there any way that the C++ can modify the containing document's DOM?
preguntado el 02 de febrero de 12 a las 10:02
i am less certain for (1), but (2) is definitely not directly possible.
isn't continuation passing style fun?
nacl_iolibrary implements standard posix methods such as
fread, so once you've saved your file it's pretty straight forward. See aquí for JS (don't be put off by the deprecation message, it's implemented in Chrome), and aquí for NaCl.