Need advice about which tool to choose?Ask the StackShare community!
Crystal vs Erlang: What are the differences?
Developers describe Crystal as "Fast as C, slick as Ruby". Crystal is a programming language that resembles Ruby but compiles to native code and tries to be much more efficient, at the cost of disallowing certain dynamic aspects of Ruby. On the other hand, Erlang is detailed as "A programming language used to build massively scalable soft real-time systems with requirements on high availability". Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems.
Crystal and Erlang can be primarily classified as "Languages" tools.
"Compiles to efficient native code" is the top reason why over 27 developers like Crystal, while over 49 developers mention "Real time, distributed applications" as the leading cause for choosing Erlang.
Crystal and Erlang are both open source tools. Crystal with 13.5K GitHub stars and 1.05K forks on GitHub appears to be more popular than Erlang with 7.74K GitHub stars and 2.1K GitHub forks.
According to the StackShare community, Erlang has a broader approval, being mentioned in 70 company stacks & 47 developers stacks; compared to Crystal, which is listed in 7 company stacks and 14 developer stacks.
Pros of Crystal
- Compiles to efficient native code38
- Ruby inspired syntax36
- Performance oriented - C-like speeds32
- Gem-like packages, called Shards23
- Can call C code using Crystal bindings20
- Super Fast18
- Typed Ruby <318
- Open Source17
- Minimal Runtime14
- Cute11
- Clean code9
- Concurrent9
- Productive9
- Great community4
- Powerful2
- Program compiled into a single binary2
- Simplicity2
- Meta-Programming (via Macros)2
- Feels like duck types, safe like static types2
- Null Safety2
- Type inference2
- Has builtin LLVM support library1
- Statically linked binaries that are simple to deploy1
- Fun to write1
- High-performance1
- Simple, minimal syntax1
- Compile time statically safe macros1
- Concise1
- Statically Safe Monkey Patching1
- Fibers1
- Spawn1
- Meta-programming1
- Productivity1
- Elegant1
- Cross-platform1
Pros of Erlang
- Real time, distributed applications62
- Concurrency Support62
- Fault tolerance58
- Soft real-time36
- Open source32
- Message passing22
- Functional programming22
- Immutable data16
- Works as expected14
- Facebook chat uses it at backend6
- Practical5
- Knowledgeable community5
- Bullets included4
- WhatsApp uses it at backend1
Sign up to add or upvote prosMake informed product decisions
Cons of Crystal
- Small community13
- No windows support3
- No Oracle lib1
Cons of Erlang
- Languange is not popular demand1