Live data from Hacker News

Crystal for Rubyists

crystalforrubyists.com

31–40 of 94 posts

Re: Crystal for Rubyists

#31
post #30

> What’s awesome about Ruby? > Dynamically typed As someone who has experienced the joy and at least some feeling of safety from moving to typescript from javascript, I would seriously question that dynamic typing is awesome.

not all dynamically typed languages are the same, Ruby is strongly typed and JavaScript is generally described as a weakly typed language.

Re: Crystal for Rubyists

#32

> Crystalian [being the name for Crystal users/evangelists] Man, there have to be better alternatives than this. Did you try “crystacean?” Chuckles in .rs.

Pfff, yesterday i talked with a Brain fucker...it was terrifying. Can we just stop calling peoples after tools?

Re: Crystal for Rubyists

#33

Crystal is a lovely language. The language community is small though, and learning resources are also small. The story for Crystal is the same story for many programming languages: grow the interest of users, and find generous funding. My impression is that not many Ruby programmers have switched to Crystal. The slow(ish) Crystal compilation will not please Ruby users. And Crystal for Windows is still in beta. Despit…

> The slow(ish) Crystal compilation will not please Ruby users

I don't know what's the general opinion, but distribution for dynamic languages is a nightmare (and I'm including intra-machine, ie. switching between environments).

Personally, I'd be thrilled to trade off speed of compilation for distribution simplicity!

> My impression is that not many Ruby programmers have switched to Crystal.

This depends on the context of moving - professional projects, or hobby programming. Every once in a while somebody pops up saying that they've switched for hobby projects (mostly, scripts).

I'd love to switch, also professionally (that is, for certain parts of my professional project), however, lack of (release quality) parallelism is a dealbraker for me. It's mostly a matter of long-term trust - I personally don't trust a programming language that in 2022 doesn't support parallelism. Ironically, Ruby now has it (even if in limited form).

Development of 3d party libraries are also in vicious circle (few libraries -> few devs -> few libraries). Lack of (release quality) AWS SDK, for starters, is a dealbreaker.

Re: Crystal for Rubyists

#34

I fucking love Crystal and Ruby. Never has a language literally made me happy like those two. " Amazement wow is this how easy I can achieve this. This is incredible!!!". Conversely Perl and C++ made me miserable, as I tried and tried and gave up learning them. I prefer Excel formulae to working with them.

> Perl and C++ made me miserable

You compare to rather new, and "geared to learners", languages to some old and know-to-be-arcane languages.

I'd be curious what you think of, for instance, Kotlin and Elm.

Re: Crystal for Rubyists

#35
post #30

> What’s awesome about Ruby? > Dynamically typed As someone who has experienced the joy and at least some feeling of safety from moving to typescript from javascript, I would seriously question that dynamic typing is awesome.

not all dynamically typed languages are the same, Ruby is strongly typed and JavaScript is generally described as a weakly typed language.

The word "strong" is not well defined in this context. But usually it is used for languages like Haskell, Idris, PureScript and Elm.

Ruby does not do as many automatic casts as JS. In this regard it may be seen as "stronger".

Re: Crystal for Rubyists

#37

Crystal is a lovely language. The language community is small though, and learning resources are also small. The story for Crystal is the same story for many programming languages: grow the interest of users, and find generous funding. My impression is that not many Ruby programmers have switched to Crystal. The slow(ish) Crystal compilation will not please Ruby users. And Crystal for Windows is still in beta. Despit…

> The story for Crystal is the same story for many programming languages: grow the interest of users, and find generous funding.

it's the same thing for Elixir as well. they have successfully wooed a few Ruby programmers but not many have completely switched to using Elixir. Again some companies using Elixir are those that want to migrate away from Ruby.

it takes quite a while for a new hot language to become extremely popular and then go on to replace other popular mainstream languages.

Re: Crystal for Rubyists

#38
post #35

Earlier quoted context omitted.

not all dynamically typed languages are the same, Ruby is strongly typed and JavaScript is generally described as a weakly typed language.

The word "strong" is not well defined in this context. But usually it is used for languages like Haskell, Idris, PureScript and Elm. Ruby does not do as many automatic casts as JS. In this regard it may be seen as "stronger".

Ruby matches this definition: https://www.wikiwand.com/en/Strong_typing

Crystal has static type checking though.

Re: Crystal for Rubyists

#39

How is wasm support going? I know they have to "throw away" many of their inventions in lieu of single threads and untouchable stacks, but the core of type inference still maps well to wasm (?)

There has been some progress recently. A big part of stdlib specs already pass on WASM. It's usable for experimentation. A great introduction is available at https://glue.im/noah/introduction-to-webassembly-in-crystal and https://glue.im/noah/webassembly-host-functions-in-crystal

Re: Crystal for Rubyists

#40
post #37

Crystal is a lovely language. The language community is small though, and learning resources are also small. The story for Crystal is the same story for many programming languages: grow the interest of users, and find generous funding. My impression is that not many Ruby programmers have switched to Crystal. The slow(ish) Crystal compilation will not please Ruby users. And Crystal for Windows is still in beta. Despit…

> The story for Crystal is the same story for many programming languages: grow the interest of users, and find generous funding. it's the same thing for Elixir as well. they have successfully wooed a few Ruby programmers but not many have completely switched to using Elixir. Again some companies using Elixir are those that want to migrate away from Ruby. it takes quite a while for a new hot language to become extreme…

I love Elixir, but it is an extremely niche language. It's great for network application, but just doesn't seem to be suitable for a daily driver language. Meanwhile crystal can fit all the bill: you can use it to write small scripts, you can write it for write long running service, you can write it to crunch data (the multi-threading feature of crystal is still an experiment though, but it works well for basic stuff)...

As I mainly use ruby for scripting, Crystal has been replacing ruby's role for me for 3+ years and I don't even find anything that really missing, except for maybe a decent ORM like Sequel.

Post reply on HN