Hi everyone! I received lots of good feedback about the book and it warms my heart! thank you everyone for giving it a shot! That's the main reason I want to keep it up to date, completely free of charge.
It has been almost a year and a half since the last update in Nim Days. I know there're lots of changes happening/happened in the language. I'm decided I want to get into another adventure with Nim again (what is ORC? xD) with all of the latest greatest changes (or maybe I should wait for Nim 2?) and plan a full rewrite if needed for the book. I hope it's still useful as it was written in Nim 1.0 times -Not sure because there was no CI set up to track if anything is breaking-
Keep up the amazing work everyone!
Hi, welcome back!
Please don't wait for Nim 2, Nim 1.6 with a custom.cfg is close to what Nim 2 will be. Hmm, this gives me an idea...
love nim days! maybe it could use nimibook^ instead of mdbook. ;)
https://pietroppeter.github.io/nimibook/
It would allow to run CI that always run the nim code inside and see when it breaks.
^still very young and many things could, should and will be improved...
Please don't wait for Nim 2, Nim 1.6 with a custom.cfg is close to what Nim 2 will be. Hmm, this gives me an idea...
This would make it incompatible with a lot of Nim code that's "out there" and working - above all, it's a path that leads to compile failures and disappointments, because you're not doing what the "defaults" of the compiler, as downloaded from the internet, is doing.
Rather, in a book/resource, I'd recommend writing it with the current Nim 1.6 release in mind, ensuring all code works out-of-the-box and making sure the zero-to-hero experience doesn't involve waffling with preview flags or other weird things that are being considered and may still change - Nim is a great and stable language already, even if there are exciting things on the horizon.
On top of that, an "upcoming 2.0 features, and how to enable them already" could be an idea - ie the whole idea behind 2.0 is that some of the features involve breaking existing code or making it unviable, so you can't have the cake and eat it, really.
It has still a few edges, but we will iron them out… note that this is a “theme” based on nimib library: https://github.com/pietroppeter/nimib
(Other theme will come and it will get easier to write themes, @hugogranstorm is now working on a reveal slides theme for example: https://github.com/HugoGranstrom/nimib-reveal )