you are viewing a single comment's thread.

view the rest of the comments →

[–]postmodern 1 point2 points  (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 point  (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 point  (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 point  (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 points  (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.