Why implement `Buffer` and `Memory`?
評価
調査の方向性
まず TranscodingStream と Buffer、Memory、Error の抽象化を追跡し、次にそれらの責務を Julia の IOBuffer および codec インターフェースと比較します。この issue ではファイルやテストが指定されていません。完了には、合意された設計と、パッケージのバッファリングおよびエラー処理の動作に対する対応する更新が必要です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Julia
- スター
- 90
- フォーク
- 26
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaIO/TranscodingStreams.jl のほかの issue
-
Allow generic `DenseVector{UInt8}` as input/output対応中かも @nhz2 が 460 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
JuliaIO/TranscodingStreams.jl#247 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
JuliaIO/TranscodingStreams.jl#246 · コメント 1 件 ·
-
Support libaec?オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
JuliaIO/TranscodingStreams.jl#207 · コメント 2 件 ·
-
API for Bufferオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
JuliaIO/TranscodingStreams.jl#202 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
JuliaIO/TranscodingStreams.jl#188 ·
JuliaIO/TranscodingStreams.jl の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
brown-ccv/Chamber.jl#272 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JuliaBayes/Wren.jl#404 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JuliaAI/MLJTransforms.jl#113 ·
メンテナーはふだん 1 日以内に返信