>Make the browser's low-level language be an efficient bytecode-based compiled language like Java, rather than an inefficient dynamic language like JavaScript (although JavaScript is less inefficient than it used to be, thanks to recent improvements in JS engine technology).
Not every use case for javascript demands native-level performance or strict type safety, though. You would really rather have a separate, compiled binary for every time someone wanted to alter the DOM on their page? And break the ability to view the source and edit in the browser?
I can see the case for replacing javascript with a saner interpreted language, but we've already tried Flash-based sites and Java applets and for the most part the result has been slow, bug-ridden, insecure proprietary nightmares.
Not every use case for javascript demands native-level performance or strict type safety, though. You would really rather have a separate, compiled binary for every time someone wanted to alter the DOM on their page? And break the ability to view the source and edit in the browser?
I can see the case for replacing javascript with a saner interpreted language, but we've already tried Flash-based sites and Java applets and for the most part the result has been slow, bug-ridden, insecure proprietary nightmares.