r/programming • • Feb 24 '13

Ruby 2.0.0

http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
600 Upvotes

193 comments sorted by

View all comments

-28

u/__Cyber_Dildonics__ Feb 24 '13

For when performance absolutely does not matter.

9

u/[deleted] Feb 24 '13

You mean "most cases"? Of course. The situations where performance is of primary importance are rare, the cases where performance considerations really do dictate choice of language, even rarer.

1

u/dmitry_sychov Feb 24 '13

Thats not true. For desktop apps performance is very important, especially in the light of ultramobile underpowered computers raise.

3

u/[deleted] Feb 24 '13

That must be why you're all writing your desktop apps in highly-optimised assembler, then.

0

u/dmitry_sychov Feb 24 '13

read the Evernote story - how they've finally switched from Java to C++.

3

u/bjmiller Feb 24 '13

Sometimes you need to optimize for run time, most of the time you need to optimize for development time.

6

u/esquilax Feb 24 '13

1

u/Midasx Feb 24 '13

I swear I saw a comparison of scripting languages where perl was fastest. I think that was using examples of scripts.

5

u/Categoria Feb 24 '13

Maybe you saw it a long time ago? Ruby underwent a lot optimizations recently.

-16

u/[deleted] Feb 24 '13

hmm so you prove shitty languages are still shitty; and that ruby is in a close 2nd.

3

u/esquilax Feb 24 '13

Um, no, it seems like JRuby's spanking the other scripting languages to me.

3

u/[deleted] Feb 24 '13

JRuby is the only peformance-improved alternative implementation still listed on the shootout. It's a little bit biased without PyPy and LuaJIT on there. PHP could also use some more information on its setup, specifically whether APC is enabled with apc.optimization.

1

u/esquilax Feb 24 '13

I hadn't noticed that change. Why is that, do you think?

→ More replies (1)

1

u/[deleted] Feb 24 '13 edited Feb 24 '13

PHP could also use some more information on its setup, specifically whether APC is enabled with apc.optimization.

Benchmarks are useless unless you are benchmarking on the default settings. Anything else would be biased as there are literally millions of performance tweaks you could make which realistically nobody uses.

→ More replies (1)

2

u/TikiTDO Feb 24 '13 edited Feb 24 '13

This is why you use ruby to link stuff together, and then write C extensions for the performance critical routines. Before anything else ruby is a scripting language. You need to treat it as such, and that means knowing when you need to drop to a lower level language.