Really happy to see this go 1.0. Between Crystal and Zig it's nice to see C++/Rust get some competition
Would a developer looking a Zig/C++/Rust really also consider Crystal? I figured Crystal was for Ruby developers who want a good static type system.
Crystal 1.0 – What to expect
31–40 of 351 posts
Re: Crystal 1.0 – What to expect
#32Really happy to see this go 1.0. Between Crystal and Zig it's nice to see C++/Rust get some competition
Would a developer looking a Zig/C++/Rust really also consider Crystal? I figured Crystal was for Ruby developers who want a good static type system.
Re: Crystal 1.0 – What to expect
#33Huh - what's the last language that got mainstream adoption without backing from a large company? It almost seems impossible these days. Ruby?
Re: Crystal 1.0 – What to expect
#34Love the idea... could someone do a similar idea with Python.
Re: Crystal 1.0 – What to expect
#35It feels like Crystal it took all the best things from the languages I love, and put them together into one, beautiful language: - Elegance of Ruby - Statically type checked + global type inference - No Nulls - Go-like concurrency - Easy C ffi - High performance I really hope the Crystal succeeds and the language goes mainstream - this release is a huge step forward towards that. Congrats to the Crystal team for reac…
Does it not? It has 'nil', just like Ruby. Basically the same thing, the docs literally say it's 'similar to null in other languages'.
https://crystal-lang.org/reference/syntax_and_semantics/lite...
Re: Crystal 1.0 – What to expect
#36Earlier quoted context omitted.
Would a developer looking a Zig/C++/Rust really also consider Crystal? I figured Crystal was for Ruby developers who want a good static type system.
Crystal's appeal, for me at least, is the productivity of Ruby with the memory efficiency and execution speed of C++. Static typing is just a way of achieving that, it's not something I'm seeking per se.
Re: Crystal 1.0 – What to expect
#37Earlier quoted context omitted.
I just downloaded 1.0 and tried hello world. It took over 2 seconds. I hope that's just some kind of bug.
There is a cache that was previously cold. Subsequent runs should be faster. However compile times are longer than other languages like Go.
Re: Crystal 1.0 – What to expect
#38Re: Crystal 1.0 – What to expect
#39It feels like Crystal it took all the best things from the languages I love, and put them together into one, beautiful language: - Elegance of Ruby - Statically type checked + global type inference - No Nulls - Go-like concurrency - Easy C ffi - High performance I really hope the Crystal succeeds and the language goes mainstream - this release is a huge step forward towards that. Congrats to the Crystal team for reac…
> No Nulls Does it not? It has 'nil', just like Ruby. Basically the same thing, the docs literally say it's 'similar to null in other languages'. https://crystal-lang.org/reference/syntax_and_semantics/lite...
So a function might return an Int or a Nil, but if you then try to, say, invoke a function expecting an Int on a Nil, it predictably blows up. An Int cannot be Nil itself.
Re: Crystal 1.0 – What to expect
#40Huh - what's the last language that got mainstream adoption without backing from a large company? It almost seems impossible these days. Ruby?