News for hackers. Stuff that matters.
Re:An Introduction to Metaprogramming in Ruby by cutler on Thursday July 27, 2023 @07:16PM (#36901350)
Other than a 60ms startup differential Ruby doesn't sacrifice ANY speed compared with Python. Those days are over.
Re:An Introduction to Metaprogramming in Ruby by bo-tato on Thursday July 27, 2023 @11:34PM (#36902890)
If you're just using it for quick scripting, which is where startup time mostly matters, and you only use the stdlib and no external gems, you can do use --disable-gems and it starts in half the time as python for me.
Re:An Introduction to Metaprogramming in Ruby by cutler on Saturday July 29, 2023 @12:02AM (#36916764)
Hey, you're right. Down from 100ms to 30ms which is 10ms faster than Python. So it's game over for Python, not Ruby, after all ;-)
Re:An Introduction to Metaprogramming in Ruby by KerrAvon on Friday July 28, 2023 @12:21AM (#36903083)
Has Python launch time gotten faster? It used to take a second to start up, where Ruby would be instant on the same machine.
Re:An Introduction to Metaprogramming in Ruby by kaba0 on Friday July 28, 2023 @08:25AM (#36905831)
Well, both are quite slow for what it’s worth, compared to most other programming languages.

Which is still plenty fast for CRUD web applications even at large scales, don’t get me wrong, I’m just pointing out that JS for example often has a 10x multiplier between it and Ruby/Python.

Re:An Introduction to Metaprogramming in Ruby by cutler on Friday July 28, 2023 @11:58PM (#36916745)
It hasnt' stopped Python, by some metrics, from competing in popularity with JS. Some even put Python ahead.
Re:An Introduction to Metaprogramming in Ruby by kaba0 on Saturday July 29, 2023 @02:27AM (#36917487)
As I wrote, performance is not the end-all goal.

Python is the de facto glue language.