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.

3 points

I prefer Rust but I am jealous of comptime.

permalink
report
reply
2 points

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.

permalink
report
reply
1 point

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.

permalink
report
parent
reply
14 points

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.

permalink
report
reply
2 points

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.

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
4 points

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

permalink
report
reply
4 points

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

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
3 points

I’d prefer if the logo could be spinned…

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments