8 ms·
At this rate, I predict that about ten years from now, they'll just ditch the bloody memory-leaking browser and just ship out a VM and a language that will have
by weland 11y ago
At this rate, I predict that about ten years from now, they'll just ditch the bloody memory-leaking browser and just ship out a VM and a language that will have a small GUI library with a DOM-like organization in the standard library compiling for it.
Sure, there are going to be nitpickers who will point out that we had that in 2005 and it was called Java, but what do they know about innovation.
- andybak 11y agoI'm aware you're being satirical but it's an interesting argument which I discussed with a friend yesterday. Java-in-the-browser wasn't a terrible idea per se. Some aspects of it were poor but the tech landscape back then was very different both in capability and in politics.
- pjc50 11y agoIndeed. The JVM-in-applet downsides (slow startup, memory hog due to fixed heap, unresizable, stuck in its box) were mostly contingent rather than necessary. There's no reason those mistakes have to be made again.
- SteveLAnderson 11y agoI don't think the idea is "Java-in-the-browser" it's "browser-in-the-Java".
- silon3 11y agoWhat we need is declarative html markup again (JS optional). CSS also should be optional. Otherwise, long live adblock, noscript, user stylesheets, ...
- weland 11y agoThat's what we need for web browsers. Unfortunately, every other web designer today seems to think I don't want to read a bloody article, but rather to be engaged by an interactive article-reading application that's basically impossible to distinguish from native applications, except for those eighty quirks that are definitely going to be solved by morehacks.js and those new CSS perversions. Web browser developers seem to cater towards those needs, which is how we ended up with browsers where I can run fifty gazillion floating-point instructions per second in JavaScript but it takes me five seconds to find a bookmark, three of which are spent hovering over the titlebar until I remember there's no menubar anymore.
- kuschku 11y agoIn firefox, luckily, you can still have a menubar ;) Even in the latest nightly – press [Alt], click "View", "Toolbar" and check "Menu Bar".
- weland 11y agoOh. I can't believe I missed that and kept hovering over it like an idiot, then going aaaah, crap, I have to press Alt. Jesus Christ.
- Touche 11y agoI don't understand, isn't CSS and JS optional today?
- ForHackernews 11y agoDisable JS and CSS and try to use the internet.
- c22 11y agoI surf with JavaScript disabled by default and selectively enabled for a few frequently used sites that directly benefit from it. I rarely find sites that are unreadable without JS--certainly less often than I used to experience sites that were unreadable because of it. On the rare occasions I find a site that wont work without JS (most common symptom:completely blank page) my decision more often than not is to close the tab and move on with my life. I don't think I'm missing out on much and my computer's fans no longer scream constantly when my machine is idle with the usual dozens of open tabs.
- rev_bird 11y agoI've run into several sites that have weird issues without Javascript, but they seem to always be things that could have been implemented with traditional markup: missing form components, misplaced images, things like that. I'd say about 50 percent of the time[1], however, media-focused sites with complicated image-viewing "galleries" or a more obscure video player, are totally useless without it. It can be frustrating to have to go through this process of navigating to a site, realizing I've broken it, and then reloading with all the crap turned back on, but yeah, like you said, it's better than having my CPU revved up just to have those "SIGN UP FOR OUR NEWSLETTERS!" modals flying around the screen. [1]Totally made this up.
- Touche 11y agoThat's because the designers of most web pages want the features they provide. When you say "optional" you don't actually mean optional, you mean removed. Such a thing already exists, it's called Gopher[1]. [1]https://en.wikipedia.org/wiki/Gopher_(protocol) https://en.wikipedia.org/wiki/Gopher_(protocol)
- deleted 11y ago[deleted]
- Pxtl 11y agoJava failed because of terrible slow gui libs, Microsoft corrupting the standard, and long start-up times. It could have gone fine.
- reacweb 11y agoJava has survived these 3 points. I think that Java is an excellent language that is dying because Oracle has not handled correctly security issues and because Oracle has a very bad reputation. Security ought to be the strong point of Java, not its weak point.
- Pxtl 11y agoIt survived but it didn't dominate the way that was expected. In the late '90s, Java was positioned and expected to be in the place that webapps live today - that is, something within your browser that would handle interactive live client/server applications.
- avodonosov 11y ago+1, I wanted to post a very similar comment :) But lets discuss further, we also should admit the reality, not just reject with satirical statements. Java didn't dominate the web front-end technologies. It's worth to consider why. The points I see: - user needs to download and install JRE - bad integration with HTML document, applet is just a rectangular self contained box on the page; and it's very inconvenient to script DOM nodes, handle events from applets - browser vendors (especially microsoft) were against java becoming the dominating platform - in 2005 java was the only language running on JVM (unlike today). BTW, I wouldn't say java was very slow to startup.
- weland 11y agoMy point was that, eventually, it won't even be a web frontend. They'll just get the web browser out of the equation. Of course, a web "widget" is still going to be there, it just won't be a program you open. I do believe Java failed mostly due to politics -- and more precisely, due to this: > browser vendors (especially microsoft) were against java becoming the dominating platform Everyone agreed, in principle, that a portable, high-performance VM was what we needed. The problem was that every vendor insisted it had to be theirs, while ever so slightly sabotaging other vendors. In the meantime, they all had to provide a working web browser.
- fweespeech 11y agoYou have to admit that Java-for-the-web was terribly insecure and a common way to spread malware. http://www.pcworld.com/article/2030778/researchers-javas-security-problems-unlikely-to-be-resolved-soon.html http://www.pcworld.com/article/2030778/researchers-javas-sec... Honestly, that is why I always avoided it.
- kbutler 11y agoI don't recall seeing much in the way of security vulnerabilities with Java applets until about 2012-2013. The other issues (slow startup, lack of page integration, unattractive UI) were dominant before that.
- gchadwick 11y agoJava's actually a lot older than that, 1995 I believe. Though I'm not sure when Java applets became available in browsers (certainly before 2005). It's a sobering thought that whilst (in my opinion) Java applets were a very good idea, the implementation left much to be desired and it's going to take us more than 20 years to turn those ideas into a good workable solution (of which WebAssembly may be a part).
- lallysingh 11y agoWeb applets were widespread by 1996, I remember writing a few.
- weland 11y agoAbsolutely, but 1996-ish Java was really lousy.
- bad_user 11y agoI think you'll be disappointing. I predict that the browser in its current form will not be going away, no matter how much some people may wish for it.
- marcosdumay 11y agoIf you are kidding (I just can't decide), be aware that Microsoft killed Netscape at the 90's because Netscape was starting to sell exactly that VM. When Netscape became Mozilla, it shipped with XUL runner, that is exactly that, but nobody used it. Firefox OS is that, again, sold for smartphones. If they come out with a good VM (measured by the languages it can run), and a good DOM-like organization, it will happen in no time. But if we get another XUL, it just won't happen.
- pjc50 11y agoXPCOM isn't sandboxed, is it?
- pcwalton 11y agoHow is XUL similar to Web Assembly at all?
- marcosdumay 11y agoXUL aimed to replace the desktop with web applications, Web Assembly may do just that. But you are right in that there's no similarity in structure at all.
- jerrysievert 11y ago| When Netscape became Mozilla, it shipped with XUL runner, that is exactly that, but nobody used it. i would hazard to disagree with that statement - the company i was working for at the time shipped thousands of devices our with the XUL runner, and i wrote several XPCOM objects to support the custom hardware we were shipping at the time. i still miss some of the niceties that came from that.
- edko 11y agoActually, Flash also runs on a virtual machine, and its language (Actionscript) is a dialect of JS that gets compiled into bytecode.