Compiled for what platform? jamii mentions NaCl, but x86 is a very complicated architecture to emulate. Java applets are better, but there is still a lot of overhead (and most people never performance optimize their Java). I would like to see a plugin system based on LLVM, but we have a ways to go there.