Re:Next-Gen Web Apps: Google unleashes Native Client into Ch...
by hencq on Friday August 12, 2011 @05:04AM
(#2876532)
Mono with support for NaCL sounds interesting. Does that mean though the browser will have to download Mono every time it encounters a web app that's written in e.g. C#? Or will it only have to download the C# bytecode?
On a slight tangent, I've always wondered why Java (or other JVM languages) couldn't make a comeback on the client side. Instead of having Applets that run sort of isolated from the browser, you could just expose the DOM.
Re:Next-Gen Web Apps: Google unleashes Native Client into Ch...
by nikcub on Friday August 12, 2011 @07:25AM
(#2876841)
You could host Mono once at a single URL and then include it. It will be cached by the browser just like any other resource.
Unlike javascript libraries, there will be more of an incentive to use a single CDN/hosting point, since the package is likely to be a bit larger
Re:Next-Gen Web Apps: Google unleashes Native Client into Ch...
by MatthewPhillips on Friday August 12, 2011 @10:49AM
(#2877469)
Presumably it would be a stripped down version of Mono. The .NET Micro Framework is about 300k, for example.
Re:Next-Gen Web Apps: Google unleashes Native Client into Ch...
by cyrus_ on Friday August 12, 2011 @11:48AM
(#2877732)
On your second question, they've tried that with things like JavaFX Script. Not sure why there isn't uptake.
Re:Next-Gen Web Apps: Google unleashes Native Client into Ch...
by bzbarsky on Monday August 15, 2011 @12:09AM
(#2885405)
> but you can't beat native code in tight loops
But you can. https://bugzilla.mozilla.org/show_bug.cgi?id=618692#c1 has a simple example where Java beats gcc -O3 by a factor of 1.5 or so on exactly such a loop. This is not an isolated case, and I fully expect JS JITs to get there for many situations. Unless browsers stop improving them, of course.
Mono 2.10 already ships with support for NaCl, so you can already use a whole bunch of nice languages over the CLI that way. It'll be interesting to see where this takes the Moonlight project though, since it has similar goals. With Microsoft seemingly downplaying or abandoning Silverlight, so is this the end of the line?