Nimony: A New Compiler for Nim

(nimony.org)

64 points | by Fervicus a day ago ago

22 comments

  • stakhanov 22 minutes ago

    When I was doing the rounds roughly 10 years ago, trying to find a new programming language to learn, my money for "next big thing" landed on nim. I did some personal projects and absolutely loved it but, unfortunately, opportunities to work "on the clock" in nim never materialised and then rust started eating the world.

    Thanks, Andreas Rumpf, for sticking with it for all these years: This seems like a great opportunity for me to get back into nim.

  • jphoward 2 hours ago

    I love Nim but my only problem with it previously was support for dictionaries/objects felt really weird? There was some sort of JSON structure as I recall, but it didn't seem anywhere near as easy to use as the analogous structures in Python/JS. Am I misremembering? Has this been improved?

    • ZoomZoomZoom an hour ago

      I suspect you're talking about heterogenous containers which are antithetical to a strongly typed language but nevertheless are supported via std/json's JsonNode dynamic data.

      In Nim regular hash maps (called tables here) have pretty regular accessors via `[]` `[]=` overloads (`foo["frob"]=42`), plus additional routines such as `.get(otherwise)`.

      https://nim-lang.github.io/Nim/tables.html

      Don't know why are you conflating objects in your question.

      • jphoward an hour ago

        I'm 'conflating' them because they're called objects in javascript, so people unfamiliar with Python know what I mean. Ok thanks.

  • polotics 3 hours ago

    This is great! Congrats to the Nim team for keeping the pedal to the metal!

    Sum-types, borrow-checking... Nim 3 is beautiful.

  • brainwipe 42 minutes ago

    Hopeful for the new compiler but wished they'd called it Nimoy!

  • aktenlage 2 hours ago

    Does anyone already have experience, how the developer experience is? Error messages, debugging and so on?

  • pjmlp 3 hours ago

    Looking interesting, I like the improvements over what Nim used to be.

    The big question is naturally the adoption curve, given the breaking changes.

    • DeathArrow 2 hours ago

      It's not a big issue since Nim didn't have a large following. If anything, it might help Nim to take off if it's good enough and user friendly enough.

  • jimbob45 2 hours ago

    Nim still has the GC, right? It always seemed like a slightly better Golang, much worse Dlang in that respect.

  • DeathArrow 2 hours ago

    Cool, now we can fight the borrow checker in Nim, too.

  • lobf 3 hours ago

    Nim is cool, but holy moly this web design is disgusting. Absolute one-shot prompting.

    • heavensteeth 2 hours ago

         <button class="nav-btn" onclick="navigateToPage('index.html')">Home</button>
      
         ... 
      
         // Navigation functionality
         function navigateToPage(filename) {
             window.location.href = filename;
         }
      
      What shockingly poor code. Just disgraceful.

      This is bad for accessibility, bad for compatibility, and serves no purpose at all.

      • arcanemachiner an hour ago

        Ha, that is bad. This is what happens when you use the cheap LLMs. (At least, I hope Opus 5.5 isn't pulling stunts that are this bad... It's not that bad when I look at my code.)

    • badsectoracula 2 hours ago

      Everyone has a different taste.

      Personally i like the site's design, it looks like from late 2000s / early 2010s with its gradient rounded buttons, 1px offsets and chiseled text - i even clicked randomly on buttons because of how "buttony" they look :-P.

      IME this isn't what LLMs make by default, so if nothing else, i doubt it was a single prompt and most likely it was adjusted to fit the author's taste (that it sounds like doesn't align with yours).

    • konart 2 hours ago

      idk, looks like a classic design from 2010. See QIP or AIMP Classic.

    • asibahi 3 hours ago

      Not everything you dont like is LLM-made.

      • xx_ns 42 minutes ago
      • brianush1 3 hours ago

        it's definitely LLM-made (if you look at the CSS, there's LLM-written comments) but it doesn't look like a one-shot prompt

        • pjmlp 3 hours ago

          Nowadays the brown background Claude design is everywhere, at least this one is somehow different.

          Just like when HTML templates started to be a business all websites looked the same.