Hacker GitHub

← All repos

JuliaArrays/OffsetArrays.jl

View on GitHub ↗ ★ 212 Julia

Fortran-like arrays with arbitrary, zero or negative starting indices.

16 mentions on Hacker News by 14 people: 0 stories, 16 comments · first 2017-06-23 · latest 2022-05-19

Mentions per year 16 mentions · busiest year 2021 (5)
20082026
  1. …`--check-bounds=yes` is probably a better solution, and much quicker to execute as well. (see e.g. https://github.com/JuliaArrays/OffsetArrays.jl/issues/282 )
  2. …Fortran) have a concept called offset arrays where you can basically start on any sort of index: https://github.com/JuliaArrays/OffsetArrays.jl IMHO, one of the biggest advantages of Julia _is_ arrays.
  3. …are better, sometimes an index is better. If you really want 0-based indexing, you can have it! https://github.com/JuliaArrays/OffsetArrays.jl My own preference is random indexing, it's so much more exciting to be surprised…
  4. …implement arrays with different indexing schemes that have the same performance as built-in arrays: https://github.com/JuliaArrays/OffsetArrays.jl
    comment by SatvikBeri · 2021-02-13 · in Swift for TensorFlow Shuts Down
  5. …custom indices by default. Check out https://docs.julialang.org/en/v1/devdocs/offset-arrays/ and https://github.com/JuliaArrays/OffsetArrays.jl
  6. …focus on generic code, these custom array types are basically first class citizens. See for example https://github.com/JuliaArrays/OffsetArrays.jl Almost every serious julia package is written in such a way that they can handle such arrays…
    comment by eigenspace · 2021-01-19 · in Again on 0-based vs. 1-based indexing
  7. …they've done pretty well so far. https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E... https://github.com/JuliaArrays/OffsetArrays.jl
  8. …feed these sorts of trollish remarks, but if it really bothers you, you can always just use https://github.com/JuliaArrays/OffsetArrays.jl
    comment by eigenspace · 2020-04-04 · in Nim 1.2
  9. This is something that's really nicely supported in Julia: https://github.com/JuliaArrays/OffsetArrays.jl
    comment by eigenspace · 2019-10-31 · in Functional Fortran
  10. …with your bare hands like you're in C. And is good style anyway, to be generic to things like https://github.com/JuliaArrays/OffsetArrays.jl
  11. …way to index an array. Yes, Julia defaults to 1-based indexing, and allows zero-based indexing ( https://github.com/JuliaArrays/OffsetArrays.jl ) or indeed whatever sort of indexing you want, yet I think the world is going to eventually…
    comment by chrispeel · 2018-08-16 · in Why numbering should start at zero (1982)
  12. …you like: https://docs.julialang.org/en/stable/devdocs/offset-arrays/#... For a pre-baked solution: https://github.com/JuliaArrays/OffsetArrays.jl
    comment by jebej · 2018-08-09 · in Julia 1.0
  13. …has some indirection to allow for custom offsets. See for instance OffsetArrays.jl [1] [1] https://github.com/JuliaArrays/OffsetArrays.jl
    comment by stabbles · 2018-08-09 · in Julia 1.0
  14. …no overhead over the default arrays according to recent benchmarks, and provides 0-indexed arrays: https://github.com/JuliaArrays/OffsetArrays.jl I confess, not being the default is a big thing. I've definitely had times where I thought…
    comment by chriselrod · 2018-08-08 · in Julia v1.0 has been released
  15. If you have a particular algorithm that is better expressed using 0-based indexing use https://github.com/JuliaArrays/OffsetArrays.jl
    comment by wallnuss · 2017-10-14 · in Some Insights from a Julia Developer
  16. …of Julia is written in Julia. If you want 0-based (or arbitrary based!) arrays, then simply use the https://github.com/JuliaArrays/OffsetArrays.jl package, and PermutedDimArrays have been added to Base, to handle some of the issues of…
    comment by ScottPJones · 2017-06-23 · in Julia Computing Raises $4.6M in Seed Funding