Live data from Hacker News

Crystal for Rubyists

crystalforrubyists.com

41–50 of 94 posts

Re: Crystal for Rubyists

#41
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.

Ruby 3 supports type signatures: https://github.com/ruby/rbs

Re: Crystal for Rubyists

#42
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.

I reject the implication that if dynamic typing is awesome, then static typing is _not_ awesome.

It’s like saying pizza is awesome, therefore ice cream is not.

Both are awesome! It just depends what you’re trying to achieve at that point in time. A language’s type system is not, in absolute terms, an advantage or disadvantage. It’s just a design choice, each with their own trade-offs that we must consider.

Re: Crystal for Rubyists

#43
post #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?

Generally I would agree, but in this case, "Crystal user" isn't that much better.

Re: Crystal for Rubyists

#44
post #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?

A "tool" is probably the best term for someone who actually uses BF.

Re: Crystal for Rubyists

#46

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 cont…

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

Technologies like Docker have made distribution a lot easier. I haven't used tools like chruby or rbenv since 2014 when I started using Docker because Docker manages your app's runtime environment. You pull down your built image on your server and run it. There's no complication, sprawling of version managers or surprises.

Personally I think having a fast dev feedback loop is critically important. It's something you experience hundreds of times a day as you're developing your project.

Re: Crystal for Rubyists

#47

This is great Serdar. As an alternative to Chapter 2 I’ll also share https://github.com/compumike/crystal-docker-quickstart my project template which lets you get a Crystal (currently 1.6.2) dev environment running with just Docker. Good for kicking the tires, which is what I think your audience is probably wanting to do! And then eventually can install a binary package as you suggest.

Nice! It doesn't work in Windows native, right? Asking because newbies might come from there (although I bet most of them use WSL).

Re: Crystal for Rubyists

#50

With advent of code coming up I'm torn between Kotlin and maybe Crystal. https://adventofcode.com/

Wow, I'm in with Crystal support :) Do you know something like awesome-training resourses for Crystal?

In general, I tend to look at sites like these for new languages:

https://learnxinyminutes.com/docs/crystal/

https://rosettacode.org/wiki/Category:Crystal

Otherwise I'll be starting with Crystal as well if I decide to do AoC in it, so I don't know of any other resources either.

Post reply on HN