Live data from Hacker News

Crystal for Rubyists

crystalforrubyists.com

71–80 of 94 posts

Re: Crystal for Rubyists

#72

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).

It’s getting pretty close.

Windows status: https://github.com/crystal-lang/crystal/issues/5430

Re: Crystal for Rubyists

#73
post #46

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

With static typing and analysis in the editor there’s no reason to run the code for every second line you write.

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

#74

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…

To be fair, the slow compilation time is annoying even compared to other compiled languages, particularly Go and Nim, which are similarly "high level".

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

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.

> This is the problem

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

#76

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?

https://crystal-lang.org/reference/tutorials/basics/index.ht...

https://crystal-lang.org/learning/

Re: Crystal for Rubyists

#77
Hey Everyone. I'm looking russian speaking Crystal/Ruby developers for really interesting project with competitive salary. For details, please, contact me via e-mail - veronika.p@eurekaos.com

Re: Crystal for Rubyists

#78
post #7

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

As someone from the US state of Michigan that has at least two competing demonyms, I actually find the idea of everyone using a different form based on preference to be charming.

Re: Crystal for Rubyists

#79
I've been using Crystal for some 6 years now and it's still my favorite language. It definitely has issues; it's not perfect, but it really hits a good balance between being a fast language with nice features and encouraging the "joy of programming" that Matz is all about. I would love to see it gain popularity eventually.

Re: Crystal for Rubyists

#80

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.

I pretty much love C++ and would give up my career to be able to work with it again. Especially that feeling of squishing millions of lines of data in milliseconds by running the compiled code. It is pure delight. C did make me pretty miserable, though.
Post reply on HN