News for hackers. Stuff that matters.
Re:Nim v2.0 Released by Zamiel_Snawley on Tuesday August 01, 2023 @01:00PM (#36958790)
You have convinced me to look in to Nim! Can you speak to the build system(s)? CMake is the bane of my existence.
Re:Nim v2.0 Released by PMunch on Tuesday August 01, 2023 @01:20PM (#36959138)
Another Nim user here. Typically you just build the project by `nim c <myProject.nim>`, since Nim has such a strong macro system a lot of typical build stuff is just done with macros. Of course there's also the default Nimble package manager which allows you to list dependencies and tasks using Nim itself. This means that if you know how to write Nim managing the build system is a breeze.
Re:Nim v2.0 Released by elcritch on Tuesday August 01, 2023 @02:57PM (#36960748)
Ugh, I just got done spending months fighting CMake before moving back to a position using Nim!

You can also compile C projects with Nim like bearssl [1]. Nim takes care to compile the C files and recompile them when config flags change. It's actually really nice.

1: https://github.com/status-im/nim-bearssl/blob/99fcb3405c55b2...

Re:Nim v2.0 Released by netbioserror on Tuesday August 01, 2023 @04:18PM (#36962120)
Gotta be honest here, I use a pretty simple Makefile. I don't have anyone else working on this program, so I can afford simplicity.
Re:Nim v2.0 Released by inv2004 on Tuesday August 01, 2023 @06:05PM (#36963814)
I did a lot of nim small projects. All of them are on nimble build system: https://github.com/inv2004