3 ms·
Looks like you know a bit of Nim. Apart from ecosystem and IDE what are the some of the disadvantages of Nim compared to Go?
by mrath 5y ago
Looks like you know a bit of Nim. Apart from ecosystem and IDE what are the some of the disadvantages of Nim compared to Go?
- auxym 5y agoI have not done a lot of Go, but I'm pretty sure Nim's concurrency story isn't up there with go, at least not yet. Nim has other advantages, including great Interop with C or C++ as it compiles to these languages and allows low level, unsafe features like raw pointers when needed.
- sp33der89 5y ago* Goroutines are probably a lot more easier to use. Work is being done to make Nim even better in that area: https://github.com/nim-works/cps https://github.com/nim-works/cps but don't expect it soonish. * I feel like Go has less 'edge cases', but the Nim compiler is steadily getting more stable, especially consider it's not backed up by a major company! * Metaprogramming is really powerful, but not beginner friendly. The documentation says use macros when necessary, but personally I don't think that really happens in practice. The advantages by far outweigh the disadvantages, especially if you are looking for a clean Go alternative(except maaaaaaybeee web application). EDIT: my own wishlist, but they aren't relevant compared to Go: * Better sum types * Builtin pattern matching