3 ms·
How does it compare to Nim?
by neolog 6y ago
How does it compare to Nim?
- machineko 6y agoNim is more mature and a with a lot bigger community with diffrent focus. Crystal focus is pure web trying to be Ruby and Nim is more like python.
- shirleyquirk 6y agosimilar clarity and elegance of expression (crystal is a bit more beautiful i think) both use significant whitespace nim has better cross-platform and embedded support, as crystal targets llvm while nim targets c/c++/js nim has more low-level support with the tradeoff of supporting dangerous things like raw pointers crystal has better async imho
- rishav_sharan 6y agoSyntax wise: Nim is to python what Crystal is to Ruby capability wise both are incredibly powerful genral purpose languages For system language use, Nim is a better choice as you can use it with its Arc GC or no GC at all. Perf wise, Crystal seems to be marginably faster in most benchmarks. Though at that level the difference isn't much. crossplat wise, Crystal has no windows support while Nim has. Tooling wise; crystal IDE tools are pretty far behind that of Nim. Personally I like Crystal a lot due to its type system and syntax but you can't go wrong with either language.
- sergiotapia 6y agoI've used both for medium sized projects. Nim was a better fit for me because: - More mature tools and 'beaten paths'. - much faster compilation times - much better cross platform support - more people I can reach out to for help, amazing Discord server - simple concurrency for my needs - tiny binaries - low memory usage - simple to understand import system. (i hated ruby's import system)