4 ms·
I agree. Ruby is slow for certain types of workloads, but for many kinds of workloads it simply doesn't matter, and Ruby is fast enough. For workloads that req
by FooBarWidget 13y ago
I agree. Ruby is slow for certain types of workloads, but for many kinds of workloads it simply doesn't matter, and Ruby is fast enough.
For workloads that require super high performance, one can simply use something else... Java, Node.js or whatever. Now that Phusion Passenger supports Node.js as well, it's very easy to write some parts of an app in Rails, and write other (performance-critical parts) of an app on Node.js, and deploy them together on a single server with ease.
- vinceguidry 13y agoI daresay you'd be better off writing a C extension to Ruby than you would bolting a Node app onto a Rails codebase.
- FooBarWidget 13y agoOnly if you're proficient in C. I think that for a lot of people writing Javascript is the easier option.
- vinceguidry 13y agoA C extension in Ruby can be nothing more than an algorithm implementation accepting strings or numbers and returning such. Where you need proficiency in C is when you're building something substantial in it. The problem with Node is, you have to load up a runtime. That can not only kill your performance gains, but actually make things slower.