With advent of code coming up I'm torn between Kotlin and maybe Crystal. https://adventofcode.com/
Crystal for Rubyists
71–80 of 94 posts
Re: Crystal for Rubyists
#72This 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).
Windows status: https://github.com/crystal-lang/crystal/issues/5430
Re: Crystal for Rubyists
#73Earlier quoted context omitted.
> 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. Pe…
I usually only need to run it a few times towards the end of writing a feature to see if the compiler or specs catches any errors.
Re: Crystal for Rubyists
#74Crystal 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…
I also found that the Crystal LSP server was painfully slow, and there seems to be a lack of robust developer tooling in general. Has that improved in the last year or so?
Re: Crystal for Rubyists
#75> 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.
This is the problem when people only know one language, especially javascript. And then have quite naive opinion about programming languages. Ones should try at least all one of big categories; one of ML family, one of C-like, one of Lisp dialect.
Could you state the problem more concretely? Javascript is a cross between Java and Lisp, having a Java-esque C-like syntax, and lisp-like function-as-a-first-class-citizen behavior. Typescript brings it all the way to C#; so the C-like territory is firmly covered. An ML-family language, especially something like Haskell, would only reinforce the admiration for static types. Which languages would lead to the conclusion that dynamic typing is awesome? Lisps?
Re: Crystal for Rubyists
#76With 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?
Re: Crystal for Rubyists
#77Re: Crystal for Rubyists
#78> Crystalian [being the name for Crystal users/evangelists] Man, there have to be better alternatives than this. Did you try “crystacean?” Chuckles in .rs.
There are lots of alternatives. There was a large thread on the forum discussing it and there is basically no consensus for a preferred term.
Re: Crystal for Rubyists
#79Re: Crystal for Rubyists
#80I 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.