Why implement `Buffer` and `Memory`?
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by tracing TranscodingStream and the Buffer, Memory, and Error abstractions, then compare their responsibilities with Julia's IOBuffer and the codec interface. The issue does not name files or tests; done would require an agreed design and corresponding updates to the package's buffering and error-handling behavior.
Written by the indexing model from the issue text.
Description
Hey I've just been poking around this package and it seems overly complex. Can someone more familiar with it make sure I haven't just missed Chesterton's fence 😛 Happy to work on this if people agree it makes sense
AFAICT, TranscodingStream manages an input and output Buffer; data is read from the input stream into the input Buffer. This is passed to a codec via Memory (which is just an abstraction over the "used" and "free" parts of a Buffer). The codec writes to the output Buffer, and that's given to the user via an output stream when requested.
- Remove
Memory. I can't figure out why this is useful, aside from just making things slightly easier for downstream codecs that are C-based and need pointers. If that's the case, we could views instead. - Remove
Buffer. We really don't need our own implementation; I thinkIOBuffershould work. Fundamentally, we just want to load data from the input stream into some input array, let a codec convert part of that to an output array, and send it to the user via a stream.
Less importantly:
- Remove
Error. Why not justtry/catchinstead of passing yet another variable around as state?
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaIO/TranscodingStreams.jl
-
Allow generic `DenseVector{UInt8}` as input/outputPossibly taken @nhz2 claimed this 460 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaIO/TranscodingStreams.jl#247 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
JuliaIO/TranscodingStreams.jl#246 · 1 comment ·
-
Support libaec?Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
JuliaIO/TranscodingStreams.jl#207 · 2 comments ·
-
API for BufferOpen
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaIO/TranscodingStreams.jl#202 · 2 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
JuliaIO/TranscodingStreams.jl#188 ·
All issues in JuliaIO/TranscodingStreams.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
brown-ccv/Chamber.jl#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaBayes/Wren.jl#404 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 ·
Maintainers usually reply within 1 day