Live data from Hacker News

Crystal 1.0 – What to expect

crystal-lang.org

11–20 of 351 posts

Re: Crystal 1.0 – What to expect

#11
I love the idea of Crystal but I remember reading that compilation times can balloon very quickly for moderately sized apps.

Can anyone who writes Crystal today dispel or confirm that information? I imagine the inferred typing makes building a fast compiler really tough.

Re: Crystal 1.0 – What to expect

#12
post #8

Earlier quoted context omitted.

Thanks for mentioning Amber! I assume it's this project: https://amber-lang.net/ I've long wanted to get into Smalltalk and this looks like a very nice, modern way of doing so.

I think they meant this web framework: https://amberframework.org/ There are two pretty big web frameworks in the Crystal world right now, one is Kemal which strives to be the Sinatra or Flask of the Crystal world (lightweight, supporting plugins), and the other is Crystal which is trying to be the Ruby on Rails or Django of the Crystal world (full-featured, opinionated).

The other main one is https://luckyframework.org/ (also going for more of a full-featured Rails type framework)

Re: Crystal 1.0 – What to expect

#14

I love the idea of Crystal but I remember reading that compilation times can balloon very quickly for moderately sized apps. Can anyone who writes Crystal today dispel or confirm that information? I imagine the inferred typing makes building a fast compiler really tough.

Was that possibly before they backed off from global type inference? I think that was the cause of long compilation times. They require you to annotate a few types manually now which is an effective cut.

Re: Crystal 1.0 – What to expect

#16
post #8

Earlier quoted context omitted.

Thanks for mentioning Amber! I assume it's this project: https://amber-lang.net/ I've long wanted to get into Smalltalk and this looks like a very nice, modern way of doing so.

I think they meant this web framework: https://amberframework.org/ There are two pretty big web frameworks in the Crystal world right now, one is Kemal which strives to be the Sinatra or Flask of the Crystal world (lightweight, supporting plugins), and the other is Crystal which is trying to be the Ruby on Rails or Django of the Crystal world (full-featured, opinionated).

There are also other options: https://github.com/veelenga/awesome-crystal#web-frameworks.

https://athenaframework.org is pretty unique. It's one of the more flexible frameworks IMO. It was inspired by Symfony and Spring, so takes a bit of a different approach as most other frameworks come from a more Ruby background.

Re: Crystal 1.0 – What to expect

#17
Anyone want to try out Crystal and not familiar with a static type system, please don't let that discourage you. Crystal type infering is really good to the point you go pretty far without any manually type def.

To me, dealing with JSON is always a challenge in truly static type language. Crystal solved it very nicely https://crystal-lang.org/api/1.0.0/JSON/Serializable.html

Re: Crystal 1.0 – What to expect

#18
Congratulations to the Crystal team. I've been following Crystal's development since around 2016, and it's been a long journey for a large group of incredibly dedicated contributors.

One step closer to a world of static, Ruby-like expressivity!

Re: Crystal 1.0 – What to expect

#20

I love the idea of Crystal but I remember reading that compilation times can balloon very quickly for moderately sized apps. Can anyone who writes Crystal today dispel or confirm that information? I imagine the inferred typing makes building a fast compiler really tough.

I just downloaded 1.0 and tried hello world. It took over 2 seconds. I hope that's just some kind of bug.
Post reply on HN