Have you seen the Chrome apps platform?
http://developer.chrome.com/apps/about_apps.html
It's pretty damned close to what you're asking for.
http://developer.chrome.com/apps/about_apps.html
It's pretty damned close to what you're asking for.
If you could run a c++/java app in the background and make RPCs to it from browser events, that would be closer...
https://github.com/rogerwang/node-webkit
It's basically Chromium on top of nodejs. Then you can mix your C++ code with nodejs via addons.
Thanks so much for the responses, these are really great ideas.