News for hackers. Stuff that matters.
Re:Crystal: Fast as C, Slick as Ruby by smallbag on Thursday August 04, 2016 @01:04PM (#12226953)
Can someone comments the differences between Nim (old mimrod) and Crystal? Which one do you prefer and why. Thanks.
Re:Crystal: Fast as C, Slick as Ruby by costajob on Friday August 05, 2016 @03:59AM (#12230705)
Apart 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.

Re:Crystal: Fast as C, Slick as Ruby by smallbag on Thursday August 04, 2016 @01:16PM (#12227033)
Googling: http://forum.nim-lang.org/t/1246

Python syntax with macros => Nim Ruby syntax => Crystal