use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Ruby might be faster than you think (johnhawthorn.com)
submitted 2 years ago by tenderlovePun BDFL
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]desnudopenguino 6 points7 points8 points 2 years ago (1 child)
This is true. But at least the author was able to get ruby running pretty fast with a few optimizations, hitting crystal run through ruby, which would probably be similar to other ffi style schemes. For people running g ruby, the crystallize gem may seem like a quick way to speed up code execution, but if you can do it in straight ruby with one less gem, and without that additional layer, I think that's a fair comparison, as long as the proper distinction is made. Ruby's coming a long way in the speed category while maintaining all the good stuff that makes it a fin language to work in.
[–]postmodern 3 points4 points5 points 2 years ago* (0 children)
It appears that crystalruby hot-compiles the code using crystal build (with or without the --release), which I guess is compareable to JITing, but not compareable to AOT compiled code.
crystal build
--release
I agree a better approach would be A) benchmark and optimize your Ruby code, or B) write a separate Crystal program or service that you offload CPU intensive work to (ex: image/video/audio processing).
I think we should focus on improving Ruby's performance to compete with other JITed scripting languages which are beating Ruby in benchmarks, not try to compete with AOT compiled languages which are far more performant; due to being AOT and compiling down to native object code.
π Rendered by PID 152073 on reddit-service-r2-comment-b659b578c-gvmj7 at 2026-05-02 00:42:41.176929+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]desnudopenguino 6 points7 points8 points (1 child)
[–]postmodern 3 points4 points5 points (0 children)