3 ms·
Can someone comments the differences between Nim (old mimrod) and Crystal? Which one do you prefer and why. Thanks.
by smallbag 10y ago
Can someone comments the differences between Nim (old mimrod) and Crystal? Which one do you prefer and why. Thanks.
- smallbag 10y agoGoogling: http://forum.nim-lang.org/t/1246 http://forum.nim-lang.org/t/1246 Python syntax with macros => Nim Ruby syntax => Crystal
- costajob 10y agoApart for different syntax: Plus of NIM: * powerful compiler can produce C, C++, JS, ObjectiveC code * GC can be completely removed to adapt to the program * support parallelism via threading Plus of Crystal: * use of types union permit to mix types in almost every data structure, let you pondering if the langugae is really strong typed * so similar to Ruby that porting a 100-lines library (with no fancy-metaprogramming) to Crystal is often a matter of few hours * use of green threads suits very nicely with HTTP request/response cycle (like GO and Erlang), where using threads/processes is more memory/CPU consuming What Crystal still lacks is parallelism, but core team are working on that. Said that both are modern, fast, elegant languages, with a good standard library and a vibrant community.