5 ms·
As much as I like Python, I don't think this is the right approach. What browsers need to do is to have a machine-level bytecode, so that they can download wha
by trothamel 14y ago
As much as I like Python, I don't think this is the right approach.
What browsers need to do is to have a machine-level bytecode, so that they can download whatever interpreters are needed to run the scripting code the page uses. Then pages can be written in whatever language the developer feels is best.
This is the real potential of something like Native Client - although it doesn't look like that potential will be achieved any time soon.
- Niten 14y agoAs much as I don't like Microsoft, I actually think the .NET CLR would be an excellent choice for such a runtime. NaCl not so much; target architecture-dependent compiled code is a major downside.
- tlrobinson 14y agoThere's PNaCl: http://www.chromium.org/nativeclient/pnacl/building-and-testing-portable-native-client http://www.chromium.org/nativeclient/pnacl/building-and-test...
- greggman 14y agoWhat about pnacl? http://www.chromium.org/nativeclient/pnacl/building-and-testing-portable-native-client http://www.chromium.org/nativeclient/pnacl/building-and-test...
- Niten 14y agoI had no idea about that, thanks
- cbhl 14y agoPages downloading and executing things just reminds me of ActiveX from the late 90s. I think South Korea still relies on the technology for their home-grown version of SSL.
- trothamel 14y agoPages download and execute things all the time. The problems with ActiveX was that it was tied to the Windows API, and that it wasn't sandbox - it wasn't the idea of downloading code.
- pcwalton 14y agoThere's no such thing as a language-agnostic bytecode. A bytecode is just a compressed source encoding of some language.
- thisishugo 14y agoI take it you never heard of the JVM, or Microsoft's CLR.
- slurgfest 14y agoI don't think that it's the right approach only ever to allow JavaScript (just because every time anything else is mentioned, we inevitably go off on this tangent). There is no indication that browsers are going to standardize on a VM (let alone NaCl) any time soon. If someone just stopped bikeshedding and did Python in the browser, there's no reason a machine-level bytecode or whatever couldn't be implemented later.