News for hackers. Stuff that matters.
Re:Lua, a Misunderstood Language (2021) by nequo on Thursday September 29, 2022 @01:58PM (#33024673)
0-based indexing is not universal in math either. We often index time from 0, but when we refer to components of a vector, we often index those from 1. For example, I'd write or see things like $\sum_{k=1}^N f(x_k)$ where $x$ is a vector. In these cases, 0-based indexing would look out of place.
Re:Lua, a Misunderstood Language (2021) by jhbadger on Thursday September 29, 2022 @02:08PM (#33024815)
Pretty much all programming languages designed for math are 1-based. Besides Julia, there's R, Mathematica (or "Wolfram language" as it is called these days), and Matlab.