|
|
|
|
|
by inv2004
1177 days ago
|
|
Some background: I spent years in C++, then many years in Java, Ocaml, Python, Rust and even APL - everything is for production. My last pet-project was on Rust also, and it took about 2+ years and I felt pretty depressed about IT at all. One of the part of the project (feed collector) I tried to write in many languages to compare. One day I downloaded Nim - did not expect anything at all - just wanted to try async and ... in about 2 hours (on new language for me) I had the same functionality I spent 2 weeks in Rust. More interesting - it was about 30% faster than Rust solution. After it, I can just show the picture:
https://user-images.githubusercontent.com/4949069/229308266-... I rewrote full (2 years+) project in Nim in 3 weeks. I understand that I knew good architecture for the second implementation, but 3 weeks is good anyway. Did a lot of pet-projects, I use it for small prod tools or research if it is possible. For example I wanted to extend atop functionality, and I wrote my own ttop: https://github.com/inv2004/ttop For new Nim's user I would describe it like python with speed of C-lang. But later you will find that it is not another python, it is its own language with a lot of powerful things like templates, macros, very good interop with C (that is why libraries are not a problem most of the time) and etc. |
|