4 ms·
If you enjoy Nim, I encourage you to try Cython, which is more mature and enables much more practical applicability in most job settings. It’s virtually never w
by mlthoughts2018 6y ago
If you enjoy Nim, I encourage you to try Cython, which is more mature and enables much more practical applicability in most job settings. It’s virtually never worthwhile for an employer to switch to supporting Nim if they already use Python and can just use Cython for targeted use of static typing in the small set of cases where it’s useful.
- satvikpendem 6y agoI've tried it but I like the other features in Nim as well such as algebraic data types. As well, Cython isn't usually available in online coding environments while Nim is, at least sometimes.
- zinclozenge 6y agoAre algebraic data types supported? Can you do compiler checked exhaustive pattern matching on a sum type?
- beagle3 6y agoYes, they are supported. There are a few libraries for that, e.g. Patty, which IIRC supports exhaustive pattern matching. Nim macros are as-powerful-as-Lisp-sans-reader-macros, and usually easier to write and use. A lot of things that require language revisions in most languages (e.g. async/await and pattern matching in Python/C#/JavaScript) are user-level constructs in Nim.
- mlthoughts2018 6y agoI just meant despite the nice features, Nim is deeply impractical to use in situations with business problems, because the cost to adopt a new ecosystem without mature libraries is too high. In other words I meant: if you like Nim’s features but find you need to do more than toy coding, checkout Cython. While your mere preferences may favor Nim, Cython can be used to solve problems without requiring companies to make a seismic change.