News for hackers. Stuff that matters.
Re:Ask HN: The Crystal programming language – what are your ... by sph on Thursday April 28, 2022 @06:22PM (#31198950)
Good of you to ask, it's come into my radar this week, and I'm writing a toy project with it (https://github.com/1player/fancy).

My impressions:

* it feels pretty fun and productive. Right now only Elixir feels better than that, so it's good to have fun on the system programming space.

* it's too slow to compile. This is a major pain point for me, iteration speed should be priority #1. I'd love a REPL.

* it's incredibly easy to hack on the compiler. I sent today my first PR to fix a bug in the stdlib.

* great stdlib, needs better documentation, again Elixir would a great inspiration for how to write docs. I'd love more monadic functions to deal with nils.

* github feels healthy and very active, but the whole ecosystem feels like it's stalled in the past 2 years. Pretty much nobody talks about it, most deps haven't been updated in years, it has a ghost town feel.

* it would fit nicely in my list of favourite languages. Zig for very low level, Crystal for native high level, Elixir for daemons and long running services.

Verdict: I like it a lot, it could be my favourite system programming language, but outreach and hype would give me some hope it's going somewhere and not dying a slow death.

Re:Ask HN: The Crystal programming language – what are your ... by bnjamin on Friday April 29, 2022 @05:37AM (#31203207)
Regarding the REPL, they actually merged a PR with support for interactive/debug mode. https://github.com/crystal-lang/crystal/pull/11159. There is an accompanying blog post here https://crystal-lang.org/2021/12/29/crystal-i.html. I haven't used it myself, just thought I'd let you know.