Anyone have experience using Nim? The TLDR that I am seeing is compiled portable python/js replacement in a way.

I was thinking about trying to write a webserver with it and was wondering if anyone had any previous experience with it.

  • janAkali@lemmy.one
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    1 year ago

    Nim is cool. Easy to read python-like syntax, strongly typed, compiles (not transpiles) to C, so you can use common C tools like valgrind, gdb, musl, etc.
    Small footprint, devel version supports deterministic gc (arc/orc).
    One of the greatest interops with C, C++ or JS (C and JS are not mixable, obviously)

    I’ve only used Nim in hobby/toy projects, but it was very pleasant experience.

      • janAkali@lemmy.one
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        First time hearing about Nuitka and it sounds promising for Python devs. But from a quick glance it is merely an AOT compiled Python.
        For me, Nim has big advantage over Python: types that are statically checked at compile time.
        Types make you reason about your code more. Good LSP uses types to suggest you code without any AI and shows you errors before you have to run your script/programm.