3 ms·
How does Crystal lang compare to the two? I know the syntax is more similar to Elixir, but the format seems closer to Go in the sense that it compiles to a bin
by andyfleming 10y ago
How does Crystal lang compare to the two?
I know the syntax is more similar to Elixir, but the format seems closer to Go in the sense that it compiles to a binary.
- bitwalker 10y agoMy understanding of Crystal is limited, but I think of the two, Go is the only one you would probably consider comparing it to, because of its native compilation. I don't think it has a very strong emphasis on concurrency, so comparing it to Elixir likely doesn't make much sense. Take that with a grain of salt though, as I'm not super familiar with the language.
- devmunchies 10y agoCrystal has a similar concurrency model to Go, actually. It just doesn't yet have parallelism yet (coming soon).
- andyfleming 10y agoAs far as the current interface for concurrency, it has fibers, channels, and futures.
- devmunchies 10y agoCrystal is more comparable to Go or Swift. I've been working with Crystal a lot the last few months and I'm really enjoying the emphasis on speed. The ecosystem is understandably still immature, but its going to hit 1.0 this year, so I wouldn't build anything big quite yet.
- sudhirj 10y agoSwift would be a better comparison - both Crystal and Swift are general purpose languages that compile via LLVM. Neither has any special story for concurrency (yet). Go and Elixir/Erlang on the other hand, change your approach to programming.
- yxhuvud 10y agoWhat are you talking about? Crystal has a concurrency solution in their Channel implementation. They are not yet running in parallel, but it most definitely implement concurrency. Or in other words, it is very inspired by the Go concurrency solution.
- manualwise 10y agoThis article has some performance comparisons between Crystal and Elixir in the comments: https://blog.codeship.com/an-introduction-to-crystal-fast-as-c-slick-as-ruby/ https://blog.codeship.com/an-introduction-to-crystal-fast-as...