JuliaIO / JuliaIO/TranscodingStreams.jl

Allow generic `DenseVector{UInt8}` as input/output

Open
#247 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
90
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I want to compress data that is not of the type Vector{UInt8}, but instead has the more complicated type Base.ReinterpretArray{UInt8, 1, Float64, Vector{Float64}, false}. This is still a 1-d array with UInt8 elements, and as such the codecs would not care about the difference.

Julia has the type DenseVector to describe arrays that are stored contiguously. It would be nice if you could update the API to allow DenseVectors instead of just Vectors.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the codec API definitions that currently constrain input and output to Vector{UInt8}, then review how DenseVector and Base.ReinterpretArray are represented in Julia. Done means codecs accept the requested DenseVector{UInt8} cases, including the shown reinterpreted Float64 array, without changing codec behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.