4 ms·
What do you like about Nim? I've started playing with it and it's quite comfy but I don't know much about it's capabilities yet.
by potta_coffee 3y ago
What do you like about Nim? I've started playing with it and it's quite comfy but I don't know much about it's capabilities yet.
- cb321 3y agoNim is terse yet general and can be made even more so with effort. E.g., You can gin up a little framework that is even more terse than awk yet statically typed and trivially convertible to run much faster like https://github.com/c-blake/bu/blob/main/doc/rp.md https://github.com/c-blake/bu/blob/main/doc/rp.md You can statically introspect code to then generate related/translated ASTs to create nearly frictionless helper facilities like https://github.com/c-blake/cligen https://github.com/c-blake/cligen . You can do all of this without any real run-time speed sacrifices, depending upon the level of effort you put in / your expertise. Since it generates C/C++ or Javascript you get all the abilities of backend compilers almost out of the box, like profile-guided-optimization or for JS JIT compilation. EDIT: There really is much more, as with any system - I was just trying to give a flavor of what appeals to me.
- netbioserror 3y agoI refer you to my post on the Nim 2.0 release: https://news.ycombinator.com/item?id=36956144 https://news.ycombinator.com/item?id=36956144