1. 18

  2. 3

    I’m really curious about the background of Nim users. I imagine its more folks coming from a Python/Ruby/Smalltalk background as compared to a C/C++ background but I have no actual basis for that assumption.

    If you are an active Nim user, I’d love to know your background and why Nim appeals to you.

    1. 2

      I’m a python user; slowly trying to replace python scripts with nim. Nim’s standard library is pretty decent. Unless i’m doing something highly specialized (eg: I’ve not tried to do any AWS automation in Nim), nim is often quick enough to write with the same amount of effort I would have spent writing Python.

      1. 5

        I have 3 primary questions:

        • why are you trying to replace Python with Nim?
        • what it is about Python that has you wanting to replace it?
        • what is it about Nim that lead you to trying it as your replacement?
        1. 4
          • over the last few years, I’ve come to see the value in a compiler and statically type checked language. Especially one like nim, where type checker is your friend and not onerous.
          • I’m tired of tracking dependencies in a virtualenv etc., having a single binary is soo much nicer.
          • There is a huge amount of head room to grow as a programmer (eg: I’ve barely scratched the surface of what I can do with macros, templates and other “higher” language features).
      2. 1

        FWIW, I’m a polyglot programmer and I really like Nim but the only thing I’ve used it for is the Advent of Code puzzle solutions last December. It’s a lot of fun to program with and I like that it compiles to a single binary with no deps like Go.

      3. 2

        TLSF is a great addition to the runtime. I’ve had a few clients who have problems with memory fragmentation leading to crashes in their Python services. Looking forward to playing with nim more than I have been.

        1. 1

          Just learned about Nim. Great work team!