nim-lang.org

Paradox, to programming in Nim v2.0 released
@Paradox@lemdro.id avatar

Nim is one of my favorite little languages. It’s got a lot going for it, and it’s a joy to write. Output binaries are tiny, even compared to zig and pure c, and especially small compared to rust and go.

Only real problems with Nim are that cross compiling is difficult (or should I say isn’t solved like with cross on rust), documentation is hit and miss, and the library and community support is very small. But everything I’ve built in it still works extremely well, and is very easy to update

insomniac_lemon, (edited ) to programming in Nim v2.0 released
@insomniac_lemon@kbin.social avatar

Nice, haven't seen much Nim on the Fediverse. EDIT: There is https://programming.dev/c/nim but that doesn't seem to easily pop up in search (or at all?) and I am not seeing all of the posts via Kbin.

Still a lurker with it (done a few things, not much), really want some good graphical options (particularly ones that have an actual editor too, for ease/speed with simple stuff starting out) for projects.

Was somewhat interested in trying Raylib bindings, though waiting for Nim 2.0 was one reason I didn't try Naylib at that time.

(I'm more interested in polygons especially for 2D, so that makes things a bit more difficult. Godot 4 would be really nice but GDextension kinda threw a wrench into that)

For GUI-only (not games etc), I did try and like Owlkettle. Some things bothered me or lowered viability for what I wanted (and I may prefer Qt), but the bigger issue is that I don't really have many GUI-only ideas. I made a simple adventure book AKA CYOA reader (read a file line-by-line, story and buttons/descriptions/page target file defined), but didn't actually plan on writing one.

ISometimesAdmin, to programming in Nim v2.0 released
@ISometimesAdmin@the.coolest.zone avatar

Oh damn, that's going to be super interesting.

throws_lemy, to programming in Nim v2.0 released
@throws_lemy@lemmy.nz avatar

Yay I’ve been waiting for this release

tatterdemalion, to programming in [Discussion] Nim Programming language - thoughts?
@tatterdemalion@programming.dev avatar

I prefer Rust but I am jealous of comptime.

dvektor, to programming in [Discussion] Nim Programming language - thoughts?

I am curious about this, was also checking out V, which seems to be similar as it compiles to C, but seems to be closer to Go syntax wise. I think it would be interesting for situations where I want to just do something quickly and not have to think about or have mental blocks in the way because of some complexity in a language. If it was close enough to python where you could just sit down and bang it out, and it comes with all the conveniences of the python standard library, it might be useful.

Gnubyte,

Maybe I’ll make a post about my experience with it after I ship out my startup to prod/app-stores. I was going to try to write a replacement to enms.io but since its already open source I can’t really justify the 2-3 weeks to hack something out,while also adding Nim to the problem set.

I have to say though, a reads-like python but compiles like c/rust/etc. has really garnered my interest. They had an excerpt about decentralized package management with nimble and that really made me raise my eyebrows.

DumbAceDragon, to programming in [Discussion] Nim Programming language - thoughts?
@DumbAceDragon@sh.itjust.works avatar

In my experience, Nim is a language that you either fall in love with immediately or just try for a bit before going back to Rust or Python. My experience is the former, I absolutely love this language and I feel most people are missing out on it.

Honestly I don’t really have anything to say about it other than it’s just a lot of fun to use. It’s got a great macro system, and the compile-time evaluation is the best, imo even better than Zig. It’s also got a large and comprehensive standard library, so for smaller projects you don’t really even need to use Nimble.

But other than that, my love for this language is mostly just “I like how you write stuff and how that stuff works.” It’s a great language if you need to develop fast like Python, but run fast like C. It’s a language you can spend years learning the intricacies of, but pick up in a day. Nim was where a lot of programming concepts just clicked for me. It’s more than just a compiled Python, and I recommend playing around with it for a bit.

Gnubyte,

Thank you so much for posting. It’s really nice to hear from someone with experience first hand.

balder1993,

it’s a great language if you need to develop fast like Python

I think what’s more relevant question here is what about the ecosystem? The language itself can be good, but can you create some category of software in it that is better/easier than alternatives? I suppose it would take a long time for it to have a framework as complete or well documented like Python’s Django or PHP’s Laravel etc.

When blogs or people in forums promote some less used language they often focus on some specific good thing and leave out the inconveniences and the big picture, so these are questions I’d ask before adopting a different programming language.

drew_belloc, to programming in [Discussion] Nim Programming language - thoughts?
@drew_belloc@programming.dev avatar

I’ve been using a little, learned at the start of the month and really enjoyed, but since it don’t have many user sometimes is hard to find how to do something, it was easy to create a webserver but i really wanna to create a qt application with it (since i use kde plasma), but i can’t find a proper way of doing it

Gnubyte,

Maybe try some of these - I found this awesome list in my research github.com/VPashkov/awesome-nim#gui

drew_belloc,
@drew_belloc@programming.dev avatar

Oh thank you, this might work and i will also bookmark the list too

TheCee, to programming in [Discussion] Nim Programming language - thoughts?
@TheCee@programming.dev avatar

I’d prefer if the logo could be spinned…

noeontheend, to programming in [Discussion] Nim Programming language - thoughts?

Nim is one of my favorite languages, and has been one of my primary languages in rotation for projects for the last five or so years. I’ve written servers (and web frontends, CLI tools, quick scripts, etc.) with it and am very happy with the results.

It’s hard for me to put into words why I like it so much, but I think it might actually be because it’s such a mishmash of paradigms. If I’m in a functional mood, I can use lots of ideas from functional programming. If I feel like using OOP everywhere, I can do that too. And if I want to mix both together, it’s no problem! Nim kind of feels like the Wild West, and while that’s something I’d dislike in most languages, for whatever reason it works when writing in Nim.

FriendOfFalcons, to programming in [Discussion] Nim Programming language - thoughts?

I like Nim and many concepts of it with the big point of discussion being that function names get normalized (helloWorld === hello_world).

But I feel like that Nim is a language without purpose. It's all nice and cool on paper, but it has no use case where I think "I have to do it in Nim".

Go is known for making small, fast startup web apps, Python for making small one time tasks or Data work, Rust low level programming if you like functional programming, PHP if you want yo setup a website as fast as possible.

But Nim doesn't have this, it doesn't have a library that's better than in all other languages. It's nice but what for?

float,

I have to disagree with your “when use what” list. Python has production ready web backend frameworks, Rust is perfectly fine for complex and high-level software, and PHP is mostly obsolete. That’s my humble opinion though. I looked into Nim and like many of the concepts. It’s quite complex and I prefer Rust most of the time when Nim would be an option. I’d argue it’s some kind of “jack of all trades”. A bit like python but compiled, ref-counted, and probably a lot faster. It’s lacking the huge community python has though.

FriendOfFalcons,

It’s lacking the huge community python has though.

And where did Rust, Python etc get their huge community from in the first place? From being jack of all trades? No, because they were the best fit for their use case. After they established themselves there, they became widely good.

float,

tl;dr Language evolution and future outlook are big factors besides the existing language features themselves.

I guess Rust has attracted many C++ devs because C++ is painful and there were no other/better options. Rust comes with a build/dependency management system and memory safety guarantees on top of the type safety. Even though C++ templates are still unmatched, I prefer Rust 95% of the time. C++ is evolving very slow and it’s extremely hard to participate. Rust will win that race eventually.

Python has been around since 1991(!) and it took a looong time to build the community. It was a niche like Nim is now for many years.

I’ll definitely keep an eye on Nim because it has the potential to become quite popular.

Again, that’s all just my opinion.

sotolf, to programming in [Discussion] Nim Programming language - thoughts?
@sotolf@programming.dev avatar

I’ve been using it for 2 years or so, mostly for hobby programming, and I really love it, it’s been great for the kinds of things that I do at least :) Feels great and logical to write, and it’more or less works the same way my mind does, the type system is really good think something like Ada, and it can be both a pretty low level, and high level langauge. YMMV, but I really like it personally.

janAkali, to programming in [Discussion] Nim Programming language - thoughts?
@janAkali@lemmy.one avatar

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.

thingsiplay,
@thingsiplay@kbin.social avatar

@janAkali I wonder how it compares to compiling Python code with https://github.com/Nuitka/Nuitka , which is a real compiler using C and not just a bundler. To me, from programming language perspective Nim looks like an improvement for the developer. Here is a nice overview: https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers , but this does not take Nuitka into account.

janAkali,
@janAkali@lemmy.one avatar

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.

ono, to programming in [Discussion] Nim Programming language - thoughts?

No experience yet, but It’s the next language I want to try.

mvirts, to programming in [Discussion] Nim Programming language - thoughts?

Cool logo

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines