5 ms·
> And then there's all of these amazing up-coming technologies like WebAssembly and WebRTC. If we can have the security and uniformity of a Chromebook and run P
by thaumasiotes 11y ago
> And then there's all of these amazing up-coming technologies like WebAssembly and WebRTC. If we can have the security and uniformity of a Chromebook and run Photoshop and Quake and BitTorrent directly in the browser with no overhead, then there's absolutely no point for users to deal with the muck and grime of whatever bad state they get their local filesystem into.
I see a lot of excitement about WebAssembly. I also see a lot of people saying how java applets were obviously a bad idea, and deserved the obscurity they fell into.
I don't really understand how to reconcile those viewpoints. :/
- seabrookmx 11y agoWeb assembly gets first class access to browser API's and the DOM, which Applets never did. Applets had virtually zero ability to communicate with the webpage they were contained in. This paired with the fact that most users at the time (on Windows) had to download additional nagware to run them, and you have a recipe for disaster. Web assembly is a continuation of JavaScript and ASM JS and is poised to be a much better solution for all parties.
- thaumasiotes 11y agoWhy would they need the ability to communicate with the webpage they were contained in? They can communicate with themselves. What's the difference between a single-page web application in WebAssembly and a single-page java applet in java bytecode? What's the DOM adding? Suppose I want to run Quake in the browser. Applets already do that. It's not a new idea or a new technology.
- Lio 11y agoWell there's a certain consistency to what you can do in a browser. E.g. Opening part of the app in a new tab or searching for things on the page. A soon as you're in flash or an Applet all bets are off. It might work, might not. Its jarring. (Of course this ignores single page apps that deliberately break things like right click, etc.)
- ssalazar 11y ago> What's the difference between a single-page web application in WebAssembly and a single-page java applet in java bytecode? What's the DOM adding? With the DOM you don't have to reinvent the numerous wheels it provides (text, images, layout, controls) nor do you have to use the visually inconsistent versions of these applets provided. Java is also owned by Oracle, and was previously owned by Sun, so its development has/will always be directed by the needs of its owners rather than the community at large. > Suppose I want to run Quake in the browser. Applets already do that. I dont think this is the primary motivation for WebAssembly. > It's not a new idea or a new technology. Sure, but there are crucial implementation differences (i.e. DOM interaction), differences in the presentation and culture, and political differences.
- curun1r 11y agoFor one, WebAssembly is designed as a target for many languages. An LLVM backend is in the works, which means being able to write front-end code in one of probably 20-30 languages. I'm personally really hoping we get to the point where I can write my front-end in Rust. Second, Java GUI toolkits all sucked and produced ugly UIs. I know some developers liked Swing and people claim it can be made to look native, but I've used hundreds of Swing apps and they never lived up to that promise. For better or for worse, HTML+CSS works well enough and people understand it, so WebAssembly's ability to interact with the DOM is a massive improvement over what was available to Applets. Third, Sun's ability to secure the JVM plugin was, to be kind, pathetic. WebAssembly should be better since it should inherit a lot of what we already have for JavaScript. For better or for worse, the JVM was just never designed to protect users from the people writing Java code whereas all JavaScript engines were built from the ground up with that in mind. WebAssembly will be built with that same mindset. Fourth, an open specification vs a closed spec controlled by a single company. There's probably more reasons, but that covers most of what I hated about Applets that I'm hoping won't be the case with WebAssembly.
- rjsw 11y agoJava applets could have been provided with a good binding to the DOM of the containing page, I don't remember anyone asking for this at the time.
- jsolson 11y agoJava applets were problematic. They created a distinct runtime with different degrees of freedom and communications mechanisms than the web, generally. It was a security and interop nightmare. Java as a language that can compile down to JS (or WebASM) is fine.