<s>[INST] Why do most programming languages have 0 as the first index of arrays? What are the advantages of that? Why do some languages like Lua start their arrays at 1? [/INST] Computer programming is all about efficiency, and even small improvements in efficiency can make big differences at scale. And yes, counting from zero is slightly more efficient than starting at 1.</s>