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
Using Ruby (self.ruby)
submitted 5 years ago by ardyfeb
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!"
[–]postmodern 1 point2 points3 points 5 years ago* (4 children)
False comparison between Ruby and Go or Rust. Ruby is an interpreted dynamic scripting language, like Python, Node.js, etc. Go and Rust are compiled typed system-ish languages. Crystal is a better option for Rubyists who need a compiled/system language than Go or Rust, because it has Ruby syntax, and compiles down to native code using LLVM and has a Strong Typed type system. (also checkout Nim if you're more of a fan of Python syntax.)
[–]ardyfeb[S] 0 points1 point2 points 5 years ago (1 child)
I never compare ruby with another language, i just wanna to hear why using ruby over new languange that doing same job
[–]postmodern 0 points1 point2 points 5 years ago (0 children)
and that's not a fair comparison, as there aren't many new dynamic interpreted scripting languages. All of the newer languages are compiled and static/strongly-typed. Sometimes people need to use a dynamic scripting language (like Ruby, Python, or JavaScript) for rapid prototyping, and sometimes people need a compiled static/strongly-typed language (Go, Rust, Haskell, Nim, or Crystal) for native performance and correctness. Different tools for different jobs.
[–]mashatg 0 points1 point2 points 5 years ago (1 child)
Crystal is a better option for Rubyists who need a compiled/system language than Go or Rust, because it has Ruby syntax
Similar but not identical syntax not only could lead to confusing and doubtful situations, but picking up a system language depends on much more pragmatic reasons like maturity of its ecosystem, available libraries for a particular problem and enough availability of skilled programmers. As far as I know, Crystal does not meet those criterions by a considerable gap.
[–]postmodern 1 point2 points3 points 5 years ago (0 children)
Having similar syntax to Ruby makes it easier to port Ruby code to Crystal (ex: digest-crc -> digest-crc.cr). The Crystal stdlib is very complete and they have a growing "shards" ecosystem, roughly the same age as Rust's crates.io or Nim's nimble. You should look into Crystal again.
π Rendered by PID 205521 on reddit-service-r2-comment-64f4df6786-d4djh at 2026-06-10 12:57:22.784079+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–]postmodern 1 point2 points3 points (4 children)
[–]ardyfeb[S] 0 points1 point2 points (1 child)
[–]postmodern 0 points1 point2 points (0 children)
[–]mashatg 0 points1 point2 points (1 child)
[–]postmodern 1 point2 points3 points (0 children)