News for hackers. Stuff that matters.
Re:Swift for TensorFlow Shuts Down by mjcohen on Friday February 12, 2021 @07:00PM (#26120099)
I don't understand why Julia didn't do like Fortran and Ada and allow any starting index. E.g., a(-5:5, 0:3).
Re:Swift for TensorFlow Shuts Down by kirill5pol on Friday February 12, 2021 @08:32PM (#26120642)
In case you didn’t know, Julia does in fact have arbitrary indexing!

https://docs.julialang.org/en/v1/devdocs/offset-arrays/

Re:Swift for TensorFlow Shuts Down by SatvikBeri on Friday February 12, 2021 @07:16PM (#26120198)
I mean, Julia is flexible enough that it's pretty easy to implement arrays with different indexing schemes that have the same performance as built-in arrays: https://github.com/JuliaArrays/OffsetArrays.jl