News for hackers. Stuff that matters.
Re:"Optimizations should be added to V8" for the asm.js subs... by fourstar on Thursday March 28, 2013 @05:13AM (#5453886)
Javascript (full-stack) will be running at least half of the most popular websites within 5 years.
Re:"Optimizations should be added to V8" for the asm.js subs... by iso8859-1 on Thursday March 28, 2013 @05:52AM (#5453985)
> most popular

are you talking about the top-10 websites? let's take them one by one:

- Google. I don't think so, it's not even one of their major server-side languages now.

- Facebook. Likewise.

- YouTube. See Google.

- Yahoo!. I don't know anything about their server-side

- QQ.com, Taobao.com, Baidu.com. Given that the Chinese do not pioneer web platforms, I don't see why they'd do this.

- Windows Live. I know MS "likes" JavaScript, putting it in Windows and all, but it's not one of their major languages. It's not even their own :P

- Wikipedia. Would require a switch from MediaWiki or rewrite. While I'd very much like to see PHP replaced, it's currently doing it's job. I have a feeling the language does not matter much, MediaWiki itself is not very complicated.

- Amazon.com. Don't know.

Do you seriously see 5 or more of these turning to server-side JS?

Re:"Optimizations should be added to V8" for the asm.js subs... by yesbabyyes on Thursday March 28, 2013 @09:10AM (#5454542)
It might be a nitpick, but I wonder what you mean by this statement:

- QQ.com, Taobao.com, Baidu.com. Given that the Chinese do not pioneer web platforms, I don't see why they'd do this.

From what I've seen and heard, this isn't true. Taobao in particular seems to be running on a pretty cool stack, and has contributed a lot with OpenResty, which is nginx with modules, LuaJIT and some goodness, backed by Redis, Memcached, MySQL and/or Postgres (inside nginx' event model).

See http://openresty.org/

Re:"Optimizations should be added to V8" for the asm.js subs... by fourstar on Thursday March 28, 2013 @07:57AM (#5454298)
Top 10 is impossible to say since we don't know who will be in those slots 5 years from now. Internet time is insanely fast. Things come and go very quickly. I think it'd be fair to say half of the Top 1000 sites will be with the rate of Node's current development. Development is now getting to a point where they aren't going to be adding new features, but focusing on making it as efficient as possible in what it is (give this a listen http://javascriptjabber.com/052-jsj-node-npm-with-isaac-schl...). I made the switch recently from PHP and I don't think I'd ever go back. Love it, although yes there is a slight learning curve but if you know Javascript already you'll do fine. Knowing how to use callbacks and using some sort of middleware like express is the way to go when developing applications with it.
Re:"Optimizations should be added to V8" for the asm.js subs... by jrabone on Thursday March 28, 2013 @08:00AM (#5454306)
- Amazon.com. Don't know.

Very unlikely; Amazon's backend is basically Perl talking to an SoA via an internal service definition language. A change to server-side JS would require a re-write of almost everything (which isn't unprecedented; the migration from a single giant C++ binary to the Perl system 10-odd years ago was such a rewrite).

Re:"Optimizations should be added to V8" for the asm.js subs... by jsolson on Thursday March 28, 2013 @10:25AM (#5454900)
While I agree that it's terribly unlikely, one could argue that having the services backing the frontend fleet written in JavaScript was "powering" Amazon.com via JS. There's no technical limitation on what you can build those services in, so it's theoretically possible.
Re:"Optimizations should be added to V8" for the asm.js subs... by jrabone on Thursday March 28, 2013 @11:30AM (#5455393)
One could indeed, and again there is some precedent for writing services in "unusual" languages. However, the service ecosystem, tooling and deployment was/is entirely custom; they'd need to add support for JavaScript to an awful lot of internal tools to make it work well. The effort to get Java supported as a first-class development language was pretty substantial, and over the years there a number of internal teams with clever names sprung up to try and change the status quo in one way or another (SVN > Perforce! Ruby > Java!) with varying degrees of success.

So, yeah, no technical limitation, but explaining to Jeff that you've spent a year retooling the build system to support node.js but not actually shipped any features yet might lead to limitations of another sort :-)

Re:"Optimizations should be added to V8" for the asm.js subs... by jsolson on Thursday March 28, 2013 @01:07PM (#5456110)
> So, yeah, no technical limitation, but explaining to Jeff that you've spent a year retooling the build system to support node.js but not actually shipped any features yet might lead to limitations of another sort :-)

Indeed, and this is why I agree that it's pretty unlikely :).

During my stint at Amazon we barely had time to build the infrastructure we absolutely needed to launch features on the artificial deadlines imposed from somewhere in the stratosphere. How anyone had time to work on paying off technical debt or building new infrastructure is beyond me.

Re:"Optimizations should be added to V8" for the asm.js subs... by eksith on Thursday March 28, 2013 @05:17AM (#5453902)
That's a very, very, very, bold statement!

Not saying you're right or wrong, but venerable technologies have a tough time dying quietly. Also most developers tend to be fairly conservative with what they choose especially when load and performance is concerned.

Re:"Optimizations should be added to V8" for the asm.js subs... by duaneb on Thursday March 28, 2013 @05:31AM (#5453937)
Again... Good luck with parallel code.
Re:"Optimizations should be added to V8" for the asm.js subs... by coldtea on Thursday March 28, 2013 @06:12AM (#5454030)
>Again... Good luck with parallel code.

Err, people have moved on from straight parallel code. It's all about message passing and isolation now, which is something Javascript can get perfectly easily (and sort of already has).

Re:"Optimizations should be added to V8" for the asm.js subs... by duaneb on Thursday March 28, 2013 @12:41PM (#5455910)
First, it's the browser that has web workers, not javascript. Second, message passing is prohibitively slow for things like, say, video games. Third, it's not clear at all that we gain any benefit from javascript use.
Re:"Optimizations should be added to V8" for the asm.js subs... by rayiner on Thursday March 28, 2013 @10:02AM (#5454768)
Lol no.
Re:"Optimizations should be added to V8" for the asm.js subs... by willvarfar on Thursday March 28, 2013 @05:53AM (#5453989)
yeah web workers have been driving me nuts recently. The debugging - or lack of it - is crazy.
Re:"Optimizations should be added to V8" for the asm.js subs... by erichocean on Thursday March 28, 2013 @02:00PM (#5456509)
You can debug web workers in Chrome's normal debugger. It has a separate debugger instance for each worker.