News for hackers. Stuff that matters.
Re:Comparing Elixir and Go by andyfleming on Thursday January 26, 2017 @11:44PM (#13497766)
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.

Re:Comparing Elixir and Go by devmunchies on Friday January 27, 2017 @12:08AM (#13497867)
Crystal 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.
Re:Comparing Elixir and Go by sudhirj on Friday January 27, 2017 @02:58AM (#13498382)
Swift 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.
Re:Comparing Elixir and Go by yxhuvud on Friday January 27, 2017 @04:45AM (#13498756)
What 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.

Re:Comparing Elixir and Go by bitwalker on Thursday January 26, 2017 @11:51PM (#13497798)
My 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.
Re:Comparing Elixir and Go by devmunchies on Thursday January 26, 2017 @11:56PM (#13497817)
Crystal has a similar concurrency model to Go, actually. It just doesn't yet have parallelism yet (coming soon).
Re:Comparing Elixir and Go by andyfleming on Friday January 27, 2017 @12:26AM (#13497951)
As far as the current interface for concurrency, it has fibers, channels, and futures.
Re:Comparing Elixir and Go by manualwise on Friday January 27, 2017 @06:55AM (#13499211)
This article has some performance comparisons between Crystal and Elixir in the comments: https://blog.codeship.com/an-introduction-to-crystal-fast-as...