UnsafeArrays.jl icon indicating copy to clipboard operation
UnsafeArrays.jl copied to clipboard

Stack-allocated pointer-based array views

Results 6 UnsafeArrays.jl issues
Sort by recently updated
recently updated
newest added

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. Release notes Sourced from actions/checkout's releases. v4.0.0 What's Changed Update default runtime to node20 by @​takost in actions/checkout#1436 Support fetching without the --progress option...

dependencies

I noticed there was some work to support `reinterpret(x, ::UnsafeArray)`: https://github.com/JuliaArrays/UnsafeArrays.jl/compare/reinterpret any reason it wasn't merged?

Julia v1.5 enables inline allocation of structs with pointers (JuliaLang/julia#34126), this should make `UnsafeArrays` unnecessary in most cases. New benchmarks - using the test case ```julia using Base.Threads, LinearAlgebra using...

An unsafe vector could also provide `push!`, `pop!`, etc which grow/shrink the view, respectively, overwriting entries of the parent. This would be used via `uview = push!(uview, val)`. These can...

https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/cf4f1ba_vs_edb3c92/UnsafeArrays.primary.log ``` Base.mightalias: Error During Test at /home/pkgeval/.julia/packages/UnsafeArrays/4H6Ug/test/uview.jl:150 Test threw exception Expression: false == #= /home/pkgeval/.julia/packages/UnsafeArrays/4H6Ug/test/uview.jl:150 =# @inferred(Base.mightalias(view(B, :, 2:5), view(A, 2:5, :))) MethodError: mightalias(::SubArray{Int32, 2, Matrix{Int32}, Tuple{Base.Slice{Base.OneTo{Int64}}, UnitRange{Int64}}, true},...

UnsafeArrays currently only support types `T` for `isbitstype(T) == true`. I suppose the reason for this is that non-bits types are at risk of being GC'ed if their only reference...