logoalt Hacker News

Nimony: A New Compiler for Nim

157 points • by Fervicus • yesterday at 1:05 AM • 84 comments • view on HN

Comments

stakhanov • today at 10:28 AM

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.

Symmetry • today at 2:52 PM

> Nimony is case sensitive like most other modern programming languages. The reason for this is implementation simplicity. This might also be changed in the future.

I've never been too annoyed by Nim's approach but I think this removes a complaint many people have.

➕ show 2 replies
afavour • today at 2:00 PM

I’m curious if this closes the door on Nim’s capability to output C code which you then compile yourself. I first discovered Nim when I was looking for something that could work with Apple’s requirements to embed bitcode in iOS apps, it meant you had to use their specific version of LLVM and that ruled out a lot of languages. It always seemed like a really unique feature (though IIRC Haxe has something similar).

Apple has long since removed that requirement so it doesn’t really matter anyway and I wouldn’t blame the Nim folks if it’s gone, these seem like a great set of improvements.

➕ show 3 replies
girvo • today at 10:57 AM

It’s super exciting. It’s basically adding all the features I wished Nim had, and I’ve been using Nim in anger since the v0.10 days!

deepsquirrelnet • today at 2:30 PM

I did my first "real" nim project this year. I'd been tinkering with it here and there, but found a chance to use it. I'm coming from mostly python experience and found it to be a really nice experience.

eterps • today at 12:04 PM

Nice, it looks like it supports option and result types as well:

- https://nimony.org/stdlib/std/result.html

- https://nimony.org/stdlib/std/options.html

polotics • today at 7:34 AM

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

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

➕ show 1 reply
pietroppeter • today at 11:45 AM

I think Nim is a great fit for the AI era. let me explain

Always appreciated how Nim gives you a low cognitive load: it is easy to reason about, does not get in the way of doing stuff, you focus on what you need to do it and rarely on how you do it (specifics of the language).

I think this is a great advantage in this era of automatic/AI assisted programming. The fact that the language is very readable also helps for the moments when you need/want to read the code.

Nimony btw is a very cool way to evolve the mainline compiler and looking forward to use this in main Nim (but it is also something nice to experiment with)

➕ show 1 reply
brainwipe • today at 10:08 AM

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

➕ show 1 reply
jphoward • today at 9:19 AM

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?

➕ show 2 replies
kitd • today at 5:26 PM

Any recommendations on the best IDE for Nim 3?

netbioserror • today at 2:06 PM

Using Nim in production, AMA.

➕ show 2 replies
sergiotapia • today at 5:07 PM

I've always had a soft spot for Nim, never had the chance to use it professionally. I personally can't wait to let it rip with AI. I think this is going to be the perfect language to use with AI. Fast as all holy hell, ergonomic, a language lead who cares deeply and does not quit. Major props to Araq for sticking it through all these years, I hope it's Nim's time to shine finally.

➕ show 1 reply
pjmlp • today at 8:12 AM

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

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

➕ show 1 reply
aktenlage • today at 9:15 AM

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

anthk • today at 1:32 PM

No i386? We do exist.

➕ show 1 reply
esafak • today at 2:24 PM

When is 1.0 slated to be released?

jimbob45 • today at 9:02 AM

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

➕ show 2 replies
DeathArrow • today at 8:49 AM

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

➕ show 1 reply
lobf • today at 7:52 AM

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

➕ show 8 replies
lcnmrn • today at 2:32 PM

This feels archaic to me after seeing what is possible with Stricta. You get full Python syntax as low level as possible, safe, strict, no ARC/GC, memory access. https://github.com/lucianmarin/stricta

➕ show 3 replies