News for hackers. Stuff that matters.
Re:Brython - Python to Javascript translator by trothamel on Friday December 14, 2012 @07:22PM (#4924051)
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.

Re:Brython - Python to Javascript translator by pcwalton on Friday December 14, 2012 @10:22PM (#4924493)
There's no such thing as a language-agnostic bytecode. A bytecode is just a compressed source encoding of some language.
Re:Brython - Python to Javascript translator by thisishugo on Saturday December 15, 2012 @12:11PM (#4925681)
I take it you never heard of the JVM, or Microsoft's CLR.
Re:Brython - Python to Javascript translator by slurgfest on Saturday December 15, 2012 @04:30AM (#4925020)
I 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.

Re:Brython - Python to Javascript translator by Niten on Friday December 14, 2012 @07:41PM (#4924100)
As 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.
Re:Brython - Python to Javascript translator by tlrobinson on Friday December 14, 2012 @08:38PM (#4924273)
Re:Brython - Python to Javascript translator by greggman on Friday December 14, 2012 @08:39PM (#4924278)
Re:Brython - Python to Javascript translator by Niten on Saturday December 15, 2012 @11:05PM (#4927281)
I had no idea about that, thanks
Re:Brython - Python to Javascript translator by cbhl on Friday December 14, 2012 @08:15PM (#4924195)
Pages 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.
Re:Brython - Python to Javascript translator by trothamel on Friday December 14, 2012 @10:45PM (#4924534)
Pages 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.