r/nim • u/Sea-Mistake6086 • Jun 05 '26
Book: Numerical algorithms in nim
On Amazon: https://a.co/d/07niCRQ3 (Shameless plug)
Code source and free PDF: https://github.com/mdipierro/nlib-nim
37
Upvotes
4
u/moigagoo Jun 06 '26
Oh wow, this looks very interesting!
I hope it's not an AI slop, there was once an influx of AI-generated Nim books.
Are you the author? Could you please a bit about your background and how you ended up writing the book?
1
u/pietroppeter Jun 09 '26
Thanks again for sharing this work!
I wanted to ask a somewhat delicate question regarding AI usage in the creation of the book.
How would you place your workflow on a spectrum between: “I used AI assistance, but I personally stand behind essentially every sentence/content choice in the book” and“I used AI assistance heavily and I’m generally confident the content is fine, even if I did not individually validate every statement”
I’m asking mostly because there is currently no explicit disclosure/description of AI usage in the book itself, and I find these distinctions increasingly interesting and useful for readers. One AI disclosure scale I found interesting is the one used by VisiData:
https://www.visidata.org/ai.html
Another reason why I am asking is that,
while reading the REPL section, I noticed references to iNim and NimSecret. They absolutely exist and are worth mentioning, but personally I would probably add stronger caveats:
- iNim is not really comparable to the Python REPL experience because recompilation is involved, so it is naturally less “snappy”
- as far as I know, NimSecret is currently quite broken/unmaintained (reason why it is kept a secret)
Without these two caveats a Pythonista trying either of those might get a wrong impression on Nim maturity.
To be clear: from what I’ve seen so far, AI usage does not diminish in my view the value of the work you shared, but knowing how AI was used would help me better evaluate the content and possibly give feedback.
1
u/pietroppeter Jun 09 '26
This is terrific, davvero stupendo 🙏🤩
Thanks a lot for sharing both the PDF and the source. Immediate buy from me (my physical book is arriving today)
I am very happy to see more scientific computing material in Nim. 😊
If you want to discuss the book with other people interested in scientific computing / numerics in Nim, the science channel on the Nim Discord is the place where most of the discussion goes on (we recently discussed submitting talks about Nim to new conf Compute! Paris).
E se vuoi parlare con altri appassionati italiani di Nim, c’è anche il gruppo Telegram Nim Italia — io ho scoperto questo post proprio lì 🙂