Live data from Hacker News

Ask HN: What web language for server side scripting?

news.ycombinator.com

11–20 of 22 posts

Re: Ask HN: What web language for server side scripting?

#11
post #10

Python, of course. #2. Python usually wins: http://www.alrond.com/en/2007/jan/25/performance-test-of-6-l... #3. Django was written with Postgres in mind.

And Python can be easily extended with C or even Assembly.

Here's the story of the guy who successfully optimized web app bottlenecks in C: http://fi.am/entry/the-limits-of-django-the-answers/

Re: Ask HN: What web language for server side scripting?

#14
post #13

If speed of execution is a key requirement, beyond C++ and some good programmers, your main options are Java and C#. I use Java with Struts on Tomcat for a couple of projects and it's served me well.

Agree. Speed of execution != scripting language.

Re: Ask HN: What web language for server side scripting?

#15
post #3

You're going to have to define what sort of speed you need for #2. If you're talking about basic CRUD, then all of the languages you've specified will work just fine. If you're doing a lot of scientific work, then you might want to look at Python, along with NumPy / SciPy. If it's a small core of calculations that you know you'll have to execute over and over again, then all of the above are fine if you're happy to i…

I, personally, prefer Ruby because it thinks the same way I do (if that makes sense). So that's what I'd pick. But Python would do you just as well, if you like the way it reads, etc. better. They key, I think, is to not be too worried about speed up front. Get your thing working in Python, say, and then do testing (another comment mentioned this) and rewrite what's slowest in C. I guess I'm warning against premature optimization.

Re: Ask HN: What web language for server side scripting?

#16
post #13

If speed of execution is a key requirement, beyond C++ and some good programmers, your main options are Java and C#. I use Java with Struts on Tomcat for a couple of projects and it's served me well.

I was thinking that too, but perhaps he means 'execution' in the more generic sense of creating a product quickly?

In any case, even with a slow scripting language like Ruby, if the speed of the language is a concern, perhaps that part of the application should just be farmed out to a library in C (or a separate process in whatever language). Need more info, though.

Re: Ask HN: What web language for server side scripting?

#17
If you want speed, why not Common Lisp? Nice, high-level, a pleasure to work in, fast and compiled out of the box, with the ability to optimize the hell out of specific critical parts of your code (using, e.g., optional type declarations, speed and safety settings, inlining declarations, etc.). Hunchentoot is a nice web server, Postmodern is a nice library for working with Postgres.

Re: Ask HN: What web language for server side scripting?

#18
I myself am a strong proponent of Java. There are enough tools out there that take much of the tediousness of all the common functionality (basic CRUD, form handling, workflow, etc).

The real strength of Java presents itself after you've moved to production; I almost always am able to hand somebody an .ear or .war file and completely offload deployment/operations to somebody else.

As a plug for EJBs (a lot of the negativity around EJBs are carryoversr from EJB 2.1 and earlier), EJB-based application can be easily scaled by putting a request into operations for an additional app server and administratively changing the number of "processors" (session beans). App server failover and recovery is also fairly transparent as well.

Just my $0.02..

Re: Ask HN: What web language for server side scripting?

#19
post #13

If speed of execution is a key requirement, beyond C++ and some good programmers, your main options are Java and C#. I use Java with Struts on Tomcat for a couple of projects and it's served me well.

I'm the Ops Co-founder. True C like languages are faster, but we don't need quite that much speed. nothing Scientific, or really mission critical. I mostly want the code to run faster vs ease of coding. So if the app was going to take longer running in php than python, but faster to code, I would still want python.

Re: Ask HN: What web language for server side scripting?

#20
post #3

You're going to have to define what sort of speed you need for #2. If you're talking about basic CRUD, then all of the languages you've specified will work just fine. If you're doing a lot of scientific work, then you might want to look at Python, along with NumPy / SciPy. If it's a small core of calculations that you know you'll have to execute over and over again, then all of the above are fine if you're happy to i…

I, personally, prefer Ruby because it thinks the same way I do (if that makes sense). So that's what I'd pick. But Python would do you just as well, if you like the way it reads, etc. better. They key, I think, is to not be too worried about speed up front. Get your thing working in Python, say, and then do testing (another comment mentioned this) and rewrite what's slowest in C. I guess I'm warning against premature…

(Co-founder) well we are/aren't trying to prematurely optimize. It's more like 4 great languages to choose (depending on option) and we don't really know enough to pick and learn one. So we're polling to find out if there is really something that we should with a few requirements. Like we care more about how fast the code runs than the speed of coding.But generally not to the excess of writing in C (etc).
Post reply on HN