# A Note About Zig Books for the Zig Community

**URL:** <https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738>\
**Category:** News\
**Tags:** blog-post\
**Created:** [June 16, 2023, 8:54am UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738 "2023-06-16T08:54:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristoff](https://ziggit.dev/user_avatar/ziggit.dev/kristoff/32/9_2.png) [@kristoff](https://ziggit.dev/u/kristoff)\
**Post date:** [June 16, 2023, 8:54am UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/1 "2023-06-16T08:54:25Z")

</div>

> **[A Note About Zig Books for the Zig Community](https://kristoff.it/blog/note-about-zig-books/)**
>
> Loris Cro's Blog

---

<div class="post-metadata">

**Author:** ![srazash](https://ziggit.dev/user_avatar/ziggit.dev/srazash/32/6663_2.png) [@srazash](https://ziggit.dev/u/srazash)\
**Post date:** [June 16, 2023, 9:44am UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/2 "2023-06-16T09:44:09Z")

</div>

Exciting stuff, I’ve been hoping to start hearing some word on books covering Zig, and now it sounds like a bunch may be coming!

I know you mentioned you would probably self-publish to Amazon Kindle, but would you be open to publishing multi-format? I think a good example of this is Thorsten Ball’s Writing an Interpreter/Compiler books ([https://interpreterbook.com](https://interpreterbook.com)).

But whatever you decide to do, best of luck with the endeavour, and I look forward to picking up a copy when the time comes!

---

<div class="post-metadata">

**Author:** ![kristoff](https://ziggit.dev/user_avatar/ziggit.dev/kristoff/32/9_2.png) [@kristoff](https://ziggit.dev/u/kristoff)\
**Post date:** [June 16, 2023, 9:52am UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/3 "2023-06-16T09:52:59Z")

</div>

Amazon Kindle Self Publishing is the service name (related but not the same as Amazon Kindle the product) and also deals with creating physical copies of the book. That said, I do plan to create a free website for it, for sure.

---

<div class="post-metadata">

**Author:** ![Durobot](https://ziggit.dev/user_avatar/ziggit.dev/durobot/32/447_2.png) [@Durobot](https://ziggit.dev/u/Durobot)\
**Post date:** [June 16, 2023, 11:46am UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/4 "2023-06-16T11:46:21Z")

</div>

I’d buy a physical copy, if not too expensive.  
Or / and a digital copy, although I don’t own a Kindle and I’m not sure Amazon book reader software runs on Linux.

---

<div class="post-metadata">

**Author:** ![AndrewCodeDev](https://ziggit.dev/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@AndrewCodeDev](https://ziggit.dev/u/AndrewCodeDev)\
**Post date:** [June 19, 2023, 8:48pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/5 "2023-06-19T20:48:19Z")

</div>

The main reason I personally wouldn’t buy a book on Zig is because the standard library is very easy to read. Compare that to any code published by GCC and I probably would prefer a book at that point.

I think a very valuable body of literature (even given what I have already said) would be about migrating existing code to zig. Especially legacy code because a lot of that stuff has not changed in decades. Writing about new language features is like shooting at a moving target… especially one that is open source. Just my two cents…

---

<div class="post-metadata">

**Author:** ![dude\_the\_builder](https://ziggit.dev/user_avatar/ziggit.dev/dude_the_builder/32/557_2.png) [@dude\_the\_builder](https://ziggit.dev/u/dude_the_builder)\
**Post date:** [June 19, 2023, 11:46pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/6 "2023-06-19T23:46:31Z")

</div>

As a mostly self-taught programmer with little to no C experience, I think it would really be helpful to have a book about Zig with an intro covering the C mindset. I’m not talking about a tutorial on C, but rather _that C way of thinking and solving problems_ that is still heavily used today by many developers and that Zig could really improve and augment. I think it would be good for programmers coming from dynamic / GC languages in which problems are solved in a very different (often carefree but inefficient) way.

---

<div class="post-metadata">

**Author:** ![Durobot](https://ziggit.dev/user_avatar/ziggit.dev/durobot/32/447_2.png) [@Durobot](https://ziggit.dev/u/Durobot)\
**Post date:** [June 23, 2023, 3:03pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/7 "2023-06-23T15:03:23Z")

</div>

> I think a very valuable body of literature (even given what I have already said) would be about migrating existing code to zig.

A chapter (or two) in this possible book could cover this topic. Right now I’m chewing my way through C + Zig compilation and linking, and though I’ve figured out the basics, I still have questions. For example, how do I pass arguments to the linker, a-la gcc’s -Wl.

> Writing about new language features is like shooting at a moving target…

Yes. Many parts of this hypothetical book would be obsolete within a year.

> especially one that is open source.

Open source is a positive trait, not a negative. Imagine Zig standard library, but you can’t read its source code 😬.

---

<div class="post-metadata">

**Author:** ![AndrewCodeDev](https://ziggit.dev/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@AndrewCodeDev](https://ziggit.dev/u/AndrewCodeDev)\
**Post date:** [June 23, 2023, 5:32pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/8 "2023-06-23T17:32:57Z")

</div>

Yup, I agree that open source is a good thing too. I made that point to mention that trying to track menial details about an open source language (given how fast they can rapidly iterate through versions) would be problematic for the longevity of a book. I much prefer a language being developed out in the open as opposed to in the dark. So we agree 😃 I could have been a bit more clear about what I meant by that statement.

---

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [June 23, 2023, 6:03pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/10 "2023-06-23T18:03:00Z")

</div>

> [@julngomz](#):
>
> Majority of books are written in Python or C

LOL 🙂

> [@julngomz](#):
>
> Possibly tailored to the younger programmers still in middle school or high school. Veteran programmers are hard to win over.

It’s not that true.  
I’m \>50 old fart (~25 yrs of active developement in C) and I clearly see Zig is the best follower of C. DIXI 🙂

---

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [June 23, 2023, 6:25pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/12 "2023-06-23T18:25:07Z")

</div>

> [@julngomz](#):
>
> you are clearly the more adventurous

No. You’ve over-estimated me.

> [@julngomz](#):
>
> C clearly is still a powerful language

Ofcrs, but, nvthlrs, Zig is a real possible C (and C++, heaven forbid) replacer, we’ll see.

---

<div class="post-metadata">

**Author:** ![julngomz](https://ziggit.dev/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@julngomz](https://ziggit.dev/u/julngomz)\
**Post date:** [June 23, 2023, 6:34pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/13 "2023-06-23T18:34:05Z")

</div>

Replace C? Highly doubt it. Alternative? Yes. A language like C will not die off like Perl. Probably like COBOL given that too much code has been written in it and it’s everywhere.

---

<div class="post-metadata">

**Author:** ![kristoff](https://ziggit.dev/user_avatar/ziggit.dev/kristoff/32/9_2.png) [@kristoff](https://ziggit.dev/u/kristoff)\
**Post date:** [June 23, 2023, 6:36pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/14 "2023-06-23T18:36:20Z")

</div>

> [@Durobot](#):
>
> A chapter (or two) in this possible book could cover this topic. Right now I’m chewing my way through C + Zig compilation and linking, and though I’ve figured out the basics, I still have questions. For example, how do I pass arguments to the linker, a-la gcc’s -Wl.

I think this is an extremely relevant topic to cover. It would make sense in a book alongside an introduction to the C compilation model. The main problem relative to this topic is that our own linker / build system interface is likely to change so writing too early about it will also require to update the corresponding section(s) sooner than later.

For the next-next release (0.12) we’re planning to start bundling handwritten guides alongside autodoc and those should include a guide for how to use the build system to deal with C/C++ projects. It won’t contain a full introduction to what’s a C compilation unit etc, but it will be an up-to-date guide to the API exposed by Zig.

* * *

For my book I’m not going to cover any of that though, my target audience is going to be Python/JS developers who want to get started with Zig but who have no idea how to do manual memory management, etc.

---

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [June 23, 2023, 6:56pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/15 "2023-06-23T18:56:44Z")

</div>

> [@julngomz](#):
>
> Replace C? Highly doubt it

I meant replacing it in brains of C-addicted programmers, not in the “industry”.  
C++ programmers also wiil be happy without all that STL/OOP/ADD-YOUR-SELF-THE-STUFF-YOU-HATE-IN-C++

---

<div class="post-metadata">

**Author:** ![julngomz](https://ziggit.dev/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@julngomz](https://ziggit.dev/u/julngomz)\
**Post date:** [June 23, 2023, 7:22pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/16 "2023-06-23T19:22:50Z")

</div>

Anyways, discussing this here is way off topic. To be or not to be. The only thing I know is that it’s the systems programming language I’m focusing on for the foreseeable future.

It is a great language for a CS&A book. I’ve been dabbling in implementing a basic relational database in Zig since the bread and butter of a database is a B-Tree, I might make that the content of the book I wanted during my studies.

---

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [June 23, 2023, 7:42pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/17 "2023-06-23T19:42:04Z")

</div>

> [@julngomz](#):
>
> Anyways, discussing this here is way off topic.

sure, dude ,-)

---

<div class="post-metadata">

**Author:** ![AndrewCodeDev](https://ziggit.dev/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@AndrewCodeDev](https://ziggit.dev/u/AndrewCodeDev)\
**Post date:** [June 23, 2023, 8:47pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/18 "2023-06-23T20:47:57Z")

</div>

Another thing I would like to mention here is the books written by Jason Turner. First, he has a very short book (about 100 pages) of practical tips that answer common problems. The book now has extended content in the form of a github repo ([GitHub - cpp-best-practices/cppbestpractices: Collaborative Collection of C++ Best Practices. This online resource is part of Jason Turner's collection of C++ Best Practices resources. See README.md for more information.](https://github.com/cpp-best-practices/cppbestpractices)), but I still bought the pdf when it first came out.

I’m recommending this book as a good example of digestible and useful content - I read the whole thing in two sittings and walked away a few great tips.

---

<div class="post-metadata">

**Author:** ![Durobot](https://ziggit.dev/user_avatar/ziggit.dev/durobot/32/447_2.png) [@Durobot](https://ziggit.dev/u/Durobot)\
**Post date:** [June 25, 2023, 8:13pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/19 "2023-06-25T20:13:14Z")

</div>

> [@kristoff](#):
>
> For the next-next release (0.12) we’re planning to start bundling handwritten guides alongside autodoc and those should include a guide for how to use the build system to deal with C/C++ projects. It won’t contain a full introduction to what’s a C compilation unit etc, but it will be an up-to-date guide to the API exposed by Zig.

Makes sense, absolutely.

> [@kristoff](#):
>
> For my book I’m not going to cover any of that though, my target audience is going to be Python/JS developers who want to get started with Zig but who have no idea how to do manual memory management, etc.

Wouldn’t any developer who learns Zig be interested in Zig build system, regardless of their background?

---

<div class="post-metadata">

**Author:** ![srazash](https://ziggit.dev/user_avatar/ziggit.dev/srazash/32/6663_2.png) [@srazash](https://ziggit.dev/u/srazash)\
**Post date:** [June 26, 2023, 9:51am UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/20 "2023-06-26T09:51:50Z")

</div>

> [@kristoff](#):
>
> For my book I’m not going to cover any of that though, my target audience is going to be Python/JS developers who want to get started with Zig but who have no idea how to do manual memory management, etc.

I’m definitely in that market, a lot of what I do (including professionally) is .NET/C#/JavaScript so while I’m comfortable working in C-like languages the majority of my experience is in garbage collected, heavily abstracted languages with huge libraries that do a lot of the heavy lifting for me.

In fact, one of the main attractions to Zig for me was that I lose a lot of that but in doing so I’ll be able to build incredibly efficient code and better understand how I’m interacting with the OS/CPU/RAM when I do.

I’m genuinely excited to see what people are going to be writing!

---

<div class="post-metadata">

**Author:** ![edyu](https://ziggit.dev/user_avatar/ziggit.dev/edyu/32/576_2.png) [@edyu](https://ziggit.dev/u/edyu)\
**Post date:** [June 26, 2023, 9:31pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/21 "2023-06-26T21:31:53Z")

</div>

Can I make a suggestion to not have any books out before 0.11? There are so many changes and nothing beats the frustration of any beginner learning from a book from something that breaks or changes significantly. I know it probably won’t be stable until 1.0 but at least wait until 0.11 come out for the love of “insert whoever you worship”. 🙂

---

<div class="post-metadata">

**Author:** ![edyu](https://ziggit.dev/user_avatar/ziggit.dev/edyu/32/576_2.png) [@edyu](https://ziggit.dev/u/edyu)\
**Post date:** [June 26, 2023, 9:34pm UTC](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738/22 "2023-06-26T21:34:14Z")

</div>

I know it’s weird to recommend another book when we are talking about Zig but I HIGHLY recommend reading the “C Programming Language” (the original) book and do the exercises in that book.

Knowing C is a great way to learn many of the concepts and the motivation behind Zig.

> [@srazash](#):
>
> I’m definitely in that market, a lot of what I do (including professionally) is .NET/C#/JavaScript so while I’m comfortable working in C-like languages the majority of my experience is in garbage collected, heavily abstracted languages with huge libraries that do a lot of the heavy lifting for me.
> 
> In fact, one of the main attractions to Zig for me was that I lose a lot of that but in doing so I’ll be able to build incredibly efficient code and better understand how I’m interacting with the OS/CPU/RAM when I do.
> 
> I’m genuinely excited to see what people are going to be writing!

[Next page](https://ziggit.dev/t/a-note-about-zig-books-for-the-zig-community/738.md?page=2)
