167 points · by htfy96 · 7y ago · 30 comments
1. Turning on something in PowerShell.
2. Installing something from the Windows store.
3. Adding a new repository to Apt.
4. Installing Crystal and all the dependencies of your application.
5. Compiling your application.
6. Installing PulseAudio for Windows.
7. Connecting PulseAudio for Windows to Linux somehow. (I gave up upon opening the guide for how to do this bit).
Hardly a process an end user can be expected to do.
For me it is a really good experience: for example the last update didn't break anything and I'm able to add features consistently and relatively quickly.
How to get Crystal 0.28.0 on macOS right now! :
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ca8f21cd49a936bf154235b365fa23929f9f688d/Formula/crystal.rb
# or: brew upgrade https://raw.githubusercontent.com/Homebrew/homebrew-core/ca8f21cd49a936bf154235b365fa23929f9f688d/Formula/crystal.rb
# start the local playground
crystal play &; open http://127.0.0.1:8080Do you think I should learn crystal by porting a smallish ruby CLI app to it, or make one from scratch porting a small bash app ?
I was thinking of doing it in `go` or `rust` but thinking of crystal after seeing this article.
Then the article doesn't say another word about Windows.
But seriously, I think C++ and Perl have taught us that if you give programmers the logical equivalent of a Swiss Army Knife, they will use/abuse absolutely every single bit of it to write their programs.
I used to be a big fan of "more than one way to do it", but these days, I'd gladly take "one reasonably clear way to do it that not everyone likes but 'everyone' can live with".
I used to firmly believe that that was the way a programming language should be. Let me do what I want to do, however I want to do it.
I've finally found myself falling in to almost the complete opposite, with a small addition: "There should be one way to do it, and it should be obvious"
Python mostly scratches that itch for me, but even there it has multiple methods to do the same stuff within the standard library, like list.sort() and sorted(list) https://medium.com/@DahlitzF/list-sort-vs-sorted-list-aab92c...
Ruby has a lot of features but they all feel reasonably thought out. The language still feels quite elegant.
But I have no opinion of Crystal, just prefer small, concise languages in general.