HTML5 + LLVM = Win? Or not existent?
I tried a simple breakout clone in a browser and saw it take 25% of my CPU. Sad.
I was wondering if L开发者_如何学GoLVM can hook into HTML5 and take advantage of canvas, SVG and etc. If not does LLVM have its own multimedia layer? I ran my version of chrome with --enable-nacl and it looks like it is enabled (half of the native client demos ran http://naclports.googlecode.com/svn/trunk/src/gallery/index.html). Since chrome supports it now is there anything I can do?
LLVM does not provide any such feature itself.
But you might be interested in the Emscripten project, which is a compiler from LLVM IR to JavaScript. The author has taken ray tracers and other programs written in C++, and compiled them to run in the browser automatically. It's very cool!
精彩评论