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

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

@nhz2 is already working on this.

Since Aug 28, 2025.

  • #251 by @nhz2 — open

Assessment

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

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.

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.

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

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JuliaIO/TranscodingStreams.jl

All issues in JuliaIO/TranscodingStreams.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.