Hacker News new | past | comments | ask | show | jobs | submit login

But would it mean that? Would using server-side javascript make the project less likely to happen? How many projects absolutely depend on the language they're implemented in - especially given that javascript gives you all the scripting features that c++/java lack.



Would using server-side javascript make the project less likely to happen?

Yes. The library infrastructure of server-side JavaScript is pitiable compared to Python (or C++ or Java). This will change, I have no doubt, and I believe JavaScript will become the most popular language for practically everything short of systems programming in the not too distant future (7-10 years, perhaps), but it's definitely not as easy to build a server-side app in JavaScript today as it is in Python, Ruby, Perl, etc.


I'm using Rhino on the JVM.

Imagine writing Java code, without having to type classnames all the time and you have a rough approximation of what its like.

(And yes, you can import arbitrary Java bits into Rhino. It is "freaking sweet")


But Rhino has the same performance issues as Python and Perl and Ruby, doesn't it?

According to one benchmark ( http://ejohn.org/apps/speed/ ), Rhino is generally several orders of magnitude slower than Spidermonkey and Tamarin. Which probably means that it is also orders of magnitude slower than Python, Perl and Ruby.

Since JavaScript was suggested as an alternative to Python to act as a reasonable substitute for C++ and Java for performance reasons, suggesting a JavaScript implementation that seems to be dramatically slower than even Python seems nonsensical.

While JavaScript is a lovely language, and I'm all for it being used more on the server-side, Rhino only solves the lack of libraries problem when compared to Python...it does not solve the performance/memory problem of using Python at Google scale.

Unless, of course, things have changed dramatically since any of the benchmarks I found were run.


Rhino is a mature project, so at least for my purposes, this was actually a bit more important than performance.

The other thing is that it allowed my team to rewrite pieces into Java as needed without it looking dramatically different.


Last I heard, only C/C++, Java, and Python are supported inside Google. You can run Rhino on the JVM to get server-side JS but it's really slow.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: