Crystal for Rubyists
61–70 of 94 posts
Re: Crystal for Rubyists
#62Earlier quoted context omitted.
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.
EDIT: Wow that took a long time to realize what you meant...haha no, truly not good, and thinking about it my comment "A developer who uses crystal?" is now terrible too.
Re: Crystal for Rubyists
#63Any way related to the talk given at RubyConf Mini? http://www.rubyconfmini.com/program#Crystal-for-Rubyists
Re: Crystal for Rubyists
#64Earlier 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…
> distribution for dynamic languages is a nightmare Weird statement. Software distribution generally is just a terrible mess, regardless of what sort of language it's written in. The one exception is JS, which happens to be dynamic and also has what is probably the most reliable and ubiquitous platform available—so much so that its distribution story is often credited, rightly or wrongly, as the only reason anyone ac…
Github's Hub tool is a good example.
It was originally written in Ruby. This requires that the user:
- may need to handle a certain environment in terms of Ruby interpreter (potentially install a new version)
- may need to handle a certain libraries group (gemsets in RVM)
- needs to install dependencies
- needs to handle switching to the appropriate Ruby interpreter version and libraries group
Especially point 3 is a pain.
Even just installing everything as system Ruby won't work, because often, different Ruby interpreter versions are required.
Once they moved to Golang:
- the distributor compiles for different platforms
- the user downloads the given version for their O/S
That's all.
Re: Crystal for Rubyists
#65This 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
#66Earlier quoted context omitted.
> distribution for dynamic languages is a nightmare Weird statement. Software distribution generally is just a terrible mess, regardless of what sort of language it's written in. The one exception is JS, which happens to be dynamic and also has what is probably the most reliable and ubiquitous platform available—so much so that its distribution story is often credited, rightly or wrongly, as the only reason anyone ac…
There are very significant differences between distributing programs in a static vs. dynamic language. Github's Hub tool is a good example. It was originally written in Ruby. This requires that the user: - may need to handle a certain environment in terms of Ruby interpreter (potentially install a new version) - may need to handle a certain libraries group (gemsets in RVM) - needs to install dependencies - needs to h…
Where does the generalization to dynamic vs. static languages come from?
> Github's Hub tool is a good example.
I gave an example already (a counterexample, that is—JS). Was there something wrong with that?
Re: Crystal for Rubyists
#67> 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.
Re: Crystal for Rubyists
#68Re: Crystal for Rubyists
#69Re: Crystal for Rubyists
#70Earlier quoted context omitted.
> distribution for dynamic languages is a nightmare Weird statement. Software distribution generally is just a terrible mess, regardless of what sort of language it's written in. The one exception is JS, which happens to be dynamic and also has what is probably the most reliable and ubiquitous platform available—so much so that its distribution story is often credited, rightly or wrongly, as the only reason anyone ac…
There are very significant differences between distributing programs in a static vs. dynamic language. Github's Hub tool is a good example. It was originally written in Ruby. This requires that the user: - may need to handle a certain environment in terms of Ruby interpreter (potentially install a new version) - may need to handle a certain libraries group (gemsets in RVM) - needs to install dependencies - needs to h…
>> the distributor compiles for different platforms
Most people aren't doing that for you. There are lots of tools out there where you do need to still manually compile it yourself and make sure you have the appropriate dependencies which will still be painful. That being said, I agree that shipping a script can be a problem, but lots of people use Brew and that seems to work ok.