News for hackers. Stuff that matters.
Re:Google Details PNaCl Native Client LLVM Bitcode by cromwellian on Thursday August 01, 2013 @02:26AM (#6138976)
Gmail is basically just a blob of js. A lot of modern web apps are. If your definition of the Web is "View Source" capable JS, that battle was lost a long time ago.

NaCL does permit web apps, the Pepper API allows calling browser APIs just like JS, unlike Flash.

The way I look at the browser is, it's a layout engine that manages a Render Tree built by DOM and CSS. It has external bindings for APIs to manipulate DOM, CSS, plus canvas, audio, storage, et al. These APIs may be called from JS, Dart, NaCl. It's the APIs that define the platform, not the programming language.

Too many people are fixated on JS. Really, all that truly matters is having a portable, secure mechanism for distributing code that can call into these bindings. Right now, JS is the only game in town, but there's no reason that has to be the dominant mechanism for the next decades.

If the Web is to be around for another 20-30 years, it needs to avoid stagnation via language zealotry.

Re:Google Details PNaCl Native Client LLVM Bitcode by ahomescu1 on Thursday August 01, 2013 @03:19AM (#6139080)
Neither Flash nor Java applets had access to the DOM, I think that was the point of the comment.
Re:Google Details PNaCl Native Client LLVM Bitcode by moutarde on Thursday August 01, 2013 @06:24AM (#6139426)
Flash and Java applets do have access to the DOM.
Re:Google Details PNaCl Native Client LLVM Bitcode by ahomescu1 on Thursday August 01, 2013 @07:39PM (#6144406)
Interesting, didn't know that. I think some of the bad perception of Java/Flash pages is because most of them didn't access the DOM, they just dumped their own graphics on the page (AFAIK, you could even use AWT/Swing in applets).
Re:Google Details PNaCl Native Client LLVM Bitcode by cromwellian on Thursday August 01, 2013 @09:11PM (#6144792)
Yes they do, but ExternalInterface and Common DOM suck. Pepper has a more direct-binding feel.