News for hackers. Stuff that matters.
Re:JavaScript is Web Assembly Language and that's OK. by rmrfrmrf on Friday May 24, 2013 @11:02AM (#5763217)
No. If I want byte code, I'll use Java or a native app. This idea that a web browser should be an operating-system-in-a-box-over-http needs to stop.

JavaScript is not a bad language. If you're getting caught up in gotchas and 'quirky' behavior, why not just read EMCA-262 [1] ? It lays out all defined behavior of JavaScript so you'll know exactly what the interpreter is doing when it reads your code.

[1] http://www.ecma-international.org/publications/files/ECMA-ST...

Re:JavaScript is Web Assembly Language and that's OK. by mwcampbell on Friday May 24, 2013 @11:37AM (#5763468)
> This idea that a web browser should be an operating-system-in-a-box-over-http needs to stop.

Why? The Web platform is the only non-proprietary platform that has serious market-share among end-users and mind-share among developers. Therefore, it's the only thing that has a serious chance of ending the dominance of proprietary platforms. IMO, that goal is important enough to override any aesthetic concerns that we developers might have.

Re:JavaScript is Web Assembly Language and that's OK. by rmrfrmrf on Friday May 24, 2013 @05:02PM (#5765165)
> it's the only thing that has a serious chance of ending the dominance of proprietary platforms.

That has never been the end goal for HTTP or even the WWW. Furthermore, we have proprietary web platforms today: just look at Facebook, Google+, Twitter, etc. It's in fact MORE fragmented than the OS market is right now.

I mean, think about it: if you were trying to design a portable OS-as-a-service, would you REALLY be using a stateless protocol like HTTP for it? We've done a pretty good job of hacking together ways to maintain state over multiple requests, but the fact of the matter is that it's 100% garbage overhead that wouldn't exist at all if we just used a stateful protocol in the first place!