News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by xg15 on Wednesday August 24, 2022 @04:24PM (#32585270)
> assembly languages usually have this instruction

Is that so? I wasn't aware of that.

Re:Why do arrays start at 0? by vbezhenar on Wednesday August 24, 2022 @06:15PM (#32586515)
At least x86_64 can put something like `ptr[index * 4 + 4]` in one instruction (assuming that variable values are in registers). Not completely sure about ARM.