Remix.run Logo
▲ pelcg 7 hours ago

Is Crystal even relevant at all now?

It isn't interoperable with Ruby and I don't know of any reputable companies using Crystal.

It just looks like Ruby, but it isn't Ruby and it is a compiled language? OK?

I am not sure why I should learn this language?

▲abound 7 hours ago | parent | next [-]

> I don't know of any reputable companies using Crystal.

Kagi uses Crystal for their search backend [1]. How they feel about that today and whether that was the right call are, of course, separate questions.

[1] Previous thread: https://news.ycombinator.com/item?id=38421149

▲dimgl 6 hours ago | parent | prev | next [-]

What a ridiculously negative comment. Obviously ragebait, but I'll bite anyways.

Did you forget that until five minutes ago humans used to read the code? And they needed to understand it? Yes, there was an actual desire for great Ruby-like syntax without the implications of using it, like its performance characteristics and the need for an interpreter.

Yes, it didn't go mainstream. Should we all abandon every project we've ever worked on because they're not "relevant"?

▲yxhuvud 7 hours ago | parent | prev | next [-]

Because it is a nice language to write elegant and performant code in. If that is not enough motivation I guess it is not a language for you.

▲vidarh 6 hours ago | parent | next [-]

The challenge for Crystal is that we also have TruffleRuby which gets you the elegance and Ruby interop. To me Crystal feels like it's at the same time too different to Ruby to benefit from the similarity and too similar to create its own viable niche.

▲snek_case 6 hours ago | parent | prev [-]

HN is full of cynical comments like the above. We should be celebrating people trying things and doing things differently... I can almost guarantee you that the person who posted this cynical comment is not working on anything particularly relevant or useful.

My message to the HN community: HN is literally bankrolled by YC. If Crystal doesn't deserve to exist because other languages exist, why exactly should I care about your bullshit uber-for-dogs startup, or whatever not particularly original AI crap you think you're changing the world with these days? Get real. If you want people to be open to your ideas, maybe you ought to make an effort to be open to the ideas of others, and cultivate a climate where discussing different ideas is possible. Don't treat every HN post as an opportunity to opine on how you think the work of other people is flawed.

▲viraptor an hour ago | parent | prev | next [-]

> It just looks like Ruby, but it isn't Ruby and it is a compiled language?

It's close enough that porting things is often trivial (sometimes just slap a few signatures), as long as the code doesn't go crazy with metaprogramming. Yes, it's not the same and stdlib is a bit different. But it's a lot further than "looks like" Ruby.

▲ricardobeat 4 hours ago | parent | prev | next [-]

Crystal never aimed at Ruby interoperability, it's inspired by Ruby's ergonomic syntax.

You should learn this language if you want the nice developer experience, great stdlib, managed memory, native performance. Similar reasons to why you'd learn Go.

▲sho 6 hours ago | parent | prev | next [-]

Prior to LLMs, Crystal was my language of choice when I needed a distributable binary. It works great for this, and for the kind of packages I was writing - mostly agent-daemons lurking in servers - the networking worked great. The only real alternative was golang, which I've never really liked and has (had?) a more complicated linking story too. The typing worked well too, if used with discipline - if it compiled, I could be pretty confident it would work. I still have systems deployed running Crystal agents, in production, without issue or memory leaks, for years.

LLMs though - I confess they've changed the calculus. Now I no longer have to look at the language, and obey its stupid ideas about error handling, I just use golang for its better library support. But I still have a soft spot for Crystal!

▲axus 5 hours ago | parent | prev [-]

There are Minecraft bots written in Crystal, which was the first time I'd heard of it.