News for hackers. Stuff that matters.
Re:Swift: Google’s Bet on Differentiable Programming by redbergy on Thursday April 09, 2020 @01:00PM (#22824641)
Also, does it start with 0 or 1 (or -3023 for that matter)? As a programmer you would assume of course it starts at 0, but since this thread talks about "non-programmer" academic types I think it's worth mentioning. What if I want a range of 1-15, or 20-50, can I still use range()? I can't tell from the Python example but I can tell exactly what I would need to change with the Swift one to make it work exactly how I'd want.
Re:Swift: Google’s Bet on Differentiable Programming by microtherion on Thursday April 09, 2020 @02:45PM (#22825824)
Very true, and this is especially important in data science, where the majority of languages, other than Python, are 1 indexed (Matlab, Julia, R, FØRTRAN).