Understanding comptime

It makes sense that the data would be in the ro section at runtime. I suppose it can’t really live anywhere else.

I am still a little unsure how final_len_indexes gets into the ro section. Is it because it is declared const or the & operator is used in the assignment?

I found this post, which was sorta the same question as mine, Comptime Garbage Collection - #3 by mlugg which helped understand this stuff better.

I also found an article for using comptime for string interning: Cool Zig Patterns - Comptime String Interning - Zig NEWS (apparently, there is some memoization stuff that happens too!)

But, I am still not confident that I know enough about comptime to do some of the more advanced things.