3 ms·
What is the killer feature of Crystal? Say, for Go it's utter simplicity and easy concurrency. For Rust, it is the many safety guarantees on top of high perfo
by nine_k 4y ago
What is the killer feature of Crystal?
Say, for Go it's utter simplicity and easy concurrency.
For Rust, it is the many safety guarantees on top of high performance.
For Python, it is the ease of learning and interactive fiddling on top of a colossal ecosystem.
Etc. What sets Crystal apart?
- renewedrebecca 4y agoruby-ish (yet more strongly typed) syntax that compiles to native code.
- pull_my_finger 4y agoI'd think it would be system level programming with acceptably good performance with high level abstractions and the Ruby flavor. Similarly is Nelua[1] which uses Lua's syntax and APIs and compiles to C. [1]: https://nelua.io https://nelua.io
- 22c 4y agoI'd say it's the Ruby-inspired syntax. Some people find the Ruby syntax a joy to work with. Crystal has that, but also includes type checking out of the box, among other things. The front page does a good job of outlining the key features of Crystal: https://crystal-lang.org/ https://crystal-lang.org/ If none of these features seem that compelling for you, then Crystal may not be for you. As someone who has experience writing/reading/maintaining Ruby code, Crystal seems a lot more friendly to me than Go, but each to their own.
- Fire-Dragon-DoL 4y agoI like the type safety, but for everything else, they compete directly with Elixir too. I feel like some unique feature might be needed. But I hope to be wrong, syntax looks great.
- 22c 4y agoI wouldn't say Elixir is really close to Ruby syntax. I see Elixir more like the "Scala of BEAM VM" (but that doesn't really do Elixir justice).
- antifa 4y agoFor Go, I want a better type system, better syntax, better exception handling. For rust, I want simpler syntax and simpler memory safety. For python, I want something much faster, an actually existing typesystem (not fancy linter comments pretending to be a typesystem), otherwise I'd be using Ruby.