News for hackers. Stuff that matters.
Re:Moving from Ruby to Rust by Certhas on Thursday February 14, 2019 @06:59PM (#19167283)
Good luck with that. The 0-based indexing is non-existent outside of programming. No one who doesn't do pointer arithmetic would come up with it.

In mathematics 1...N is a perfectly good notation. Julia expresses the same idea with 1:N. This is consistent with spoken language (1 denotes the 1st element). Consistency, if anything, would not come down in favor of the software engineering choice here.

Re:Moving from Ruby to Rust by xiphias2 on Thursday February 14, 2019 @07:50PM (#19167590)
A lot of new very important papers in i.e. machine learning, quantitative finance come _after_ being implemented in computer code. I just looked at some, and they already seem to use 0 index for the initial states / base layer... here's just one example, where 0 and 1 based indexing is mixed, but I see it everywhere:

https://arxiv.org/pdf/1804.02717.pdf

Re:Moving from Ruby to Rust by Zanni on Friday February 15, 2019 @03:54AM (#19169464)
Except European hotels, where the first floor is one up from the ground floor, making floor number effectively zero-based.