Just to put this out there -- since nobody has really mentioned it -- ruby (as a language) doesn't have the greatest performance. You can do some tricks with GC to speed it up (Ruby EE might be a faster option), but you're still looking at 50x slower than C (python is 40x, Java 7 is around 2x, Javascript on V8 -- Node-- is 4x). So if you're planning on doing a lot on the backend, you might want to consider breaking o…
Ask HN: Building a large webapp today - what language for the backend, and why?
11–20 of 64 posts
Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#12Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#13Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#14Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#15Just to put this out there -- since nobody has really mentioned it -- ruby (as a language) doesn't have the greatest performance. You can do some tricks with GC to speed it up (Ruby EE might be a faster option), but you're still looking at 50x slower than C (python is 40x, Java 7 is around 2x, Javascript on V8 -- Node-- is 4x). So if you're planning on doing a lot on the backend, you might want to consider breaking o…
Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#16Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#17Why? You can scale very easily, write code in a higher level language that has lots and lots of libraries, have map reduce out of the box, but you don't need to really worry about your DB dying on you.
Here is what you do need to worry about in this set up: Eventual consistency. But I would argue that any web app at scale needs to worry about it. So if you are coming from a company that already has lots of users and you are writing a new app that will be in the hands of lots of people very quickly, go with Riak + Tornado/Twisted. You'll probably want to set R = 1 or 2 and pay special attention to conflict resolution.
Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#18Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#19Just to put this out there -- since nobody has really mentioned it -- ruby (as a language) doesn't have the greatest performance. You can do some tricks with GC to speed it up (Ruby EE might be a faster option), but you're still looking at 50x slower than C (python is 40x, Java 7 is around 2x, Javascript on V8 -- Node-- is 4x). So if you're planning on doing a lot on the backend, you might want to consider breaking o…
I agree that ruby is slow, and I actually recommended Java, but ruby execution is not going to be the bottleneck for a webapp, the database is.
Re: Ask HN: Building a large webapp today - what language for the backend, and why?
#20Just to put this out there -- since nobody has really mentioned it -- ruby (as a language) doesn't have the greatest performance. You can do some tricks with GC to speed it up (Ruby EE might be a faster option), but you're still looking at 50x slower than C (python is 40x, Java 7 is around 2x, Javascript on V8 -- Node-- is 4x). So if you're planning on doing a lot on the backend, you might want to consider breaking o…
I agree that ruby is slow, and I actually recommended Java, but ruby execution is not going to be the bottleneck for a webapp, the database is.
However, premature optimization and all that, don't choose Java because its faster than Ruby in some arbitrary benchmark. Choose Ruby because it makes you happy and you can meet business objectives faster and easier with it.